diff options
author | Homu <homu@barosl.com> | 2016-05-16 14:08:58 +0900 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-05-16 15:35:57 -0500 |
commit | cacdec82b4c2b84fb616a266b6bd94161162de2e (patch) | |
tree | 04425847e76cd298a6231bec814c822b89030b3c /lib | |
parent | 5d1dab00d9335fd336a19746f31b0368b4207b4b (diff) | |
download | bundler-cacdec82b4c2b84fb616a266b6bd94161162de2e.tar.gz |
Auto merge of #4558 - bundler:seg-index-platform-ruby-default, r=segiddins
[Index] Ensure nil and "ruby" platforms are treated identically
Fixes #4557.
@indirect @RochesterinNYC ideas on how to test this?
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/index.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index f2defe1cff..5c49034280 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -89,7 +89,7 @@ module Bundler alias_method :[], :search def <<(spec) - @specs[spec.name]["#{spec.version}-#{spec.platform}"] = spec + @specs[spec.name][spec.full_name] = spec spec end @@ -175,7 +175,7 @@ module Bundler end def search_by_spec(spec) - spec = @specs[spec.name]["#{spec.version}-#{spec.platform}"] + spec = @specs[spec.name][spec.full_name] spec ? [spec] : [] end |