From f0a4103a37191e5d700cf210b00c1e9ebbd63dc1 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Fri, 7 Apr 2017 16:08:18 -0500 Subject: [StubSpecification] BasicSpecification#full_require_paths only defined on 2.2+ --- lib/bundler/stub_specification.rb | 6 ++++-- 1 file 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 -- cgit v1.2.1