diff options
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 9fe464fa70..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 || "ruby"}"] = 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 || "ruby"}"] + spec = @specs[spec.name][spec.full_name] spec ? [spec] : [] end |