reminders_txt 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e7932b1669cbb74d00406ecd698a4cac3da7280
4
- data.tar.gz: 7c281719b5f468e9ce9fc08534be0e93b11412f4
3
+ metadata.gz: 59fb1f09d93d99b7a8b79d84a1cb0b06aa591099
4
+ data.tar.gz: 8776ec1a25177150a275cd5ec5d9e01a3d733130
5
5
  SHA512:
6
- metadata.gz: 457cc565ab498b9621474255286b07db1887520a6e5e1ae93069934642cb128b1ee08ee5d9efb2623bad9fa65a40b5be602dcf3fddda7a51314e31be0145590c
7
- data.tar.gz: 0d0df5cd151ca2d9b4bb30f17f885b7104acbf6775f3f18109811fbcaef7a5f4481952d5909a00a59da958ea3b1e0485a3ed18c2908f94598b3c5e0ba2ee946e
6
+ metadata.gz: 4ec22c382a042378ed8de17332fd3d315748d656b63a25d3897d10f7da85ca79bdbc0133a6d3b9201bd1a6530a86d0a3ef2184cdc416f313e1088f28674343a2
7
+ data.tar.gz: 59c761fdd7c38321d8f5d694f88e7c69cc1528630a52cd74c638cb242663409073c87d64f2ee54b16cadb5588b238ff9bc4ee0c40b10c1f571357e2eecf83e97
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -103,7 +103,7 @@ class RemindersTxt
103
103
 
104
104
  r
105
105
  end
106
-
106
+ puts '@reminders: ' + @reminders.inspect
107
107
  @updated = false
108
108
 
109
109
  refresh()
@@ -125,11 +125,14 @@ class RemindersTxt
125
125
  s = reminder.input
126
126
  r = @dx.find_by_input s
127
127
 
128
- # it is on file and it's not an annual event?
128
+ # it is on file and it's not a recurring or annual event?
129
129
  # use the date from file if the record exists
130
-
131
- reminder.date = (r and not s[/\*$/]) ? DateTime.parse(r.date) : \
132
- reminder.date.to_datetime
130
+
131
+ if (r and r.recurring.empty? and not s[/\*$/]) then
132
+ DateTime.parse(r.date)
133
+ else
134
+ reminder.date.to_datetime
135
+ end
133
136
 
134
137
  end
135
138
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reminders_txt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  n+SSd9dm8JjhZ2pqHtX+bgMZ18hrN06xfR+UPtk5BKC8v1PC0FWxaVR4lom39rFU
32
32
  seDxJNsJgamAKg==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-06-12 00:00:00.000000000 Z
34
+ date: 2017-06-15 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
metadata.gz.sig CHANGED
Binary file