diff options
-rw-r--r-- | lib/bundler/settings.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index d6d2da1e..b2c61b08 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -139,6 +139,7 @@ module Bundler require 'bundler/psyched_yaml' File.open(file, "w") { |f| f.puts YAML.dump(hash) } end + value end @@ -155,7 +156,9 @@ module Bundler valid_file = config_file && config_file.exist? && !config_file.size.zero? if !ignore_config? && valid_file config_regex =/^(BUNDLE_.+): (?:['"](.*)['"]|(.+(?:\n(?!BUNDLE).+))|(.+))$/ - config_pairs = config_file.read.scan(config_regex).map{|m| m.compact.map { |n| n.gsub(/\s+/, " ") } } + config_pairs = config_file.read.scan(config_regex).map do |m| + m.compact.map { |n| n.gsub(/\s+/, " ").tr('"', "'") } + end Hash[config_pairs] else {} |