Skip to content

Commit

Permalink
Update the release task to deal with freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Jan 28, 2016
1 parent f673c65 commit 4463444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ directory 'pkg'
major, minor, tiny, pre = version.split('.')
pre = pre ? pre.inspect : "nil"

ruby.gsub!(/^(\s*)VERSION = ".*?"$/, "\\1VERSION = \"#{version}\"")
ruby.gsub!(/^(\s*)VERSION = ".*?"\.freeze$/, "\\1VERSION = \"#{version}\".freeze")
raise "Could not insert VERSION in #{file}" unless $1
File.open(file, 'w') { |f| f.write ruby }
end
Expand Down

0 comments on commit 4463444

Please sign in to comment.