lib/sugarcube.rb in sugarcube-2.0.2 vs lib/sugarcube.rb in sugarcube-2.1.0
- old
+ new
@@ -3,16 +3,16 @@
module SugarCube
module_function
def ios_only!(package)
- unless App.template == :ios
+ unless App.template.to_s =~ /ios/
raise "The '\033[0;1msugarcube-#{package}\033[0m' package is only available on iOS."
end
end
def osx_only!(package)
- unless App.template == :osx
+ unless App.template.to_s == /osx/
raise "The '\033[0;1msugarcube-#{package}\033[0m' package is only available on OS X."
end
end
end