diff options
author | Code Ass <aycabta@gmail.com> | 2016-09-16 17:01:17 +0900 |
---|---|---|
committer | Code Ass <aycabta@gmail.com> | 2016-09-16 17:01:17 +0900 |
commit | 4c32972d9bd35971f2f55c7ec96fa6d0a1f1a372 (patch) | |
tree | e23eae9b4f80157c6b520985bd5dfa8f8321a4b1 | |
parent | 4d885bca65f9b1324a68e3f5c0c56575076a204c (diff) | |
download | bundler-4c32972d9bd35971f2f55c7ec96fa6d0a1f1a372.tar.gz |
Use `require` instead of `autoload` for bundler/plugin/api
-rw-r--r-- | lib/bundler/plugin.rb | 2 | ||||
-rw-r--r-- | lib/bundler/plugin/api.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index 8fb4119323..e700ae71f1 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true +require "bundler/plugin/api" module Bundler module Plugin - autoload :API, "bundler/plugin/api" autoload :DSL, "bundler/plugin/dsl" autoload :Index, "bundler/plugin/index" autoload :Installer, "bundler/plugin/installer" diff --git a/lib/bundler/plugin/api.rb b/lib/bundler/plugin/api.rb index 5bd8792e55..bd7cef5382 100644 --- a/lib/bundler/plugin/api.rb +++ b/lib/bundler/plugin/api.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true +require "bundler/plugin/api/source" module Bundler # This is the interfacing class represents the API that we intend to provide @@ -23,7 +24,6 @@ module Bundler # and hooks). module Plugin class API - autoload :Source, "bundler/plugin/api/source" # The plugins should declare that they handle a command through this helper. # # @param [String] command being handled by them |