summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2024-05-03 23:38:05 +0200
committergit <svn-admin@ruby-lang.org>2024-05-14 16:08:00 +0000
commit4dc0b2301806cc5214b4cfc40e300b03e893726f (patch)
tree23c3abfde53cd9555a90cf0def446016839ee7bd
parent41e6fd066e8ea82c460ba392a1dd55d624a19763 (diff)
[rubygems/rubygems] Remove redundant receivers
https://github.com/rubygems/rubygems/commit/7b71965a70
-rw-r--r--lib/rubygems/specification.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index a1eaf1248e..5fedc8bc79 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -859,7 +859,7 @@ class Gem::Specification < Gem::BasicSpecification
# optionally filtering out specs not matching the current platform
#
def self.stubs_for_pattern(pattern, match_platform = true) # :nodoc:
- installed_stubs = installed_stubs(Gem::Specification.dirs, pattern)
+ installed_stubs = installed_stubs(dirs, pattern)
installed_stubs.select! {|s| Gem::Platform.match_spec? s } if match_platform
stubs = installed_stubs + default_stubs(pattern)
stubs = stubs.uniq(&:full_name)
@@ -1125,7 +1125,7 @@ class Gem::Specification < Gem::BasicSpecification
# +prerelease+ is true.
def self.latest_specs(prerelease = false)
- _latest_specs Gem::Specification.stubs, prerelease
+ _latest_specs stubs, prerelease
end
##