Skip to content

Commit 2876117

Browse files
build(deps-dev): bump rubocop-rails from 2.29.1 to 2.30.3 (#4300)
* build(deps-dev): bump rubocop-rails from 2.29.1 to 2.30.3 Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.29.1 to 2.30.3. - [Release notes](https://github.com/rubocop/rubocop-rails/releases) - [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop-rails@v2.29.1...v2.30.3) --- updated-dependencies: - dependency-name: rubocop-rails dependency-version: 2.30.3 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Run rubocop autocorrect --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: M. Oleske <[email protected]>
1 parent 9487066 commit 2876117

File tree

9 files changed

+14
-27
lines changed

9 files changed

+14
-27
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ group :test do
8686
gem 'rubocop', '~> 1.75.2'
8787
gem 'rubocop-capybara'
8888
gem 'rubocop-factory_bot'
89-
gem 'rubocop-rails', '~> 2.29'
89+
gem 'rubocop-rails', '~> 2.30'
9090
gem 'rubocop-rspec', '~> 3.4'
9191
gem 'rubocop-rspec_rails'
9292
gem 'rubocop-sequel', '~> 0.4.1'

Gemfile.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ GEM
311311
mime-types-data (3.2025.0318)
312312
mini_mime (1.1.5)
313313
mini_portile2 (2.8.8)
314-
minitest (5.25.4)
314+
minitest (5.25.5)
315315
mock_redis (0.49.0)
316316
redis (~> 5)
317317
ms_rest (0.6.4)
@@ -489,11 +489,12 @@ GEM
489489
rubocop-factory_bot (2.27.1)
490490
lint_roller (~> 1.1)
491491
rubocop (~> 1.72, >= 1.72.1)
492-
rubocop-rails (2.29.1)
492+
rubocop-rails (2.30.3)
493493
activesupport (>= 4.2.0)
494+
lint_roller (~> 1.1)
494495
rack (>= 1.1)
495-
rubocop (>= 1.52.0, < 2.0)
496-
rubocop-ast (>= 1.31.1, < 2.0)
496+
rubocop (>= 1.72.1, < 2.0)
497+
rubocop-ast (>= 1.38.0, < 2.0)
497498
rubocop-rspec (3.5.0)
498499
lint_roller (~> 1.1)
499500
rubocop (~> 1.72, >= 1.72.1)
@@ -673,7 +674,7 @@ DEPENDENCIES
673674
rubocop (~> 1.75.2)
674675
rubocop-capybara
675676
rubocop-factory_bot
676-
rubocop-rails (~> 2.29)
677+
rubocop-rails (~> 2.30)
677678
rubocop-rspec (~> 3.4)
678679
rubocop-rspec_rails
679680
rubocop-sequel (~> 0.4.1)

app/presenters/error_presenter.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def to_hash
2929
end
3030
end
3131

32-
def api_error?
33-
@error_hasher.api_error?
34-
end
32+
delegate :api_error?, to: :@error_hasher
3533

3634
private
3735

app/presenters/system_environment/service_instance_presenter.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ def initialize(service_instance)
77
end
88
end
99

10-
def to_hash
11-
@presenter.to_hash
12-
end
10+
delegate :to_hash, to: :@presenter
1311

1412
class ProvidedPresenter
1513
def initialize(service_instance)

lib/cloud_controller/errors/instances_unavailable.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ def initialize(wrapped_exception)
55
@wrapped_exception = wrapped_exception
66
end
77

8-
def to_s
9-
@wrapped_exception.to_s
10-
end
8+
delegate :to_s, to: :@wrapped_exception
119
end
1210
end
1311
end

lib/cloud_controller/errors/no_running_instances.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ def initialize(wrapped_exception)
55
@wrapped_exception = wrapped_exception
66
end
77

8-
def to_s
9-
@wrapped_exception.to_s
10-
end
8+
delegate :to_s, to: :@wrapped_exception
119
end
1210
end
1311
end

lib/cloud_controller/security/access_context.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ def admin_override
1515
VCAP::CloudController::SecurityContext.admin? || VCAP::CloudController::SecurityContext.admin_read_only? || VCAP::CloudController::SecurityContext.global_auditor?
1616
end
1717

18-
def roles
19-
VCAP::CloudController::SecurityContext.roles
20-
end
18+
delegate :roles, to: :'VCAP::CloudController::SecurityContext'
2119

2220
def user_email
2321
VCAP::CloudController::SecurityContext.current_user_email

lib/sequel_plugins/vcap_serialization.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def export_attrs
3737
self.class.export_attrs || []
3838
end
3939

40-
def export_attrs_from_methods
41-
self.class.export_attrs_from_methods
42-
end
40+
delegate :export_attrs_from_methods, to: :class
4341

4442
# Update the model instance from the supplied json string. Only update
4543
# attributes specified by import_attributes.

lib/services/sso/uaa/uaa_client_manager.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ def initialize(opts={})
1010
@uaa_client = create_uaa_client
1111
end
1212

13-
def get_clients(client_ids)
14-
@uaa_client.get_clients(client_ids)
15-
end
13+
delegate :get_clients, to: :@uaa_client
1614

1715
def modify_transaction(changeset)
1816
return if changeset.empty?

0 commit comments

Comments
 (0)