aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-11-08 14:28:28 +0530
committerArun Agrawal <arunagw@gmail.com>2011-11-08 14:28:28 +0530
commitb3175f6cb945f81f1dc3bf50a5fbe4a9207722df (patch)
treece3f7b9cf2a28119c5ede4d11c03c26479f4620c
parent588faedaf405a20d6aab96f3b780d987263216dc (diff)
downloadrails-b3175f6cb945f81f1dc3bf50a5fbe4a9207722df.tar.gz
rails-b3175f6cb945f81f1dc3bf50a5fbe4a9207722df.tar.bz2
rails-b3175f6cb945f81f1dc3bf50a5fbe4a9207722df.zip
Warnings removed.
-rw-r--r--tasks/release.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/release.rb b/tasks/release.rb
index 780543aa78..33aaee5a4b 100644
--- a/tasks/release.rb
+++ b/tasks/release.rb
@@ -26,16 +26,16 @@ directory "pkg"
major, minor, tiny, pre = version.split('.')
pre = pre ? pre.inspect : "nil"
- ruby.gsub! /^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{major}"
+ ruby.gsub!(/^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{major}")
raise "Could not insert MAJOR in #{file}" unless $1
- ruby.gsub! /^(\s*)MINOR = .*?$/, "\\1MINOR = #{minor}"
+ ruby.gsub!(/^(\s*)MINOR = .*?$/, "\\1MINOR = #{minor}")
raise "Could not insert MINOR in #{file}" unless $1
- ruby.gsub! /^(\s*)TINY = .*?$/, "\\1TINY = #{tiny}"
+ ruby.gsub!(/^(\s*)TINY = .*?$/, "\\1TINY = #{tiny}")
raise "Could not insert TINY in #{file}" unless $1
- ruby.gsub! /^(\s*)PRE = .*?$/, "\\1PRE = #{pre}"
+ ruby.gsub!(/^(\s*)PRE = .*?$/, "\\1PRE = #{pre}")
raise "Could not insert PRE in #{file}" unless $1
File.open(file, 'w') { |f| f.write ruby }