aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/plugin.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-02 13:23:20 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-18 13:44:56 +0900
commit998204882b25f0cee5db1749a877ef9780c8925f (patch)
tree8e30fe39a25a97ebebcf5583ae1dfd15bf4f7a34 /lib/bundler/plugin.rb
parentf753961611d286332e968f3b30f9b55b8590ef7d (diff)
downloadruby-998204882b25f0cee5db1749a877ef9780c8925f.tar.gz
[bundler/bundler] Last relative requires
https://github.com/bundler/bundler/commit/fb587b9ebb
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r--lib/bundler/plugin.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb
index ffb3ee9883..f4dd435df4 100644
--- a/lib/bundler/plugin.rb
+++ b/lib/bundler/plugin.rb
@@ -4,11 +4,11 @@ require_relative "plugin/api"
module Bundler
module Plugin
- autoload :DSL, "bundler/plugin/dsl"
- autoload :Events, "bundler/plugin/events"
- autoload :Index, "bundler/plugin/index"
- autoload :Installer, "bundler/plugin/installer"
- autoload :SourceList, "bundler/plugin/source_list"
+ autoload :DSL, File.expand_path("plugin/dsl", __dir__)
+ autoload :Events, File.expand_path("plugin/events", __dir__)
+ autoload :Index, File.expand_path("plugin/index", __dir__)
+ autoload :Installer, File.expand_path("plugin/installer", __dir__)
+ autoload :SourceList, File.expand_path("plugin/source_list", __dir__)
class MalformattedPlugin < PluginError; end
class UndefinedCommandError < PluginError; end