Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rake set_version was messing up js files. eek!

sorry for lemon release!
  • Loading branch information...
commit a59f479ceab033d418e74f54702555c9f1a26c16 1 parent 8b67476
@timcharper authored
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"
Please sign in to comment.
Something went wrong with that request. Please try again.