lib/attentive/entities/relative_date.rb in attentive-0.1.0.beta1 vs lib/attentive/entities/relative_date.rb in attentive-0.1.0

- old
+ new

@@ -25,20 +25,20 @@ when /^tue/ then next_wday[2] when /^wed/ then next_wday[3] when /^thu/ then next_wday[4] when /^fri/ then next_wday[5] when /^sat/ then next_wday[6] - else raise NotImplementedError, "Unrecognize weekday: #{weekday.inspect}" + else raise NotImplementedError, "Unrecognized weekday: #{weekday.inspect}" end date += 7 if match.to_s.start_with?("next") date -= 7 if match.to_s.start_with?("last") date else case match.to_s when "today" then today when "tomorrow" then today + 1 when "yesterday" then today - 1 - else raise NotImplementedError, "Unrecognize match: #{match.inspect}" + else raise NotImplementedError, "Unrecognized match: #{match.to_s}" end end end