example_plugin.rb in doing-2.0.3.pre vs example_plugin.rb in doing-2.0.5.pre
- old
+ new
@@ -148,10 +148,10 @@
if interval
took = '. You finished on '
finished_at = i.end_date
took += finished_at.strftime('%A %B %e at %I:%M%p')
- d, h, m = wwid.fmt_time(interval)
+ d, h, m = wwid.format_time(interval)
took += ' and it took'
took += " #{d.to_i} days" if d.to_i.positive?
took += " #{h.to_i} hours" if h.to_i.positive?
took += " #{m.to_i} minutes" if m.to_i.positive?
end