Skip to content

Commit

Permalink
Gem::Specification.find_all_by_name is always defined now
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Dec 13, 2023
1 parent 5114fdc commit 1d61c76
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bundler/lib/bundler/cli/common.rb
Original file line number Diff line number Diff line change
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 1d61c76

Please sign in to comment.