Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
rake set_version was messing up js files. eek!
Browse files Browse the repository at this point in the history
sorry for lemon release!
  • Loading branch information
timcharper committed Mar 29, 2010
1 parent 8b67476 commit a59f479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -18,10 +18,10 @@ end


desc "Set the current gem version in the code according to the VERSION file" desc "Set the current gem version in the code according to the VERSION file"
task :set_version do 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| ["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 abs_file = File.dirname(__FILE__) + "/" + file
src = File.read(abs_file); src = File.read(abs_file)
src = src.map do |line| src = src.map do |line|
case line case line
when /^ *VERSION/ then " VERSION = '#{VERSION}'\n" when /^ *VERSION/ then " VERSION = '#{VERSION}'\n"
Expand Down

0 comments on commit a59f479

Please sign in to comment.