lib/progress/class_methods.rb in progress-3.3.2 vs lib/progress/class_methods.rb in progress-3.4.0
- old
+ new
@@ -8,11 +8,11 @@
end
# start progress indication
def start(total = nil, title = nil)
init(total, title)
- print_message :force => true
+ print_message force: true
return unless block_given?
begin
yield
ensure
stop
@@ -43,10 +43,10 @@
# stop progress
def stop
return unless running?
if @levels.length == 1
- print_message :force => true, :finish => true
+ print_message force: true, finish: true
stop_beeper
end
@levels.pop
end