each-progress
Simple progress bar. Supports only each.
Installation
-
Add the dependency to your
shard.yml
:dependencies: each_progress: github: ktanaka101/each-progress
-
Run
shards install
Usage
Pass an object that can call each method
require "each_progress"
EachProgress.by(0...100) do |_|
# Some processing...
sleep 0.1
end
# Progress will be displayed.
Contributing
- Fork it (https://github.com/ktanaka101/each-progress/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- ktanaka101 Kentaro Tanaka - creator and maintainer