Silent Progress Bar
A simple progress bar wrapper that suppresses ActiveRecord logging.
Installation
Add this to your Gemfile:
gem 'silent_progress_bar'
Or manually install the gem:
gem install silent_progress_bar
Usage
Create a progress bar, then pass a block into it.
You must pass the block an argument to allow incrementing the progress bar.
progress = SilentProgressBar.new(count: 10)
progress.run do |bar|
10.times { sleep 0.2; bar.increment }
end
You can also call run
directly on the class.
SilentProgressBar.run(count: 10) do |bar|
10.times { sleep 0.2; bar.increment }
end