Permalink
Browse files

rake set_version was messing up js files. eek!

sorry for lemon release!
  • Loading branch information...
1 parent 8b67476 commit a59f479ceab033d418e74f54702555c9f1a26c16 @timcharper committed Mar 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
4 Rakefile
@@ -18,10 +18,10 @@ end
desc "Set the current gem version in the code according to the VERSION file"
task :set_version do
- VERSION=File.read("VERSION")
+ VERSION=File.read("VERSION").strip
["lib/calendar_date_select/calendar_date_select.rb", "public/javascripts/calendar_date_select/calendar_date_select.js"].each do |file|
abs_file = File.dirname(__FILE__) + "/" + file
- src = File.read(abs_file);
+ src = File.read(abs_file)
src = src.map do |line|
case line
when /^ *VERSION/ then " VERSION = '#{VERSION}'\n"

0 comments on commit a59f479

Please sign in to comment.