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
86
86
gem 'rubocop' , '~> 1.75.2'
87
87
gem 'rubocop-capybara'
88
88
gem 'rubocop-factory_bot'
89
- gem 'rubocop-rails' , '~> 2.29 '
89
+ gem 'rubocop-rails' , '~> 2.30 '
90
90
gem 'rubocop-rspec' , '~> 3.4'
91
91
gem 'rubocop-rspec_rails'
92
92
gem 'rubocop-sequel' , '~> 0.4.1'
Original file line number Diff line number Diff line change 311
311
mime-types-data (3.2025.0318 )
312
312
mini_mime (1.1.5 )
313
313
mini_portile2 (2.8.8 )
314
- minitest (5.25.4 )
314
+ minitest (5.25.5 )
315
315
mock_redis (0.49.0 )
316
316
redis (~> 5 )
317
317
ms_rest (0.6.4 )
@@ -489,11 +489,12 @@ GEM
489
489
rubocop-factory_bot (2.27.1 )
490
490
lint_roller (~> 1.1 )
491
491
rubocop (~> 1.72 , >= 1.72.1 )
492
- rubocop-rails (2.29.1 )
492
+ rubocop-rails (2.30.3 )
493
493
activesupport (>= 4.2.0 )
494
+ lint_roller (~> 1.1 )
494
495
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 )
497
498
rubocop-rspec (3.5.0 )
498
499
lint_roller (~> 1.1 )
499
500
rubocop (~> 1.72 , >= 1.72.1 )
@@ -673,7 +674,7 @@ DEPENDENCIES
673
674
rubocop (~> 1.75.2 )
674
675
rubocop-capybara
675
676
rubocop-factory_bot
676
- rubocop-rails (~> 2.29 )
677
+ rubocop-rails (~> 2.30 )
677
678
rubocop-rspec (~> 3.4 )
678
679
rubocop-rspec_rails
679
680
rubocop-sequel (~> 0.4.1 )
Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ def to_hash
29
29
end
30
30
end
31
31
32
- def api_error?
33
- @error_hasher . api_error?
34
- end
32
+ delegate :api_error? , to : :@error_hasher
35
33
36
34
private
37
35
Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ def initialize(service_instance)
7
7
end
8
8
end
9
9
10
- def to_hash
11
- @presenter . to_hash
12
- end
10
+ delegate :to_hash , to : :@presenter
13
11
14
12
class ProvidedPresenter
15
13
def initialize ( service_instance )
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ def initialize(wrapped_exception)
5
5
@wrapped_exception = wrapped_exception
6
6
end
7
7
8
- def to_s
9
- @wrapped_exception . to_s
10
- end
8
+ delegate :to_s , to : :@wrapped_exception
11
9
end
12
10
end
13
11
end
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ def initialize(wrapped_exception)
5
5
@wrapped_exception = wrapped_exception
6
6
end
7
7
8
- def to_s
9
- @wrapped_exception . to_s
10
- end
8
+ delegate :to_s , to : :@wrapped_exception
11
9
end
12
10
end
13
11
end
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ def admin_override
15
15
VCAP ::CloudController ::SecurityContext . admin? || VCAP ::CloudController ::SecurityContext . admin_read_only? || VCAP ::CloudController ::SecurityContext . global_auditor?
16
16
end
17
17
18
- def roles
19
- VCAP ::CloudController ::SecurityContext . roles
20
- end
18
+ delegate :roles , to : :'VCAP::CloudController::SecurityContext'
21
19
22
20
def user_email
23
21
VCAP ::CloudController ::SecurityContext . current_user_email
Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ def export_attrs
37
37
self . class . export_attrs || [ ]
38
38
end
39
39
40
- def export_attrs_from_methods
41
- self . class . export_attrs_from_methods
42
- end
40
+ delegate :export_attrs_from_methods , to : :class
43
41
44
42
# Update the model instance from the supplied json string. Only update
45
43
# attributes specified by import_attributes.
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ def initialize(opts={})
10
10
@uaa_client = create_uaa_client
11
11
end
12
12
13
- def get_clients ( client_ids )
14
- @uaa_client . get_clients ( client_ids )
15
- end
13
+ delegate :get_clients , to : :@uaa_client
16
14
17
15
def modify_transaction ( changeset )
18
16
return if changeset . empty?
You can’t perform that action at this time.
0 commit comments