brew vendor-gems: commit updates.

This commit is contained in:
Mike McQuaid 2019-12-25 20:54:22 +00:00
parent 6e7e9ddc51
commit 6eb7914d81
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
32 changed files with 6 additions and 5 deletions

View File

@ -62,6 +62,6 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10.1/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/unicode-display_width-1.6.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.78.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.78.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.5.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.5.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.37.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.37.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.2.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.2.0/lib"

View File

@ -32,11 +32,11 @@ module RuboCop
# make `count` work with a block is to call `to_a.count {...}`. # make `count` work with a block is to call `to_a.count {...}`.
# #
# Example: # Example:
# Model.where(id: [1, 2, 3].select { |m| m.method == true }.size # `Model.where(id: [1, 2, 3]).select { |m| m.method == true }.size`
# #
# becomes: # becomes:
# #
# Model.where(id: [1, 2, 3]).to_a.count { |m| m.method == true } # `Model.where(id: [1, 2, 3]).to_a.count { |m| m.method == true }`
class Count < Cop class Count < Cop
include RangeHelp include RangeHelp

View File

@ -65,7 +65,8 @@ module RuboCop
end end
def non_redundant_merge?(node, receiver, pairs) def non_redundant_merge?(node, receiver, pairs)
non_redundant_pairs?(receiver, pairs) || pairs.empty? ||
non_redundant_pairs?(receiver, pairs) ||
kwsplat_used?(pairs) || kwsplat_used?(pairs) ||
non_redundant_value_used?(receiver, node) non_redundant_value_used?(receiver, node)
end end

View File

@ -3,7 +3,7 @@
module RuboCop module RuboCop
module Performance module Performance
module Version module Version
STRING = '1.5.1' STRING = '1.5.2'
end end
end end
end end