This method retrieves the system identifier identifying the document’s DTD
Method
contributed by Henrik Martensson
@return the XMLDecl
version of this document as a String. If no XMLDecl
has been set, returns the default version.
Version of the gem
The Requirement of the unresolved dependency (not Version).
Compress filename
with extension
.
Noop this out so there are no anchors
Performs a Net::HTTP
request of type request_class
on uri
returning a Net::HTTP
response object. request maintains a table of persistent connections to reduce connect overhead.
A string representation of this Version
.
True if the version
string matches RubyGems’ requirements.
Set
the version to version
, potentially also setting required_rubygems_version
if version
indicates it is a prerelease.
Executes the given command
with the options
parameter.
Example:
print sh.system("ls", "-l") sh.system("ls", "-l") | sh.head > STDOUT
Stores value
in database with key
as the index. value
is converted to YAML before being stored.
Returns value
Returns true
if stat generated a coredump when it terminated. Not available on all platforms.
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">
Because patch-level is taken into account, be very careful specifying using ‘<=`: `<= 2.2.2` will not match any patch-level of 2.2.2 after the `p0` release. It is much safer to specify `< 2.2.3` instead
Usage:
# This gem will work with 1.8.6 or greater... spec.required_ruby_version = '>= 1.8.6' # Only with ruby 2.0.x spec.required_ruby_version = '~> 2.0' # Only with ruby between 2.2.0 and 2.2.2 spec.required_ruby_version = ['>= 2.2.0', '< 2.2.3']
Quietly ensure the Gem directory dir
contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.
If mode
is given, missing directories are created with this mode.
World-writable directories will never be created.
Returns a SingleResponse
whose CertId matches with certificate_id, or nil
if this BasicResponse
does not contain it.