Returns true
if the named file is executable by the real user and group id of this process. See access(3).
Windows does not support execute permissions separately from read permissions. On Windows, a file is only considered executable if it ends in .bat, .cmd, .com, or .exe.
Note that some OS-level security features may cause this to return true even though the file is not executable by the real user/group.
Calls the constructed Function
, with args
. Caller must ensure the underlying function is called in a thread-safe manner if running in a multi-threaded process.
For an example see Fiddle::Function
Allocates a C struct with the types
provided.
When the instance is garbage collected, the C function func
is called.
Allocates a C union the types
provided.
When the instance is garbage collected, the C function func
is called.
Fiddle::Pointer.malloc(size, freefunc = nil) => fiddle pointer instance
Allocate size
bytes of memory and associate it with an optional freefunc
that will be called when the pointer is garbage collected.
freefunc
must be an address pointing to a function or an instance of Fiddle::Function
Logs a message
at the fatal (syslog err) log level, or logs the message returned from the block.
Returns all specifications. This method is discouraged from use. You probably want to use one of the Enumerable
methods instead.
Sets the known specs to specs
. Not guaranteed to work for you in the future. Use at your own risk. Caveat emptor. Doomy doom doom. Etc
etc.
Shortcut for logging a FATAL
message
Will the logger output FATAL
messages?
record class_name
for the supplied uri and tag_name
set the accessor for the uri, tag_name pair
True if the gems in the system satisfy dependency
.
Performs various checks before installing the gem such as the install repository is writable and its directories exist, required Ruby and rubygems versions are met and that dependencies are installed.
Version and dependency checks are skipped if this install is forced.
The dependent check will be skipped if the install is ignoring dependencies.
Creates the following instance variables:
a spec named ‘a’, intended for regular installs
the path to a built gem from @spec
And returns a Gem::Installer
for the @spec that installs into @gemhome
Sets up the base @gem, builds it and returns an installer for it.
Installs from the gem dependencies files in the :gemdeps
option in options
, yielding to the block
as in install
.
If :without_groups
is given in the options
, those groups in the gem dependencies file are not used. See Gem::Installer
for other options
.
Builds and installs the Gem::Specification
spec
into the user dir
Installs the provided default specs including writing the spec file