Creates a tar header from IO
stream
Block form for placing a dependency in the given groups
.
group :development do gem 'debugger' end group :development, :test do gem 'minitest' end
Groups can be excluded at install time using ‘gem install -g –without development`. See `gem help install` and `gem help gem_dependencies` for further details.
A hint run by the resolver to allow the Set
to fetch data for DependencyRequests reqs
.
When allow_prerelease
is set to true
prereleases gems are allowed to match dependencies.
Prefetches reqs
in all sets.
Prefetches specifications from the git repositories in this set.
Errors encountered while resolving gems
The prefetch
method may be overridden, but this is not necessary. This default implementation does nothing, which is suitable for sets where looking up a specification is cheap (such as installed gems).
When overridden, the prefetch
method should look up specifications matching reqs
.
Indicates progress roughly once every second @return [void]
Like Enumerable#drop_while
, but chains operation to be lazy-evaluated.
Like Enumerable#drop
, but chains operation to be lazy-evaluated.
Return the block length of the digest in bytes.
Return the block length of the digest in bytes.
Digest::SHA256.new.block_length * 8 # => 512 Digest::SHA384.new.block_length * 8 # => 1024 Digest::SHA512.new.block_length * 8 # => 1024
Generates a random prime number of bit length bits. If safe is set to true
, generates a safe prime. If add is specified, generates a prime that fulfills condition p % add = rem
.
Performs a Miller-Rabin probabilistic primality test for bn
.
Deprecated in version 3.0. Use prime?
instead.
checks
and trial_div
parameters no longer have any effect.
Returns the size in bytes of the blocks on which this Cipher
operates on.
Returns the block length of the digest algorithm, i.e. the length in bytes of an individual block. Most modern algorithms partition a message to be digested into a sequence of fix-sized blocks that are processed consecutively.
digest = OpenSSL::Digest.new('SHA1') puts digest.block_length # => 64