README.rdoc in progress-1.0.0 vs README.rdoc in progress-1.0.1

- old
+ new

@@ -11,11 +11,11 @@ * Progress * Enclosed progress == SYNOPSIS: - 1000.times_with_progress('Wait') do |time| + 1000.times_with_progress('Wait') do |time| # title is optional puts time end [1, 2, 3].with_progress('Wait').each do |i| puts i @@ -51,10 +51,11 @@ end end or just + symbols = [] Progress('Input 100 symbols', 100) do while symbols.length < 100 input = gets.scan(/\S/) symbols += input Progress.step input.length @@ -69,29 +70,25 @@ end But you can use this: 10.times_with_progress('A') do |time| - Progress('B,C', 2) do - Progress.step do - 10.times_with_progress('B'){ … } - end - Progress.step do - 10.times_with_progress('C'){ … } - end + Progress.step 1, 2 do + 10.times_with_progress('B'){ … } end + Progress.step 1, 2 do + 10.times_with_progress('C'){ … } + end end Or if you know that B runs 10 times faster than C: 10.times_with_progress('A') do |time| - Progress('B,C', 11) do - Progress.step 1 do - 10.times_with_progress('B'){ … } - end - Progress.step 10 do - 10.times_with_progress('C'){ … } - end + Progress.step 1, 11 do + 10.times_with_progress('B'){ … } + end + Progress.step 10, 11 do + 10.times_with_progress('C'){ … } end end == REQUIREMENTS: