https://github.com/jfelchner/ruby-progressbar/pull/40