Represents an SMTP
command syntax error (error code 500)
Raises when switch is undefined.
Raises when the given argument does not match required format.
An implementation of PseudoPrimeGenerator
which uses a prime table generated by trial division.
Internal use. An implementation of prime table by trial division method.
Raised when a hash-based tuple has an invalid key.
The InvalidRSSError
error is the base class for a variety of errors related to a poorly-formed RSS
feed. Rescue this error if you only care that a file could be invalid, but don’t care how it is invalid.
Since RSS
is based on XML
, it must have opening and closing tags that match. If they don’t, a MissingTagError
will be raised.
Some tags must only exist a specific number of times in a given RSS
feed. If a feed has too many occurrences of one of these tags, a TooMuchTagError
will be raised.
RSS
does not allow for free-form tag names, so if an RSS
feed contains a tag that we don’t know about, an UnknownTagError
is raised.
Raised when an unexpected tag is encountered.
Potentially raised when a specification is validated.
Create a package based upon a Gem::Specification
. Gem packages, as well as zip files and tar/gzipped packages can be produced by this task.
In addition to the Rake targets generated by Rake::PackageTask, a Gem::PackageTask
will also generate the following tasks:
Create a RubyGems package with the given name and version.
Example using a Gem::Specification
:
require 'rubygems' require 'rubygems/package_task' spec = Gem::Specification.new do |s| s.summary = "Ruby based make-like utility." s.name = 'rake' s.version = PKG_VERSION s.requirements << 'none' s.files = PKG_FILES s.description = <<-EOF Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax. EOF end Gem::PackageTask.new(spec) do |pkg| pkg.need_zip = true pkg.need_tar = true end
Validator
performs various gem file and gem database validation
Not a URI
.