End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#add_dependency
add_dependency(gem, *requirements)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/specification.rb, line 569
def add_runtime_dependency(gem, *requirements)
if requirements.uniq.size != requirements.size
warn "WARNING: duplicated #{gem} dependency #{requirements}"
end
add_dependency_with_type(gem, :runtime, requirements)
end
Alias of #add_runtime_dependency
Adds a runtime dependency named gem with requirements to this gem.
Usage:
Example
spec.add_runtime_dependency 'example', '~> 1.1', '>= 1.1.4'
See also
#add_runtime_dependency
#add_bindir
#add_dependency_with_type
#activate_dependencies
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0