You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add "add_dependency vs add_runtime_dependency" rule
Follow up ruby/rubygems#7799 (comment).
Prefer `add_dependency` over `add_runtime_dependency` because `add_dependency` is considered soft-deprecated
and the Bundler team recommends `add_dependency`.
```ruby
# bad
Gem::Specification.new do |s|
s.add_runtime_dependency 'gem_a'
end
# good
Gem::Specification.new do |s|
s.add_dependency 'gem_a'
end
```
0 commit comments