Skip to content

Commit 30db1eb

Browse files
Gem::Specification always has default_stubs now
1 parent e015200 commit 30db1eb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

bundler/lib/bundler/rubygems_integration.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -507,14 +507,8 @@ def find_name(name)
507507
Gem::Specification.stubs_for(name).map(&:to_spec)
508508
end
509509

510-
if Gem::Specification.respond_to?(:default_stubs)
511-
def default_stubs
512-
Gem::Specification.default_stubs("*.gemspec")
513-
end
514-
else
515-
def default_stubs
516-
Gem::Specification.send(:default_stubs, "*.gemspec")
517-
end
510+
def default_stubs
511+
Gem::Specification.default_stubs("*.gemspec")
518512
end
519513
end
520514

0 commit comments

Comments
 (0)