ProgressBar api deprecation warning

Fixes the deprecation warnings coming from the latest version of ruby-progressbar