diff --git a/Gemfile b/Gemfile index 47c7f851917..acb2e947690 100644 --- a/Gemfile +++ b/Gemfile @@ -74,7 +74,7 @@ group :test do gem 'rspec-its' gem 'rspec-rails', '~> 8.0.4' gem 'rspec-wait' - gem 'rubocop', '~> 1.86.1' + gem 'rubocop', '~> 1.86.2' gem 'rubocop-capybara' gem 'rubocop-factory_bot' gem 'rubocop-rails', '~> 2.34' diff --git a/Gemfile.lock b/Gemfile.lock index e911f07c94a..6549fd7923b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -463,7 +463,7 @@ GEM activesupport (>= 3.0.0) mustache (~> 1.0, >= 0.99.4) rspec (~> 3.0) - rubocop (1.86.1) + rubocop (1.86.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -664,7 +664,7 @@ DEPENDENCIES rspec-rails (~> 8.0.4) rspec-wait rspec_api_documentation (>= 6.1.0) - rubocop (~> 1.86.1) + rubocop (~> 1.86.2) rubocop-capybara rubocop-factory_bot rubocop-rails (~> 2.34) diff --git a/app/models/runtime/process_model.rb b/app/models/runtime/process_model.rb index 80ecffa2bee..b4cc61628ab 100644 --- a/app/models/runtime/process_model.rb +++ b/app/models/runtime/process_model.rb @@ -418,23 +418,23 @@ def staging_failed_description def console=(value) self.metadata ||= {} - self.metadata['console'] = value + metadata['console'] = value end def console # without the == true check, this expression can return nil if # the key doesn't exist, rather than false - self.metadata && self.metadata['console'] == true + metadata && metadata['console'] == true end def debug=(value) self.metadata ||= {} # We don't support sending nil through API - self.metadata['debug'] = value == 'none' ? nil : value + metadata['debug'] = value == 'none' ? nil : value end def debug - self.metadata && self.metadata['debug'] + metadata && metadata['debug'] end delegate :name, to: :app