lib/chronic/handlers.rb in chronic-0.4.0 vs lib/chronic/handlers.rb in chronic-0.4.1

- old
+ new

@@ -323,11 +323,11 @@ # self.parse("this second", :guess => false, :now => @now) # else # raise(ChronicPain, "Invalid repeater: #{repeater.class}") # end - span = self.parse("this second", :guess => false, :now => @now) + span = Span.new(@now, @now + 1) self.handle_srp(tokens, span, options) end def handle_p_s_r(tokens, options) #:nodoc: @@ -397,10 +397,10 @@ outer_span = head.next(:future) else raise(ChronicPain, "Invalid grabber") end puts "--#{outer_span}" if Chronic.debug - anchor = find_within(repeaters, outer_span, pointer) + find_within(repeaters, outer_span, pointer) end def get_repeaters(tokens) #:nodoc: repeaters = [] tokens.each do |token|