lib/flashsdk/module.rb in flashsdk-1.0.5.pre vs lib/flashsdk/module.rb in flashsdk-1.0.12.pre
- old
+ new
@@ -1,9 +1,9 @@
module FlashSDK
- # Do this craptastic, otherwise we get a carriage return
+ # Do this strip, otherwise we get a carriage return
# after our version, and that poops on our archive folder
# after downloading...
version_file = File.join(File.dirname(__FILE__), '..', '..', 'VERSION')
- VERSION = File.read(version_file).gsub("\n", '')
+ VERSION = File.read(version_file).strip
end