Closes the TarWriter
Is the TarWriter
closed?
Loads the gem dependency file and returns self.
Specifies a gem dependency with the given name
and requirements
. You may also supply options
following the requirements
options
include:
RubyGems does not provide any autorequire features so requires in a gem dependencies file are recorded but ignored.
In bundler the require: option overrides the file to require during Bundler.require
. By default the name of the dependency is required in Bundler
. A single file or an Array
of files may be given.
To disable requiring any file give false
:
gem 'rake', require: false
Place the dependencies in the given dependency group. A single group or an Array
of groups may be given.
See also group
Only install the dependency on the given platform. A single platform or an Array
of platforms may be given.
See platform
for a list of platforms available.
Install this dependency from an unpacked gem in the given directory.
gem 'modified_gem', path: 'vendor/modified_gem'
Install this dependency from a git repository:
gem 'private_gem', git: git@my.company.example:private_gem.git'
Install this dependency from the gist ID:
gem 'bang', gist: '1232884'
Install this dependency from a github git repository:
gem 'private_gem', github: 'my_company/private_gem'
Set
to true
to include submodules when fetching the git repository for git:, gist: and github: dependencies.
Use the given commit name or SHA for git:, gist: and github: dependencies.
Use the given branch for git:, gist: and github: dependencies.
Use the given tag for git:, gist: and github: dependencies.
Loads dependencies from a gemspec file.
options
include:
The name portion of the gemspec file. Defaults to searching for any gemspec file in the current directory.
gemspec name: 'my_gem'
The path the gemspec lives in. Defaults to the current directory:
gemspec 'my_gem', path: 'gemspecs', name: 'my_gem'
The group to add development dependencies to. By default this is :development. Only one group may be specified.
Is this activation request for a development dependency?
Downloads a gem at path
and returns the file path.
The version of this activation request’s specification
When allow_prerelease
is set to true
prereleases gems are allowed to match dependencies.
Return the Specification that listed the dependency
Is this dependency a development dependency?
Errors encountered while resolving gems
The version of the gem for this specification.
Make sure the trust directory exists. If it does exist, make sure it’s actually a directory. If not, then create it with the appropriate permissions.
We don’t need to download an installed gem
Creates a gem with name
, version
and deps
. The created gem can be downloaded and installed.
The specification will be yielded before gem creation for customization, but only the block or the dependencies may be set, not both.
Creates a gem with name
, version
and deps
. The created gem is downloaded in to the cache directory but is not installed
The specification will be yielded before gem creation for customization, but only the block or the dependencies may be set, not both.
Returns a challenge response which asks for authentication information
Returns a challenge response which asks for authentication information
Reloads passwords from the database