The full path to the gem (install path + full name).
Display to the user that a gem couldn’t be found and reasons why
Returns the RubyGems.org API key
Sets the RubyGems.org API key to api_key
Builds Marshal
quick index gemspecs.
Build a single index for RubyGems 1.2 and newer
Builds indices for RubyGems 1.2 and newer. Handles full, latest, prerelease
Builds the @spec gem and returns an installer for it. The built gem includes:
bin/executable lib/code.rb ext/a/mkrf_conf.rb
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.
Builds a gem from spec
and places it in File.join @gemhome, 'cache'
. Automatically creates files based on spec.files
Removes all installed gems from +@gemhome+.
Creates several default gems which all have a lib/code.rb file. The gems are not installed but are available in the cache dir.
gem a version 1, this is the best-described gem.
gem a version 2
gem a version 3.a
gem a_evil version 9, use this to ensure similarly-named gems don’t collide with a.
gem b version 2
gem c version 1.2
gem pl version 1, this gem has a legacy platform of i386-linux.
Additional prerelease
gems may also be created:
gem a version 2.a
TODO: nuke this and fix tests. this should speed up a lot
offline mode. read name=value pairs on standard input.
A convenience method, like object_group
, but also reformats the Object’s object_id.
@return the previous sibling (nil if unset)
Returns the position that self
holds in its parent’s array, indexed from 1.