diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-05-09 20:42:53 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-05-09 20:42:53 -0500 |
commit | 527b9929fdc07c518dfe94dff3ba6961f7c98149 (patch) | |
tree | 79abd079def2ea2c93f02e0b2d8e6946ad7451f8 /lib/bundler/index.rb | |
parent | cd219229036d60fe1e7b1e56cfb3de40cf32349b (diff) | |
download | bundler-527b9929fdc07c518dfe94dff3ba6961f7c98149.tar.gz |
[Index] Ensure nil and "ruby" platforms are treated identically
Diffstat (limited to 'lib/bundler/index.rb')
-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..9fe464fa70 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.version}-#{spec.platform || "ruby"}"] = 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.version}-#{spec.platform || "ruby"}"] spec ? [spec] : [] end |