aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r--lib/bundler/index.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb
index ca3a3ec9..95c6d70e 100644
--- a/lib/bundler/index.rb
+++ b/lib/bundler/index.rb
@@ -25,7 +25,7 @@ module Bundler
def search(query)
case query
- when Gem::Specification, RemoteSpecification then search_by_spec(query)
+ when Gem::Specification, RemoteSpecification, LazySpecification then search_by_spec(query)
when String then @specs[query]
else search_by_dependency(query)
end
@@ -68,7 +68,9 @@ module Bundler
private
def search_by_spec(spec)
- @specs[spec.name].select { |s| s.version == spec.version && s.platform == spec.platform }
+ @specs[spec.name].select do |s|
+ s.version == spec.version && s.platform == spec.platform
+ end
end
def search_by_dependency(dependency)