instance method
Gem::Specification#add_runtime_dependency
add_runtime_dependency(gem, *requirements)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification.rb, line 543
def add_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_dependency
Adds a runtime dependency named gem with requirements to this gem.
Usage:
Example
spec.add_dependency 'example', '~> 1.1', '>= 1.1.4'
See also
#add_dependency
#add_development_dependency
#add_self_to_load_path
#add_dependency_with_type
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0