summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-10-02 12:32:33 +0200
committergit <svn-admin@ruby-lang.org>2024-10-02 21:33:02 +0000
commite77346153d68bb3846db07e213fc90567af76326 (patch)
treede1be1e0b2848e7383a5619bf4dfb7a8fd9ec76b /lib
parentd3e2d23c60ce4a91ff402aaac36b1072962f632d (diff)
[rubygems/rubygems] Remove compatibility code with old RubyGems
https://github.com/rubygems/rubygems/commit/f11e42a3c5
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler.rb2
-rw-r--r--lib/bundler/rubygems_integration.rb8
2 files changed, 1 insertions, 9 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 72cbbe140d..a195405fd9 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -577,7 +577,7 @@ module Bundler
requested_path_gems = definition.requested_specs.select {|s| s.source.is_a?(Source::Path) }
path_plugin_files = requested_path_gems.map do |spec|
- Bundler.rubygems.spec_matches_for_glob(spec, "rubygems_plugin#{Bundler.rubygems.suffix_pattern}")
+ spec.matches_for_glob("rubygems_plugin#{Bundler.rubygems.suffix_pattern}")
rescue TypeError
error_message = "#{spec.name} #{spec.version} has an invalid gemspec"
raise Gem::InvalidSpecificationException, error_message
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index b98d3b7b8c..7abaa236ed 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -70,14 +70,6 @@ module Bundler
default
end
- def spec_matches_for_glob(spec, glob)
- return spec.matches_for_glob(glob) if spec.respond_to?(:matches_for_glob)
-
- spec.load_paths.flat_map do |lp|
- Dir["#{lp}/#{glob}#{suffix_pattern}"]
- end
- end
-
def stub_set_spec(stub, spec)
stub.instance_variable_set(:@spec, spec)
end