Writes data
to the underlying IO
and updates the digests
A list of file names contained in this gem
Block form for specifying gems from a git repository
.
git 'https://github.com/rails/rails.git' do gem 'activesupport' gem 'activerecord' end
Writes the lock file alongside the gem dependencies file
Indicate that the request is for a gem explicitly requested by the user
Indicate that the request is for a gem requested as a dependency of another gem
Does not print anything when complete as this object has taken a vow of silence.
Prints out the terminal message.
Prints out the terminal message.
The silent download reporter won’t tell you when the download is done. Because it is silent.
Indicates the download is complete.
Returns the file name of this frame. This will generally be an absolute path, unless the frame is in the main script, in which case it will be the script location passed on the command line.
For example, using caller_locations.rb
from Thread::Backtrace::Location
loc = c(0..1).first loc.path #=> caller_locations.rb
Get all [gem, version] from the command line.
An argument in the form gem:ver is pull apart into the gen name and version, respectively.
Returns a new lazy enumerator with the concatenated results of running block
once for every element in the lazy enumerator.
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force #=> ["f", "o", "o", "b", "a", "r"]
A value x
returned by block
is decomposed if either of the following conditions is true:
x
responds to both each and force, which means that x
is a lazy enumerator.
x
is an array or responds to to_ary.
Otherwise, x
is contained as-is in the return value.
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force #=> [{:a=>1}, {:b=>2}]