diff options
author | The Bundler Bot <bot@bundler.io> | 2016-12-17 13:22:02 +0000 |
---|---|---|
committer | The Bundler Bot <bot@bundler.io> | 2016-12-17 13:22:02 +0000 |
commit | 9531f7313f2444455ec4bddfc516e2ebffce2650 (patch) | |
tree | 8074834e92fd1968cd70375d01f48d3e48c1d576 /lib | |
parent | 869bf08d37e9d796c895f478073a6127445af98f (diff) | |
parent | 242fcbcb2d15d39c63e3441756b77fbfcc1b73b2 (diff) | |
download | bundler-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.rb | 2 |
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 |