lib/progressbar.rb in progressbar-1.8.2 vs lib/progressbar.rb in progressbar-1.9.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + require 'ruby-progressbar/output' require 'ruby-progressbar/outputs/tty' require 'ruby-progressbar/outputs/non_tty' require 'ruby-progressbar/timer' require 'ruby-progressbar/progress' @@ -8,9 +9,10 @@ require 'ruby-progressbar/calculators/length' require 'ruby-progressbar/calculators/running_average' require 'ruby-progressbar/components' require 'ruby-progressbar/format' require 'ruby-progressbar/base' +require 'ruby-progressbar/refinements' unless RUBY_VERSION.start_with?('1.') class ProgressBar def self.create(*args) ProgressBar::Base.new(*args) end