diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-28 12:59:54 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-28 13:45:51 +0200 |
commit | e8faee9a8100f86d14900794d174ede60edeebcf (patch) | |
tree | a88a1730f85f3669191347c50062420e15972d79 /lib/bundler/rubygems_integration.rb | |
parent | 1a1aee906d32acbbe2aa4053ea2751231b357ee6 (diff) | |
download | bundler-e8faee9a8100f86d14900794d174ede60edeebcf.tar.gz |
Remove now unnecessary methoduse_add_to_load_path
Since we've moved the whole logic to the integration class.
Diffstat (limited to 'lib/bundler/rubygems_integration.rb')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index eea5c04516..9df0897ca2 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -39,10 +39,6 @@ module Bundler Gem::Command.build_args = args end - def load_path_insert_index - Gem.load_path_insert_index - end - def loaded_specs(name) Gem.loaded_specs[name] end @@ -50,7 +46,7 @@ module Bundler def add_to_load_path(paths) return Gem.add_to_load_path(*paths) if Gem.respond_to?(:add_to_load_path) - if insert_index = load_path_insert_index + if insert_index = Gem.load_path_insert_index # Gem directories must come after -I and ENV['RUBYLIB'] $LOAD_PATH.insert(insert_index, *paths) else |