Merge pull request #568 from athityakumar/dependabot/bundler/rubocop-tw-1.44.0

Update rubocop requirement from ~> 1.39.0 to ~> 1.44.0
This commit is contained in:
Claudio Bley 2023-01-25 21:36:47 +01:00 committed by GitHub
commit cb7189dea1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -75,7 +75,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'ronn', '~> 0'
spec.add_development_dependency 'rspec', '~> 3.7'
spec.add_development_dependency 'rspec-its', '~> 1.2'
spec.add_development_dependency 'rubocop', '~> 1.39.0'
spec.add_development_dependency 'rubocop', '~> 1.44.0'
spec.add_development_dependency 'rubocop-performance', '~> 1.15.0'
spec.add_development_dependency 'rubocop-rake', '~> 0.5'
spec.add_development_dependency 'rubocop-rspec', '~> 2.17.0'

View file

@ -317,7 +317,7 @@ module ColorLS
line_array.push links if @hard_links_count
line_array.push user_info(content) if @show_user
line_array.push group_info(content.group) if @show_group
line_array.concat [size_info(content.size), mtime_info(content.mtime)]
line_array.push(size_info(content.size), mtime_info(content.mtime))
line_array.join(' ')
end

View file

@ -55,7 +55,7 @@ RSpec.describe ColorLS::Core do
executable?: false
)
allow(::Dir).to receive(:entries).and_return([camera])
allow(Dir).to receive(:entries).and_return([camera])
allow(ColorLS::FileInfo).to receive(:new).and_return(file_info)

View file

@ -149,8 +149,8 @@ RSpec.describe ColorLS::Flags do
end
it 'returns no user / group info' do
allow(::Etc).to receive(:getpwuid).and_return(nil)
allow(::Etc).to receive(:getgrgid).and_return(nil)
allow(Etc).to receive(:getpwuid).and_return(nil)
allow(Etc).to receive(:getgrgid).and_return(nil)
expect { subject }.to output(/\s+ \d+ \s+ \d+ .* a.txt/mx).to_stdout
end
@ -338,7 +338,7 @@ RSpec.describe ColorLS::Flags do
let(:args) { ['--snafu'] }
it 'issues a warning, hint about `--help` and exit' do # rubocop:todo RSpec/MultipleExpectations
allow(::Kernel).to receive(:warn) do |message|
allow(Kernel).to receive(:warn) do |message|
expect(message).to output '--snafu'
end