summaryrefslogtreecommitdiff
path: root/lib/bundler/source.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/source.rb
parenta5da088a6d8aa2bb14d5007dc7f70b25a50d79d7 (diff)
downloadbundler-d23a352afa73a587e9960c1d4f438c56432748ed.tar.gz
Migrate internal autoloads to not use LOAD_PATH
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r--lib/bundler/source.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 26a3625bb1..4b2e305bda 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -2,11 +2,11 @@
module Bundler
class Source
- autoload :Gemspec, "bundler/source/gemspec"
- autoload :Git, "bundler/source/git"
- autoload :Metadata, "bundler/source/metadata"
- autoload :Path, "bundler/source/path"
- autoload :Rubygems, "bundler/source/rubygems"
+ autoload :Gemspec, File.expand_path("source/gemspec", __dir__)
+ autoload :Git, File.expand_path("source/git", __dir__)
+ autoload :Metadata, File.expand_path("source/metadata", __dir__)
+ autoload :Path, File.expand_path("source/path", __dir__)
+ autoload :Rubygems, File.expand_path("source/rubygems", __dir__)
attr_accessor :dependency_names