Skip to content

Commit

Permalink
[rubygems/rubygems] Gem::Specification always has default_stubs now
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 5cf6f7f commit 778438d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/bundler/rubygems_integration.rb
Expand Up @@ -507,14 +507,8 @@ def find_name(name)
Gem::Specification.stubs_for(name).map(&:to_spec)
end

if Gem::Specification.respond_to?(:default_stubs)
def default_stubs
Gem::Specification.default_stubs("*.gemspec")
end
else
def default_stubs
Gem::Specification.send(:default_stubs, "*.gemspec")
end
def default_stubs
Gem::Specification.default_stubs("*.gemspec")
end
end

Expand Down

0 comments on commit 778438d

Please sign in to comment.