Skip to content

Commit

Permalink
[rubygems/rubygems] Gem::Specification.find_all_by_name is always def…
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Dec 14, 2023
1 parent b300f5a commit b45c152
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/bundler/cli/common.rb
Expand Up @@ -79,7 +79,6 @@ def self.select_spec(name, regex_match = nil)
end

def self.default_gem_spec(name)
return unless Gem::Specification.respond_to?(:find_all_by_name)
gem_spec = Gem::Specification.find_all_by_name(name).last
gem_spec if gem_spec&.default_gem?
end
Expand Down

0 comments on commit b45c152

Please sign in to comment.