diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-01-14 16:34:08 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-31 22:21:13 -0600 |
commit | b1afbe3a2ff7623c9a0e8504bc85af4bd8156059 (patch) | |
tree | 832de2112b4c7a44d081302eec030c74448c3712 /lib/bundler/gem_helpers.rb | |
parent | 8b64c9785abfcdafe1e8420f61d51e924ba434a1 (diff) | |
download | bundler-b1afbe3a2ff7623c9a0e8504bc85af4bd8156059.tar.gz |
[RuboCop] Fix Style/MutableConstant
Diffstat (limited to 'lib/bundler/gem_helpers.rb')
-rw-r--r-- | lib/bundler/gem_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/gem_helpers.rb b/lib/bundler/gem_helpers.rb index 146998957d..6e43caef1a 100644 --- a/lib/bundler/gem_helpers.rb +++ b/lib/bundler/gem_helpers.rb @@ -1,6 +1,6 @@ module Bundler module GemHelpers - GENERIC_CACHE = {} + GENERIC_CACHE = {}.freeze GENERICS = [ [Gem::Platform.new("java"), Gem::Platform.new("java")], [Gem::Platform.new("mswin32"), Gem::Platform.new("mswin32")], @@ -9,7 +9,7 @@ module Bundler [Gem::Platform.new("x64-mingw32"), Gem::Platform.new("x64-mingw32")], [Gem::Platform.new("x86_64-mingw32"), Gem::Platform.new("x64-mingw32")], [Gem::Platform.new("mingw32"), Gem::Platform.new("x86-mingw32")] - ] + ].freeze def generic(p) return p if p == Gem::Platform::RUBY |