Skip to content

Commit 6d55fb5

Browse files
committed
Suppress RuboCop offenses
This commit suppresses the following new RuboCop offenses: ```console $ bundle exec rubocop (snip) rubocop-rails.gemspec:34:5: C: [Correctable] Gemspec/AddRuntimeDependency: Use add_dependency instead of add_runtime_dependency. s.add_runtime_dependency 'activesupport', '>= 4.2.0' ^^^^^^^^^^^^^^^^^^^^^^ rubocop-rails.gemspec:37:5: C: [Correctable] Gemspec/AddRuntimeDependency: Use add_dependency instead of add_runtime_dependency. s.add_runtime_dependency 'rack', '>= 1.1' ^^^^^^^^^^^^^^^^^^^^^^ rubocop-rails.gemspec:38:5: C: [Correctable] Gemspec/AddRuntimeDependency: Use add_dependency instead of add_runtime_dependency. s.add_runtime_dependency 'rubocop', '>= 1.33.0', '< 2.0' ^^^^^^^^^^^^^^^^^^^^^^ rubocop-rails.gemspec:39:5: C: [Correctable] Gemspec/AddRuntimeDependency: Use add_dependency instead of add_runtime_dependency. s.add_runtime_dependency 'rubocop-ast', '>= 1.31.1', '< 2.0' ^^^^^^^^^^^^^^^^^^^^^^ 294 files inspected, 4 offenses detected, 4 offenses autocorrectable ```
1 parent 4aa830b commit 6d55fb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rubocop-rails.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Gem::Specification.new do |s|
3131
'rubygems_mfa_required' => 'true'
3232
}
3333

34-
s.add_runtime_dependency 'activesupport', '>= 4.2.0'
34+
s.add_dependency 'activesupport', '>= 4.2.0'
3535
# Rack::Utils::SYMBOL_TO_STATUS_CODE, which is used by HttpStatus cop, was
3636
# introduced in rack 1.1
37-
s.add_runtime_dependency 'rack', '>= 1.1'
38-
s.add_runtime_dependency 'rubocop', '>= 1.33.0', '< 2.0'
39-
s.add_runtime_dependency 'rubocop-ast', '>= 1.31.1', '< 2.0'
37+
s.add_dependency 'rack', '>= 1.1'
38+
s.add_dependency 'rubocop', '>= 1.33.0', '< 2.0'
39+
s.add_dependency 'rubocop-ast', '>= 1.31.1', '< 2.0'
4040
end

0 commit comments

Comments
 (0)