Progressbar in Ruby console scripts

Yesterday I needed a little progress bar for a small ruby terminal script. Something like this:

Progress

Sadly I could not find one, so I had to write it myself. You can install it with:

gem install simple_progressbar

The progressbar can’t do very much at the moment. If you want to add more features, feel free to fork it.
A small example for the gem:

require 'simple_progressbar

SimpleProgressbar.new.show("Installing stuff") do
  (0..10).each {|i|
    progress i*10
    sleep(1)
  }
end
Portrait photo of Bodo Tasche
Bodo Tasche
Polyglot Developer

I am a freelance polyglot developer and love HTML5, testing, JavaScript, Ruby and Elixir. In the last 20 years I have been in lots of different roles, from Java to Elixir, from backend developer at a 3 people team in an early phase startup to the CTO of a web agency. Some of my work can be seen on my projects page.

Need help developing your MVP or to add new features into your current app? Need a CTO or a front/backend developer for hire? Send me an email.