method

add_runtime_dependency

ruby latest stable - Class: Gem::Specification
add_runtime_dependency(gem, *requirements)
public

Adds a runtime dependency named gem with requirements to this gem.

Usage:

spec.add_runtime_dependency 'example', '~> 1.1', '>= 1.1.4'