brew vendor-gems: commit updates.
This commit is contained in:
parent
5a4f0064b5
commit
5aecef8832
@ -63,6 +63,6 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10
|
|||||||
$:.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.73.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.73.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.4.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.4.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.34.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.34.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"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-cobertura-1.3.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-cobertura-1.3.1/lib"
|
||||||
|
|||||||
@ -166,10 +166,10 @@ module RuboCop
|
|||||||
# rubocop:enable InternalAffairs/NodeDestructuring
|
# rubocop:enable InternalAffairs/NodeDestructuring
|
||||||
if !namespace
|
if !namespace
|
||||||
[name]
|
[name]
|
||||||
elsif namespace.cbase_type?
|
elsif namespace.const_type?
|
||||||
[nil, name]
|
|
||||||
else
|
|
||||||
[*const_name(namespace), name]
|
[*const_name(namespace), name]
|
||||||
|
elsif namespace.lvar_type? || namespace.cbase_type?
|
||||||
|
[nil, name]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -47,12 +47,14 @@ module RuboCop
|
|||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# # good - anonymous class, no constant needs to be defined
|
# # good - anonymous class, no constant needs to be defined
|
||||||
|
# describe SomeClass do
|
||||||
# let(:foo_class) do
|
# let(:foo_class) do
|
||||||
# Class.new(described_class) do
|
# Class.new(described_class) do
|
||||||
# def double_that
|
# def double_that
|
||||||
# some_base_method * 2
|
# some_base_method * 2
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
|
# end
|
||||||
#
|
#
|
||||||
# it { expect(foo_class.new.double_that).to eq(4) }
|
# it { expect(foo_class.new.double_that).to eq(4) }
|
||||||
# end
|
# end
|
||||||
@ -4,7 +4,7 @@ module RuboCop
|
|||||||
module RSpec
|
module RSpec
|
||||||
# Version information for the RSpec RuboCop plugin.
|
# Version information for the RSpec RuboCop plugin.
|
||||||
module Version
|
module Version
|
||||||
STRING = '1.34.0'
|
STRING = '1.34.1'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user