summaryrefslogtreecommitdiff
path: root/lib/bundler/settings.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 12:21:01 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 19:25:30 +0100
commita4c2a86fd9450e6824ed79a852ab1ab7ee45320e (patch)
tree13bd1f8d10820bda3f5c2d9cb54219d8505a2be5 /lib/bundler/settings.rb
parentd88d2b4e1a46706a14c8eb821c76aab2775209ff (diff)
downloadbundler-a4c2a86fd9450e6824ed79a852ab1ab7ee45320e.tar.gz
Auto-correct `Style/MutableConstant` rubocop offenses
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r--lib/bundler/settings.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index ff9a5f57af..c9294ca801 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -421,7 +421,7 @@ module Bundler
)
\2 # matching closing quote
$
- }xo
+ }xo.freeze
def load_config(config_file)
return {} if !config_file || ignore_config?
@@ -444,7 +444,7 @@ module Bundler
(https?.*?) # URI
(\.#{Regexp.union(PER_URI_OPTIONS)})? # optional suffix key
\z
- /ix
+ /ix.freeze
# TODO: duplicates Rubygems#normalize_uri
# TODO: is this the correct place to validate mirror URIs?