Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 308 Bytes

add_runtime_dependency.md

File metadata and controls

14 lines (11 loc) · 308 Bytes

Prefer add_dependency over add_runtime_dependency as the latter is considered soft-deprecated.

Example:

# bad
Gem::Specification.new do |spec|
  spec.add_runtime_dependency('rubocop')
end

# good
Gem::Specification.new do |spec|
  spec.add_dependency('rubocop')
end