diff options
author | The Bundler Bot <bot@bundler.io> | 2017-07-21 05:38:07 +0000 |
---|---|---|
committer | The Bundler Bot <bot@bundler.io> | 2017-07-21 05:38:07 +0000 |
commit | 4bcb475eecedf2a84c3aa6cf077e137f430784d1 (patch) | |
tree | fd6f8f1f49d09eeb9a76dad0936251aad7659e2b | |
parent | d273f2116e5e7de1f8c453a15487e1699d2c08f5 (diff) | |
parent | 3210754e64013fe3ce2eb56a0c1f92a02199f693 (diff) | |
download | bundler-4bcb475eecedf2a84c3aa6cf077e137f430784d1.tar.gz |
Auto merge of #5890 - bundler:seg-require-gemdeps, r=colby-swandale
[RubyGemsIntegration] Require bundler/gemdeps before using it
### What was the end-user problem that led to this PR?
The problem was `Bundler.rubygems.use_gemdeps` would raise a missing constant error.
### What was your diagnosis of the problem?
My diagnosis was we needed to require the gemdeps file
### What is your fix for the problem, implemented in this PR?
My fix requires the gemdeps file.
### Why did you choose this fix out of the possible options?
I chose this fix because watching autocorrect struggle to understand that `gemdeps` is not the same as `genders` is priceless.
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 1ac040dd83..38374ae0b6 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -830,6 +830,7 @@ module Bundler def use_gemdeps(gemfile) ENV["BUNDLE_GEMFILE"] ||= File.expand_path(gemfile) + require "bundler/gemdeps" runtime = Bundler.setup Bundler.ui = nil activated_spec_names = runtime.requested_specs.map(&:to_spec).sort_by(&:name) |