summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2016-12-17 13:22:02 +0000
committerThe Bundler Bot <bot@bundler.io>2016-12-17 13:22:02 +0000
commit9531f7313f2444455ec4bddfc516e2ebffce2650 (patch)
tree8074834e92fd1968cd70375d01f48d3e48c1d576 /lib
parent869bf08d37e9d796c895f478073a6127445af98f (diff)
parent242fcbcb2d15d39c63e3441756b77fbfcc1b73b2 (diff)
downloadbundler-9531f7313f2444455ec4bddfc516e2ebffce2650.tar.gz
Auto merge of #5231 - bundler:seg-lock-add-platform-ruby, r=indirect
[Lock] Fix --add-platform ruby Necessary since the ruby platform is a string instead of a platform object Closes #5230
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/lock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/lock.rb b/lib/bundler/cli/lock.rb
index 2ccaba86eb..beeb2e4633 100644
--- a/lib/bundler/cli/lock.rb
+++ b/lib/bundler/cli/lock.rb
@@ -33,7 +33,7 @@ module Bundler
options["add-platform"].each do |platform_string|
platform = Gem::Platform.new(platform_string)
- if platform.to_a.compact == %w(unknown)
+ if platform.to_s == "unknown"
Bundler.ui.warn "The platform `#{platform_string}` is unknown to RubyGems " \
"and adding it will likely lead to resolution errors"
end