Skip to content

Commit

Permalink
RuboCop: Gemspec/AddRuntimeDependency (#53)
Browse files Browse the repository at this point in the history
> Use `add_dependency` instead of `add_runtime_dependency`.

Resolves errors first surfaced in #52.

References:

- https://rubystyle.guide#add_dependency_vs_add_runtime_dependency
-
rubygems/rubygems#7799 (comment)
  • Loading branch information
jgarber623-cargosense authored Jul 22, 2024
2 parents 6ac9a95 + 06095f7 commit b1888f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rubocop-cargosense.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ Gem::Specification.new do |spec|
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}"
}

spec.add_runtime_dependency "rubocop", "~> 1.61"
spec.add_runtime_dependency "rubocop-capybara", "~> 2.20"
spec.add_runtime_dependency "rubocop-factory_bot", "~> 2.26.1"
spec.add_runtime_dependency "rubocop-performance", "~> 1.20"
spec.add_runtime_dependency "rubocop-rails", "~> 2.23"
spec.add_runtime_dependency "rubocop-rake", "~> 0.6"
spec.add_runtime_dependency "rubocop-rspec", "~> 3.0.1"
spec.add_runtime_dependency "rubocop-rspec_rails", "~> 2.30"
spec.add_dependency "rubocop", "~> 1.61"
spec.add_dependency "rubocop-capybara", "~> 2.20"
spec.add_dependency "rubocop-factory_bot", "~> 2.26.1"
spec.add_dependency "rubocop-performance", "~> 1.20"
spec.add_dependency "rubocop-rails", "~> 2.23"
spec.add_dependency "rubocop-rake", "~> 0.6"
spec.add_dependency "rubocop-rspec", "~> 3.0.1"
spec.add_dependency "rubocop-rspec_rails", "~> 2.30"
end

0 comments on commit b1888f4

Please sign in to comment.