Does this dependency match spec
?
NOTE: This is not a convenience method. Unlike match?
this method returns true when spec
is a prerelease version even if this dependency is not a prerelease dependency.
Indicate if this NameTuple
matches the current platform.
Adds a checksum for each entry in the gem to checksums.yaml.gz.
Reads and loads checksums.yaml.gz from the tar file gem
File
Fetcher. Dispatched by fetch_path
. Use it instead.
HTTP Fetcher. Dispatched by fetch_path
. Use it instead.
Downloads uri
and returns it as a String.
Returns the size of uri
in bytes.
Returns true when it is possible and safe to update the cache directory.
Fetches a specification for the given name_tuple
.
Yields each source in the list.
Returns the full path to the cached gem for this spec.
Creates a duplicate spec without large blobs that aren’t used at runtime.
Reads a Marshal
file at path
Creates a SpecFetcher pre-filled with the gems or specs defined in the block.
Yields a fetcher
object that responds to spec
and gem
. spec
adds a specification to the SpecFetcher while gem
adds both a specification and the gem data to the RemoteFetcher so the built gem can be downloaded.
If only the a-3 gem is supposed to be downloaded you can save setup time by creating only specs for the other versions:
spec_fetcher do |fetcher| fetcher.spec 'a', 1 fetcher.spec 'a', 2, 'b' => 3 # dependency on b = 3 fetcher.gem 'a', 3 do |spec| # spec is a Gem::Specification # ... end end
schedule a command