diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-04-08 10:46:01 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-08 10:46:01 -0500 |
commit | 401daf4cf4f9367b1e856993ffcd03bd7247ece7 (patch) | |
tree | 9de3f7f63032f2b39267e2262608d4efa2c3de96 | |
parent | f0a4103a37191e5d700cf210b00c1e9ebbd63dc1 (diff) | |
download | bundler-401daf4cf4f9367b1e856993ffcd03bd7247ece7.tar.gz |
[StubSpecification] #full_require_paths is only 2.2+
-rw-r--r-- | lib/bundler/stub_specification.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb index fc1376aaef..85680d3da0 100644 --- a/lib/bundler/stub_specification.rb +++ b/lib/bundler/stub_specification.rb @@ -44,6 +44,12 @@ module Bundler def full_require_paths stub.full_require_paths end + + # This is what we do in bundler/rubygems_ext + # full_require_paths is always implemented in >= 2.2.0 + def load_paths + full_require_paths + end end def loaded_from @@ -60,12 +66,6 @@ module Bundler stub.raw_require_paths end - # This is what we do in bundler/rubygems_ext - # full_require_paths is always implemented in versions that have stubs - def load_paths - full_require_paths - end - private def _remote_specification |