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
Make directories for index generation
Combines specs in index
and source
then writes out a new copy to dest
. For a latest index, does not ensure the new file is minimal.
True if the gems in the system satisfy dependency
.
Creates windows .bat files for easy running of commands
Creates the scripts to run the applications in the gem.
return the stub script text used to launch the true Ruby script
Prefix and suffix the program filename the same as ruby.
Performs various checks before installing the gem such as the install repository is writable and its directories exist, required Ruby and rubygems versions are met and that dependencies are installed.
Version and dependency checks are skipped if this install is forced.
The dependent check will be skipped if the install is ignoring dependencies.
Adds an executable named “executable” to spec
with the given shebang
.
The executable is also written to the bin dir in @tmpdir and the installed gem directory for spec
.
Creates the following instance variables:
a spec named ‘a’, intended for regular installs
the path to a built gem from @spec
And returns a Gem::Installer
for the @spec that installs into @gemhome
Sets up the base @gem, builds it and returns an installer for it.
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
.
Builds and installs the Gem::Specification
spec
into the user dir
Installs the provided default specs including writing the spec file
Install the provided default specs
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
Allows the proper version of rake
to be used for the test.
Returns the source encoding name as a string.
Returns the source encoding name as a string.