Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Simple progress bar. Supports only each.
Add the dependency to your shard.yml
:
dependencies:
each_progress:
github: ktanaka101/each-progress
Run shards install
require "each_progress"
EachProgress.by(0...100) do |_|
# Some processing...
sleep 0.1
end
# Progress will be displayed.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)