Cleans up uninstalled files and invalid gem specifications
Indicate if this NameTuple
is for a prerelease version.
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 requirement is a prerelease if any of the versions inside of it are prereleases
True if the version
string matches RubyGems’ requirements.
A version is considered a prerelease if it contains a letter.
Lists the external (to RubyGems) requirements that must be met for this gem to work. It’s simply information for the user.
Usage:
spec.requirements << 'libmagick, v6.0' spec.requirements << 'A good graphics card'
Set
requirements to req
, ensuring it is an array. Don’t use this, push onto the array instead.
See IO.foreach
when path
is a file.
See Dir.foreach
when path
is a directory.
Stops the server from accepting new connections.
Returns true
if this process is stopped. This is only returned if the corresponding wait
call had the WUNTRACED
flag set.
Returns true
if stat generated a coredump when it terminated. Not available on all platforms.
Writes the GC::Profiler.result
to $stdout
or the given IO
object.
Is code
a redirection status?
Is code
a redirection status?
Returns true
if obj responds to the given method. Private and protected methods are included in the search only if the optional second parameter evaluates to true
.
If the method is not implemented, as Process.fork
on Windows, File.lchmod
on GNU/Linux, etc., false is returned.
If the method is not defined, respond_to_missing?
method is called and the result is returned.
When the method name parameter is given as a string, the string is converted to a symbol.
Returns self
.
If called on a subclass of String, converts the receiver to a String object.
Returns true
if the named file is readable by the real user and group id of this process. See access(3).
If file_name is readable by others, returns an integer representing the file permission bits of file_name. Returns nil
otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2)
.
file_name can be an IO
object.
File.world_readable?("/etc/passwd") #=> 420 m = File.world_readable?("/etc/passwd") sprintf("%o", m) #=> "644"
When this module is prepended in another, Ruby calls prepend_features
in this module, passing it the receiving module in mod. Ruby’s default implementation is to overlay the constants, methods, and module variables of this module to mod if this module has not already been added to mod or one of its ancestors. See also Module#prepend
.
Removes the definition of the given constant, returning that constant’s previous value. If that constant referred to a module, this will not change that module’s name and can lead to confusion.