Skip to content

Commit

Permalink
[rubygems/rubygems] Remove redundant receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 14, 2024
1 parent 41e6fd0 commit 4dc0b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubygems/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def self.stubs_for(name)
# 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)
Expand Down Expand Up @@ -1125,7 +1125,7 @@ def self.from_yaml(input)
# +prerelease+ is true.

def self.latest_specs(prerelease = false)
_latest_specs Gem::Specification.stubs, prerelease
_latest_specs stubs, prerelease
end

##
Expand Down

0 comments on commit 4dc0b23

Please sign in to comment.