A null NameTuple
, ie name=nil, version=0
Creates a new package that will read or write to the file gem
.
Executables included in the gem.
For example, the rake gem has rake as an executable. You don’t specify the full path (as in bin/rake); all application-style files are expected to be found in bindir. These files must be executable Ruby files. Files that use bash or other interpreters will not work.
Executables included may only be ruby scripts, not scripts for other languages or compiled binaries.
Usage:
spec.executables << 'rake'
Singular accessor for executables
Singular accessor for executables
Sets executables to value
, ensuring it is an array. Don’t use this, push onto the array instead.
Normalize the list of files so that:
All file lists have redundancies removed.
Files referenced in the extra_rdoc_files
are included in the package file list.
Checks that the specification contains all required fields, and does a very basic sanity check.
Raises InvalidSpecificationException if the spec does not pass the checks..
Normalize the URI
by adding “http://” if it is missing.
Display an informational alert. Will ask question
if it is not nil.
Checks the gem directory for the following potential inconsistencies/problems:
Checksum gem itself
For each file in each gem, check consistency of installed versions
Check for files that aren’t part of the gem but are in the gems directory
1 cache - 1 spec - 1 directory.
returns a hash of ErrorData objects, keyed on the problem gem’s name.
Checks if URI
has a path
Returns normalized URI
Destructive version of normalize
Starts the CGI
process with the given environment env
and standard input and output stdin
and stdout
.
Sets the response’s status to the status
code
A SimpleServer
only yields when you start it
Performs the standard operations for daemonizing a process. Runs a block, if given.
Starts the server and runs the block
for each connection. This method does not return until the server is stopped from a signal handler or another thread using stop
or shutdown
.
If the block raises a subclass of StandardError
the exception is logged and ignored. If an IOError
or Errno::EBADF exception is raised the exception is ignored. If an Exception
subclass is raised the exception is logged and re-raised which stops the server.
To completely shut down a server call shutdown
from ensure:
server = WEBrick::GenericServer.new # or WEBrick::HTTPServer.new begin server.start ensure server.shutdown end