ProgressBar
ProgressBar
is a simple Ruby module designed to create progress bars for iterables. It provides an easy and visually appealing way to track the progress of operations over any enumerable object in Ruby.
Installation
To install ProgressBar, simply add the following line to your application's Gemfile:
gem 'aria_progress_bar'
And then execute:
bundle install
Or install it yourself as:
gem install aria_progress_bar
Usage
Using ProgressBar
is straightforward. Here is a basic example:
require 'aria_progress_bar'
array = [1, 2, 3, 4, 5]
AriaProgressBar.bar(array) do |element|
end
You can also customize the title and the number of bars:
AriaProgressBar.bar(array, title: 'Processing: ', n_bars: 30) do |element|
end
Contributing
Contributions to ProgressBar
are always welcome! Whether it's bug reports, feature requests, or pull requests, all contributions help make ProgressBar
better.
To contribute:
- Fork the project (https://github.com/ariasdiniz/progressbar/fork)
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -am 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a new Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.