diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-08 21:33:18 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-12 09:25:06 -0400 |
commit | d23a352afa73a587e9960c1d4f438c56432748ed (patch) | |
tree | aed60bab38f2fbe51c6429a11c272da0ed28a3e5 /lib/bundler/fetcher.rb | |
parent | a5da088a6d8aa2bb14d5007dc7f70b25a50d79d7 (diff) | |
download | bundler-d23a352afa73a587e9960c1d4f438c56432748ed.tar.gz |
Migrate internal autoloads to not use LOAD_PATH
Diffstat (limited to 'lib/bundler/fetcher.rb')
-rw-r--r-- | lib/bundler/fetcher.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index 7ec41d62c0..d21baf659d 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -9,10 +9,10 @@ require "rubygems/request" module Bundler # Handles all the fetching with the rubygems server class Fetcher - autoload :CompactIndex, "bundler/fetcher/compact_index" - autoload :Downloader, "bundler/fetcher/downloader" - autoload :Dependency, "bundler/fetcher/dependency" - autoload :Index, "bundler/fetcher/index" + autoload :CompactIndex, File.expand_path("fetcher/compact_index", __dir__) + autoload :Downloader, File.expand_path("fetcher/downloader", __dir__) + autoload :Dependency, File.expand_path("fetcher/dependency", __dir__) + autoload :Index, File.expand_path("fetcher/index", __dir__) # This error is raised when it looks like the network is down class NetworkDownError < HTTPError; end |