lib/progress_bar.rb in progress_bar-1.0.5 vs lib/progress_bar.rb in progress_bar-1.1.0

- old
+ new

@@ -13,11 +13,11 @@ @count = 0 @max = 100 @meters = [:bar, :counter, :percentage, :elapsed, :eta, :rate] @max = args.shift if args.first.is_a? Numeric - raise ArgumentError, "Max must be a positive integer" unless @max > 0 + raise ArgumentError, "Max must be a positive integer" unless @max >= 0 @meters = args unless args.empty? @last_write = ::Time.at(0) @start = ::Time.now @@ -188,5 +188,7 @@ "%02i:%02i" % [interval/60, interval%60] end end end + +require_relative 'progress_bar/with_progress'