File tree Expand file tree Collapse file tree 9 files changed +14
-27
lines changed
Expand file tree Collapse file tree 9 files changed +14
-27
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
1311end
Original file line number Diff line number Diff 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
1311end
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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?
You can’t perform that action at this time.
0 commit comments