From 07f9b8efc631526b3d010fdb1863a0e9f9c016a5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 21 Jun 2019 12:10:47 +0100 Subject: [PATCH] brew vendor-gems: commit updates. --- .../Homebrew/vendor/bundle/bundler/setup.rb | 24 +++++++++---------- .../config/default.yml | 0 .../lib/rubocop-performance.rb | 0 .../lib/rubocop/cop/performance/caller.rb | 0 .../cop/performance/case_when_splat.rb | 0 .../lib/rubocop/cop/performance/casecmp.rb | 0 .../cop/performance/chain_array_allocation.rb | 0 .../cop/performance/compare_with_block.rb | 0 .../lib/rubocop/cop/performance/count.rb | 0 .../lib/rubocop/cop/performance/detect.rb | 0 .../cop/performance/double_start_end_with.rb | 0 .../lib/rubocop/cop/performance/end_with.rb | 0 .../lib/rubocop/cop/performance/fixed_size.rb | 4 ++-- .../lib/rubocop/cop/performance/flat_map.rb | 0 .../performance/inefficient_hash_search.rb | 0 .../rubocop/cop/performance/open_struct.rb | 0 .../rubocop/cop/performance/range_include.rb | 0 .../cop/performance/redundant_block_call.rb | 0 .../cop/performance/redundant_match.rb | 0 .../cop/performance/redundant_merge.rb | 0 .../rubocop/cop/performance/regexp_match.rb | 8 +++++-- .../rubocop/cop/performance/reverse_each.rb | 0 .../lib/rubocop/cop/performance/size.rb | 0 .../lib/rubocop/cop/performance/start_with.rb | 0 .../cop/performance/string_replacement.rb | 0 .../lib/rubocop/cop/performance/times_map.rb | 0 .../cop/performance/unfreeze_string.rb | 0 .../cop/performance/uri_default_parser.rb | 0 .../lib/rubocop/cop/performance_cops.rb | 0 .../lib/rubocop/performance.rb | 0 .../lib/rubocop/performance/inject.rb | 0 .../lib/rubocop/performance/version.rb | 2 +- 32 files changed, 21 insertions(+), 17 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/config/default.yml (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop-performance.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/caller.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/case_when_splat.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/casecmp.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/chain_array_allocation.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/compare_with_block.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/count.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/detect.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/double_start_end_with.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/end_with.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/fixed_size.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/flat_map.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/inefficient_hash_search.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/open_struct.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/range_include.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/redundant_block_call.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/redundant_match.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/redundant_merge.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/regexp_match.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/reverse_each.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/size.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/start_with.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/string_replacement.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/times_map.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/unfreeze_string.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance/uri_default_parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/cop/performance_cops.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/performance.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/performance/inject.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/{rubocop-performance-1.3.0 => rubocop-performance-1.4.0}/lib/rubocop/performance/version.rb (81%) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 20fc3fb6a6..f02f5a0e58 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -15,10 +15,10 @@ $:.unshift "#{path}/" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/connection_pool-2.2.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-18/2.3.0/json-2.2.0" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/json-2.2.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/docile-1.3.1/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/docile-1.3.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-html-0.10.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-0.16.1/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tins-1.20.2/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tins-1.20.3/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/term-ansicolor-1.7.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/thor-0.20.3/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/coveralls-0.8.23/lib" @@ -30,8 +30,8 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/domain_name-0.5.20180 $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-18/2.3.0/hpricot-0.8.6" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/hpricot-0.8.6/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/http-cookie-1.0.3/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.2" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/jaro_winkler-1.5.2/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.3" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/jaro_winkler-1.5.3/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mime-types-data-3.2019.0331/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mime-types-3.2.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/net-http-digest_auth-1.4.1/lib" @@ -44,25 +44,25 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/webrobots-0.1.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mechanize-2.7.6/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mustache-1.1.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel-1.17.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel_tests-2.29.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel_tests-2.29.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parser-2.6.3.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/plist-3.5.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rainbow-3.0.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/universal-darwin-18/2.3.0/rdiscount-2.2.0.1" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rdiscount-2.2.0.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ronn-0.7.3/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-support-3.8.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-core-3.8.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-expectations-3.8.3/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-mocks-3.8.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-support-3.8.2/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-core-3.8.1/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-expectations-3.8.4/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-mocks-3.8.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-3.8.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-its-1.3.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-retry-0.6.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-1.6.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.69.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.3.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.71.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.4.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.33.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.2.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-cobertura-1.3.1/lib" diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/config/default.yml b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/config/default.yml similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/config/default.yml rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/config/default.yml diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop-performance.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop-performance.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop-performance.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop-performance.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/caller.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/caller.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/caller.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/caller.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/case_when_splat.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/case_when_splat.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/case_when_splat.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/case_when_splat.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/casecmp.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/casecmp.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/casecmp.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/casecmp.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/chain_array_allocation.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/chain_array_allocation.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/chain_array_allocation.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/chain_array_allocation.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/compare_with_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/compare_with_block.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/compare_with_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/compare_with_block.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/count.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/count.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/count.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/count.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/detect.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/detect.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/detect.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/detect.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/double_start_end_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/double_start_end_with.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/double_start_end_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/double_start_end_with.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/end_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/end_with.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/end_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/end_with.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/fixed_size.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/fixed_size.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/fixed_size.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/fixed_size.rb index 785d4d17c5..c3a0beb481 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/fixed_size.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/fixed_size.rb @@ -38,7 +38,7 @@ module RuboCop # # good # [1, 2, *thud].count # garply = [1, 2, 3] - # garly.size + # garply.size # # # good # { a: corge, **grault }.length @@ -53,7 +53,7 @@ module RuboCop MATCHER def on_send(node) - return if allowed_parent?(node.parent) + return if node.ancestors.any? { |ancestor| allowed_parent?(ancestor) } counter(node) do |var, arg| return if allowed_variable?(var) || allowed_argument?(arg) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/flat_map.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/flat_map.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/flat_map.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/flat_map.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/inefficient_hash_search.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/inefficient_hash_search.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/inefficient_hash_search.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/inefficient_hash_search.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/open_struct.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/open_struct.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/open_struct.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/open_struct.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/range_include.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/range_include.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/range_include.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/range_include.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/redundant_block_call.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/redundant_block_call.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/redundant_block_call.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/redundant_block_call.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/redundant_match.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/redundant_match.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/redundant_match.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/redundant_match.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/redundant_merge.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/redundant_merge.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/redundant_merge.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/redundant_merge.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/regexp_match.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/regexp_match.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/regexp_match.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/regexp_match.rb index 9c9f8e130a..bb2f068353 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/regexp_match.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/regexp_match.rb @@ -85,12 +85,15 @@ module RuboCop def_node_matcher :match_method?, <<-PATTERN { - (send _recv :match _ ) (send _recv :match {regexp str sym}) (send {regexp str sym} :match _) } PATTERN + def_node_matcher :match_with_int_arg_method?, <<-PATTERN + (send _recv :match _ (int ...)) + PATTERN + def_node_matcher :match_operator?, <<-PATTERN (send !nil? {:=~ :!~} !nil?) PATTERN @@ -109,6 +112,7 @@ module RuboCop MATCH_NODE_PATTERN = <<-PATTERN { #match_method? + #match_with_int_arg_method? #match_operator? #match_threequals? #match_with_lvasgn? @@ -143,7 +147,7 @@ module RuboCop def autocorrect(node) lambda do |corrector| - if match_method?(node) + if match_method?(node) || match_with_int_arg_method?(node) corrector.replace(node.loc.selector, 'match?') elsif match_operator?(node) || match_threequals?(node) recv, oper, arg = *node diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/reverse_each.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/reverse_each.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/reverse_each.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/reverse_each.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/size.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/size.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/size.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/size.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/start_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/start_with.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/start_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/start_with.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/string_replacement.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/string_replacement.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/string_replacement.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/string_replacement.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/times_map.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/times_map.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/times_map.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/times_map.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/unfreeze_string.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/unfreeze_string.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/unfreeze_string.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/unfreeze_string.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/uri_default_parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/uri_default_parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance/uri_default_parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance/uri_default_parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance_cops.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance_cops.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/cop/performance_cops.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/cop/performance_cops.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance/inject.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance/inject.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance/inject.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance/inject.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance/version.rb similarity index 81% rename from Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance/version.rb index f376e2a7f3..a18d23035c 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.3.0/lib/rubocop/performance/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/rubocop-performance-1.4.0/lib/rubocop/performance/version.rb @@ -3,7 +3,7 @@ module RuboCop module Performance module Version - STRING = '1.3.0' + STRING = '1.4.0' end end end