each-progress v0.1.1

Simple progress bar

each-progress

Simple progress bar. Supports only each.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      each_progress:
        github: ktanaka101/each-progress
    
  2. 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.
example

Contributing

  1. Fork it (https://github.com/ktanaka101/each-progress/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • ktanaka101 Kentaro Tanaka - creator and maintainer
Repository

each-progress

Owner
Statistic
  • 2
  • 1
  • 0
  • 0
  • 0
  • over 4 years ago
  • June 1, 2019
License

MIT License

Links
Synced at

Thu, 16 May 2024 08:31:32 GMT

Languages