diff options
author | Homu <homu@barosl.com> | 2016-10-03 16:19:16 +0900 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2016-10-11 00:53:36 -0700 |
commit | 3fc5032860acc5f31c6c65788db4720f49ee1ba7 (patch) | |
tree | 82423b3bd8044681da729367b69b9ce941437e28 | |
parent | 9a4345220fa48a2d7cc748276ab8f03247404d05 (diff) | |
download | bundler-3fc5032860acc5f31c6c65788db4720f49ee1ba7.tar.gz |
Auto merge of #5010 - aycabta:use-require-instead-of-autoload-for-plugin-api, r=indirect
[workaround] Use `require` instead of `autoload` for bundler/plugin/api
Please read https://github.com/bundler/bundler/pull/4981#issuecomment-248674155.
> But it's elusive reproduction (and lack of test case) makes me think that the problem is a bit deeper and may recur.
I think so. This Pull Request is just *workaround*.
-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 1f0297f29b..06f0317786 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 |