Sets up a fake fetcher using the gems from util_make_gems
. Optionally additional prerelease
gems may be included.
Gems created by this method may be fetched using Gem::RemoteFetcher
.
Sets up Gem::SpecFetcher
to return information from the gems in specs
. Best used with +@all_gems+ from util_setup_fake_fetcher
.
Sets the close on exec flag for io
Sets the close on exec flag for io
@!visibility private
Creates the initial state for the resolution, based upon the {#requested} dependencies @return [DependencyState] the initial state for the resolution
Converts this object to a string (calling to_s), converts it to a JSON
string, and returns the result. This is a fallback, if no special method to_json
was defined for some object.
Returns a JSON
string containing a JSON
object, that is generated from this Hash
instance. state is a JSON::State object, that can also be used to configure the produced JSON
string output further.