summaryrefslogtreecommitdiff
path: root/lib/bundler/fetcher.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-08 21:33:18 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-12 09:25:06 -0400
commitd23a352afa73a587e9960c1d4f438c56432748ed (patch)
treeaed60bab38f2fbe51c6429a11c272da0ed28a3e5 /lib/bundler/fetcher.rb
parenta5da088a6d8aa2bb14d5007dc7f70b25a50d79d7 (diff)
downloadbundler-d23a352afa73a587e9960c1d4f438c56432748ed.tar.gz
Migrate internal autoloads to not use LOAD_PATH
Diffstat (limited to 'lib/bundler/fetcher.rb')
-rw-r--r--lib/bundler/fetcher.rb8
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