summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-04-30 00:18:58 -0700
committerAndre Arko <andre@arko.net>2015-04-30 00:18:58 -0700
commitad4f5b3edde4c581d7d0257c8b8e9cd8ac5be194 (patch)
tree6faf86b873c64ef15136a7bda02b636a3e401f8a
parent4958fdc4e26c423629452d313edd4c098b944df1 (diff)
parentc7719dd10a10cf4c60ed2512903c7ec04bc62eda (diff)
downloadbundler-ad4f5b3edde4c581d7d0257c8b8e9cd8ac5be194.tar.gz
Merge pull request #3606 from tenderlove/spec_search
loop through the spec list to find gems with a certain name
-rw-r--r--lib/bundler/rubygems_integration.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index ee39fd7ff0..4b6cbbff6c 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -480,7 +480,9 @@ module Bundler
end
def find_name(name)
- Gem::Specification.find_all_by_name name
+ Gem::Specification.stubs.find_all { |spec|
+ spec.name == name
+ }.map(&:to_spec)
end
end
@@ -521,7 +523,9 @@ module Bundler
end
def find_name(name)
- Gem::Specification.find_all_by_name name
+ Gem::Specification.stubs.find_all { |spec|
+ spec.name == name
+ }.map(&:to_spec)
end
def fetch_specs(source, name)