Return all files in this gem that match for glob
.
Returns a string usable in Dir.glob
to match all requirable paths for this spec.
Display to the user that a gem couldn’t be found and reasons why
Creates an option parser and fills it in with the help info for the command.
Checks the permissions of the credentials file. If they are not 0600 an error message is displayed and RubyGems aborts.
Returns the RubyGems.org API key
Sets the RubyGems.org API key to api_key
Ensures the Gem::Specification
written out for this gem is loadable upon installation.
Prefix and suffix the program filename the same as ruby.
Given a name and requirement, downloads this gem into cache and returns the filename. Returns nil if the gem cannot be located.
we have our own signing code here to avoid a dependency on the aws-sdk gem
Installs from the gem dependencies files in the :gemdeps
option in options
, yielding to the block
as in install
.
If :without_groups
is given in the options
, those groups in the gem dependencies file are not used. See Gem::Installer
for other options
.
Creates a Resolver
that queries only against the already installed gems for the needed
dependencies.
Adds a development dependency named gem
with requirements
to this gem.
Usage:
spec.add_development_dependency 'example', '~> 1.1', '>= 1.1.4'
Development dependencies aren’t installed by default and aren’t activated when a gem is required.
The version of Ruby required by this gem. The ruby version can be specified to the patch-level:
$ ruby -v -e 'p Gem.ruby_version' ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0] #<Gem::Version "2.0.0.247">
Prereleases can also be specified.
Usage:
# This gem will work with 1.8.6 or greater... spec.required_ruby_version = '>= 1.8.6' # Only with final releases of major version 2 where minor version is at least 3 spec.required_ruby_version = '~> 2.3' # Only prereleases or final releases after 2.6.0.preview2 spec.required_ruby_version = '> 2.6.0.preview2' # This gem will work with 2.3.0 or greater, including major version 3, but lesser than 4.0.0 spec.required_ruby_version = '>= 2.3', '< 4'
Finds all gems that satisfy dep
Finds stub specifications matching a pattern in the record, optionally filtering out specs not matching the current platform