summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-12-18 15:47:27 -0800
committerAndre Arko <andre@arko.net>2013-12-18 15:47:27 -0800
commit1113aa092d865987d3fa25d679f516d513234c9e (patch)
tree1d35c91c773b17620ed6f985f70e9ecf60888d59
parent20f628c9d17db32027baaa7f2d37e08ab0c8f259 (diff)
downloadbundler-1113aa092d865987d3fa25d679f516d513234c9e.tar.gz
bring message in line with requirement
-rw-r--r--lib/bundler/installer.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 3ddb5443e2..5aa2eab0a0 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -200,12 +200,13 @@ module Bundler
private
def can_install_parallely?
- if Bundler.current_ruby.mri? || Bundler.rubygems.provides?(">= 2.0.7")
+ min_rubygems = "2.0.7"
+ if Bundler.current_ruby.mri? || Bundler.rubygems.provides?(">= #{min_rubygems}")
true
else
Bundler.ui.warn "Rubygems #{Gem::VERSION} is not threadsafe, so your "\
- "gems must be installed one at a time. Upgrade to Rubygems 2.1 or "\
- "higher to enable parallel gem installation."
+ "gems must be installed one at a time. Upgrade to Rubygems " \
+ "#{min_rubygems} or higher to enable parallel gem installation."
false
end
end