lib/clockwork.rb in clockwork-0.2.3 vs lib/clockwork.rb in clockwork-0.2.4

- old
+ new

@@ -101,20 +101,23 @@ def clear! @@events = [] @@handler = nil end + end -class Numeric - def seconds; self; end - alias :second :seconds +unless 1.respond_to?(:seconds) + class Numeric + def seconds; self; end + alias :second :seconds - def minutes; self * 60; end - alias :minute :minutes + def minutes; self * 60; end + alias :minute :minutes - def hours; self * 3600; end - alias :hour :hours + def hours; self * 3600; end + alias :hour :hours - def days; self * 86400; end - alias :day :days -end + def days; self * 86400; end + alias :day :days + end +end \ No newline at end of file