summaryrefslogtreecommitdiff
path: root/lib/bundler/gem_version_promoter.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-01-19 07:10:19 +0900
committerSutou Kouhei <kou@clear-code.com>2020-01-19 07:13:41 +0900
commit51007446a75b27dc4e9ceff28f0a258e101696f2 (patch)
treefc1e09655f76ebc8dd8635762cdfec52f7274665 /lib/bundler/gem_version_promoter.rb
parent482e752e515c701b371d706ed7a1db0ee48f26a0 (diff)
downloadbundler-51007446a75b27dc4e9ceff28f0a258e101696f2.tar.gz
Add support for BUNDLER_ prefixed debug environment variables
DEBUG_RESOLVER is used in RubyGems too. So we can't enable it only for Bundler.
Diffstat (limited to 'lib/bundler/gem_version_promoter.rb')
-rw-r--r--lib/bundler/gem_version_promoter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_version_promoter.rb b/lib/bundler/gem_version_promoter.rb
index 311b0cbbf3..76912940ac 100644
--- a/lib/bundler/gem_version_promoter.rb
+++ b/lib/bundler/gem_version_promoter.rb
@@ -7,7 +7,7 @@ module Bundler
# available dependency versions as found in its index, before returning it to
# to the resolution engine to select the best version.
class GemVersionPromoter
- DEBUG = ENV["DEBUG_RESOLVER"]
+ DEBUG = ENV["BUNDLER_DEBUG_RESOLVER"] || ENV["DEBUG_RESOLVER"]
attr_reader :level, :locked_specs, :unlock_gems