File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
lib/cloud_controller/diego/reporters Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ group :test do
89
89
gem 'rspec-rails' , '~> 6.0.1'
90
90
gem 'rspec-wait'
91
91
gem 'rspec_api_documentation' , '>= 6.1.0'
92
- gem 'rubocop' , '~> 1.44 .1'
92
+ gem 'rubocop' , '~> 1.45 .1'
93
93
gem 'timecop'
94
94
gem 'webmock' , '> 2.3.1'
95
95
end
Original file line number Diff line number Diff line change 380
380
rb-inotify (0.10.1 )
381
381
ffi (~> 1.0 )
382
382
recursive-open-struct (1.1.3 )
383
- regexp_parser (2.6.2 )
383
+ regexp_parser (2.7.0 )
384
384
representable (3.2.0 )
385
385
declarative (< 0.1.0 )
386
386
trailblazer-option (>= 0.1.1 , < 0.2.0 )
432
432
activesupport (>= 3.0.0 )
433
433
mustache (~> 1.0 , >= 0.99.4 )
434
434
rspec (~> 3.0 )
435
- rubocop (1.44 .1 )
435
+ rubocop (1.45 .1 )
436
436
json (~> 2.3 )
437
437
parallel (~> 1.10 )
438
438
parser (>= 3.2.0.0 )
@@ -605,7 +605,7 @@ DEPENDENCIES
605
605
rspec-rails (~> 6.0.1 )
606
606
rspec-wait
607
607
rspec_api_documentation (>= 6.1.0 )
608
- rubocop (~> 1.44 .1 )
608
+ rubocop (~> 1.45 .1 )
609
609
rubyzip (>= 1.3.0 )
610
610
sequel (~> 5.65 )
611
611
sequel_pg
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def index
16
16
def show
17
17
space = SpaceFetcher . new . fetch ( hashed_params [ :guid ] )
18
18
resource_not_found! ( :space ) unless space && permission_queryer . can_read_from_space? ( space . id , space . organization_id )
19
- resource_not_found! ( :feature ) unless SPACE_FEATURE == hashed_params [ :name ]
19
+ resource_not_found! ( :feature ) unless hashed_params [ :name ] == SPACE_FEATURE
20
20
21
21
render status : :ok , json : Presenters ::V3 ::SpaceSshFeaturePresenter . new ( space )
22
22
end
@@ -27,7 +27,7 @@ def update
27
27
28
28
space = SpaceFetcher . new . fetch ( hashed_params [ :guid ] )
29
29
resource_not_found! ( :space ) unless space && permission_queryer . can_read_from_space? ( space . id , space . organization_id )
30
- resource_not_found! ( :feature ) unless SPACE_FEATURE == hashed_params [ :name ]
30
+ resource_not_found! ( :feature ) unless hashed_params [ :name ] == SPACE_FEATURE
31
31
unauthorized! unless permission_queryer . can_update_active_space? ( space . id , space . organization_id )
32
32
suspended! unless permission_queryer . is_space_active? ( space . id )
33
33
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ def logger
113
113
114
114
def running_or_starting? ( lrp )
115
115
translated_state = LrpStateTranslator . translate_lrp_state ( lrp )
116
- return true if VCAP ::CloudController ::Diego ::LRP_RUNNING == translated_state
117
- return true if VCAP ::CloudController ::Diego ::LRP_STARTING == translated_state
116
+ return true if translated_state == VCAP ::CloudController ::Diego ::LRP_RUNNING
117
+ return true if translated_state == VCAP ::CloudController ::Diego ::LRP_STARTING
118
118
119
119
false
120
120
end
You can’t perform that action at this time.
0 commit comments