lib/progress.rb in progress-0.2.0 vs lib/progress.rb in progress-0.2.1
- old
+ new
@@ -95,10 +95,10 @@
end
end
def stop
if levels.last
- print_message(true) if levels.last.step_if_blank
+ print_message(true) if levels.last.step_if_blank || levels.length == 1
levels.pop
io.puts if levels.empty?
end
end