summaryrefslogtreecommitdiff
path: root/lib/bundler/settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r--lib/bundler/settings.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 1c2ef6e635..a4f2a9cf84 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -1,4 +1,4 @@
-require 'uri'
+require "uri"
module Bundler
class Settings
@@ -47,7 +47,7 @@ module Bundler
keys = @global_config.keys | @local_config.keys | env_keys
keys.map do |key|
- key.sub(/^BUNDLE_/, '').gsub(/__/, ".").downcase
+ key.sub(/^BUNDLE_/, "").gsub(/__/, ".").downcase
end
end
@@ -147,7 +147,7 @@ module Bundler
end
def ignore_config?
- ENV['BUNDLE_IGNORE_CONFIG']
+ ENV["BUNDLE_IGNORE_CONFIG"]
end
def app_cache_path
@@ -185,7 +185,7 @@ module Bundler
end
def to_bool(value)
- !(value.nil? || value == '' || value =~ /^(false|f|no|n|0)$/i || value == false)
+ !(value.nil? || value == "" || value =~ /^(false|f|no|n|0)$/i || value == false)
end
def is_num(value)
@@ -207,7 +207,7 @@ module Bundler
hash[key] = value
hash.delete(key) if value.nil?
FileUtils.mkdir_p(file.dirname)
- require 'bundler/psyched_yaml'
+ require "bundler/psyched_yaml"
File.open(file, "w") { |f| f.puts YAML.dump(hash) }
end