diff options
author | David RodrÃguez <[email protected]> | 2023-12-12 21:28:57 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-12-14 20:22:48 +0800 |
commit | 778438d423dac10d1a63f826cfc4dc18ca4c0b66 (patch) | |
tree | 5009e162d9ff51f13073bb8af1880fe855fdc7d0 /lib | |
parent | 5cf6f7f8859a0418bbbe2b608a88557d4f06e098 (diff) |
[rubygems/rubygems] Gem::Specification always has `default_stubs` now
https://github.com/rubygems/rubygems/commit/30db1eb4a5
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 0793fe1d40..b1e7dd4149 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -507,14 +507,8 @@ module Bundler 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 |