diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-23 15:03:34 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-23 15:03:34 -0500 |
commit | d9d28d2437545c5d30a29d1f2cd44ced88fb90a6 (patch) | |
tree | 2654209f00df21241d63297892b23fe383fecce2 /tasks | |
parent | 8bb0b99a4ad60503934a71aa4fa1c5d1eaccf998 (diff) | |
download | rails-d9d28d2437545c5d30a29d1f2cd44ced88fb90a6.tar.gz rails-d9d28d2437545c5d30a29d1f2cd44ced88fb90a6.tar.bz2 rails-d9d28d2437545c5d30a29d1f2cd44ced88fb90a6.zip |
Do not override the global variable
This will make the version of the next gems to change
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/release.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/release.rb b/tasks/release.rb index d1717cec52..1e2873b7f3 100644 --- a/tasks/release.rb +++ b/tasks/release.rb @@ -84,11 +84,11 @@ directory "pkg" # => "5.0.0.rc1" # irb(main):004:0> version.gsub(/\./).with_index { |s, i| i >= 2 ? '-' : s } # => "5.0.0-rc1" - version = version.gsub(/\./).with_index { |s, i| i >= 2 ? "-" : s } + npm_version = version.gsub(/\./).with_index { |s, i| i >= 2 ? "-" : s } # Check if npm is installed, and raise an error if not if sh "which npm" - sh "npm version #{version} --no-git-tag-version" + sh "npm version #{npm_version} --no-git-tag-version" sh "npm publish" else raise "You must have npm installed to release Rails." |