diff options
-rw-r--r-- | lib/bundler/stub_specification.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb index 6f94de7b10..fc1376aaef 100644 --- a/lib/bundler/stub_specification.rb +++ b/lib/bundler/stub_specification.rb @@ -40,8 +40,10 @@ module Bundler stub.full_gem_path end - def full_require_paths - stub.full_require_paths + if Bundler.rubygems.provides?(">= 2.2.0") + def full_require_paths + stub.full_require_paths + end end def loaded_from |