Skip to content
instance method

Gem::RequestSet::GemDependencyAPI#gemspec

gemspec(options = {})

Loads dependencies from a gemspec file.

options include:

name:

The name portion of the gemspec file. Defaults to searching for any gemspec file in the current directory.

Example
gemspec name: 'my_gem'
path:

The path the gemspec lives in. Defaults to the current directory:

Example
gemspec 'my_gem', path: 'gemspecs', name: 'my_gem'
development_group:

The group to add development dependencies to. By default this is :development. Only one group may be specified.

See also #gem #git .new #git_source also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0