lib/remind.rb in gnu-remind-0.1.1 vs lib/remind.rb in gnu-remind-0.1.2
- old
+ new
@@ -13,9 +13,11 @@
module Remind
class Error < StandardError; end
@@REM = REM['reminders']
def self.[]= x, u
r = REM[x]
+ r.clear!
+ @@REM.clear!
CAL.from_url(u).each do |e|
h = {
date: e.when[:begin].to_time.localtime.strftime("%-d %b %Y"),
hour: e.when[:begin].to_time.localtime.strftime("%k"),
minute: e.when[:begin].to_time.localtime.strftime("%M"),