Creates or an HTTP connection based on uri
, or retrieves an existing connection, using a proxy if needed.
Load a dependency management file.
A recommended version for use with a ~> Requirement.
returns an integer in (-infty, 0] a number closer to 0 means the dependency is less constraining
dependencies w/ 0 or 1 possibilities (ignoring version requirements) are given very negative values, so they always sort first, before dependencies that are unconstrained
Return the latest specs, optionally including prerelease specs if prerelease
is true.
Removes spec
from the known specs.
Sanitize a single string.
Creates a duplicate spec without large blobs that aren’t used at runtime.
Returns an object you can use to sort specifications in sort_by.
Returns a Ruby code representation of this specification, such that it can be eval’ed and reconstruct the same specification later. Attributes that still have their default values are omitted.
Returns self
Sets the ENABLE_SHARED entry in RbConfig::CONFIG to value
and restores the original value when the block ends
Builds and installs the Gem::Specification
spec
Uninstalls the Gem::Specification
spec
creates a temporary directory with hax TODO: deprecate and remove