Skip to content

build(deps-dev): bump rubocop from 1.79.1 to 1.79.2 #4499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ group :test do
gem 'rspec-its'
gem 'rspec-rails', '~> 8.0.1'
gem 'rspec-wait'
gem 'rubocop', '~> 1.79.1'
gem 'rubocop', '~> 1.79.2'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rails', '~> 2.32'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ GEM
redis-client (>= 0.22.0)
redis-client (0.25.1)
connection_pool
regexp_parser (2.10.0)
regexp_parser (2.11.0)
reline (0.6.1)
io-console (~> 0.5)
representable (3.2.0)
Expand Down Expand Up @@ -480,7 +480,7 @@ GEM
activesupport (>= 3.0.0)
mustache (~> 1.0, >= 0.99.4)
rspec (~> 3.0)
rubocop (1.79.1)
rubocop (1.79.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
Expand Down Expand Up @@ -685,7 +685,7 @@ DEPENDENCIES
rspec-rails (~> 8.0.1)
rspec-wait
rspec_api_documentation (>= 6.1.0)
rubocop (~> 1.79.1)
rubocop (~> 1.79.2)
rubocop-capybara
rubocop-factory_bot
rubocop-rails (~> 2.32)
Expand Down
2 changes: 1 addition & 1 deletion lib/cloud_controller/check_stacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def validate_stacks

def validate_stack(deprecated_stack)
configured_stacks = @stack_config.stacks
deprecated_stack_in_config = (configured_stacks.find { |stack| stack['name'] == deprecated_stack }).present?
deprecated_stack_in_config = configured_stacks.find { |stack| stack['name'] == deprecated_stack }.present?
return if deprecated_stack_in_config

no_deprecated_stack_in_db = @db.fetch('SELECT 1 FROM stacks WHERE name LIKE ? ', deprecated_stack).empty?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class Foo; extend IntegerArraySerializer; end
let(:serializer) { IntegerArraySerializer.serializer }

it 'raises an error when not passed an array' do
(expect { serializer.call('hello') }).to raise_error(ArgumentError, 'Integer array columns must be passed an array')
expect { serializer.call('hello') }.to raise_error(ArgumentError, 'Integer array columns must be passed an array')
end

it 'raises an error when not passed an array of integers' do
(expect { serializer.call([1, 2, 'derp']) }).to raise_error(ArgumentError, 'All members of the array must be integers')
expect { serializer.call([1, 2, 'derp']) }.to raise_error(ArgumentError, 'All members of the array must be integers')
end

it 'does not raise an error if passed nil' do
(expect { serializer.call(nil) }).not_to raise_error
expect { serializer.call(nil) }.not_to raise_error
end

it 'munges arrays to be in an expected comma-separated format' do
Expand Down