mdap

A displaying progress utility for Ruby.

Requirement
Usage
name | Description |
---|
n | number of loops |
desc | progress's description |
bar_shape | Bar's character to display. Default value is ["\e[42m \e[0m", "─"] |
indicator | Character used for indicator. Default value is "⠻⠽⠾⠷⠯⠟". |
datetime_format | Date and time format. Default value is '%M:%S'. |
Simple Example
require 'mdap'
mdap(100) { sleep 0.01 }
mdap(100, desc: 'Download') { sleep 0.01 }
mdap(100, datetime_format: "%H:%M:%S") { sleep 0.01 }
mdap(100, bar_shape: ["=", "."]) { sleep 0.01 }
Indicator Example
mdap(100, indicator:nil)
mdap(100, indicator:"-\\|/")
Installation
$ gem install mdap
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/AjxLab/mdap.