Make sure the trust directory exists. If it does exist, make sure it’s actually a directory. If not, then create it with the appropriate permissions.
We don’t need to download an installed gem
Creates a gem with name
, version
and deps
. The created gem can be downloaded and installed.
The specification will be yielded before gem creation for customization, but only the block or the dependencies may be set, not both.
Creates a gem with name
, version
and deps
. The created gem is downloaded in to the cache directory but is not installed
The specification will be yielded before gem creation for customization, but only the block or the dependencies may be set, not both.
Returns a challenge response which asks for authentication information
Returns a challenge response which asks for authentication information
Reloads passwords from the database
Reload groups from the database
Retrieve the list of members from group
Reload passwords from the database
Dispatches to a do_
method based on req
if such a method is available. (do_GET
for a GET request). Raises a MethodNotAllowed exception if the method is not implemented.
Registers a new timeout handler
Returns an array of two elements: the filename where the calling method is located, and the line number where it is defined.
Takes an optional argument i
, which specifies how many callers up the stack to look.
Examples:
require 'rss/utils' def foo p RSS::Utils.get_file_and_line_from_caller p RSS::Utils.get_file_and_line_from_caller(1) end def bar foo end def baz bar end baz # => ["test.rb", 5] # => ["test.rb", 9]
If i
is not given, or is the default value of 0, it attempts to figure out the correct value. This is useful when in combination with instance_eval. For example:
require 'rss/utils' def foo p RSS::Utils.get_file_and_line_from_caller(1) end def bar foo end instance_eval <<-RUBY, *RSS::Utils.get_file_and_line_from_caller def baz bar end RUBY baz # => ["test.rb", 8]
Return the length of the hash value in bytes.
Return the block length of the digest in bytes.