Update and close the session’s PStore
file.
For full_name
, verifies the certificate chain
is valid, the digests
match the signatures signatures
created by the signer depending on the policy
settings.
If key
is given it is used to validate the signing certificate.
Raises an exception if a security policy that verifies data is active. Old
format gems cannot be verified as signed.
Close the tar file
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