Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

lib/bundler/settings.rb: Only make config consistent, ENV is exceptional

  • Loading branch information...
commit 841881f0bb877cdf4cde53b06f79bd6a5ad56381 1 parent 5e6b20e
Lin Jen-Shin (godfat) authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/bundler/settings.rb
6 lib/bundler/settings.rb
@@ -84,10 +84,10 @@ def without
84 84 # @local_config["BUNDLE_PATH"] should be prioritized over ENV["BUNDLE_PATH"]
85 85 def path
86 86 key = key_for(:path)
87   - path = ENV[key] || @global_config[key]
88   - return "#{path}/#{Bundler.ruby_scope}" if path && !@local_config.key?(key)
  87 + path = ENV[key]
  88 + return path if path && !@local_config.key?(key)
89 89
90   - if path = self[:path]
  90 + if path = self[:path] || @global_config[key]
91 91 "#{path}/#{Bundler.ruby_scope}"
92 92 else
93 93 Bundler.rubygems.gem_dir

0 comments on commit 841881f

Please sign in to comment.
Something went wrong with that request. Please try again.