diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:52:48 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:52:48 -0700 |
commit | a77ca278809d7f31fa51e4b821faed86324c8275 (patch) | |
tree | da1c6c68b24fdcab9acfc07b6a352a39af1c6f4e /lib/bundler/settings.rb | |
parent | af694073229af89af205d24ff449f51f74316a37 (diff) | |
download | bundler-a77ca278809d7f31fa51e4b821faed86324c8275.tar.gz |
[RuboCop] Enable Style/StringLiterals
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 10 |
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 |