reminders_txt 0.5.2 → 0.6.0
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/reminders_txt.rb +19 -2
- metadata +34 -34
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97b8979998448a59a4606ca6222c74a8c923be7439f67f3fc39835a6a59752e6
|
4
|
+
data.tar.gz: 6efdd23bdbe788704510861ee5cba874baa170baa8c8c93397fbde295ff50e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3621d7e5a617a9a8cba619cf87e4a59e6136d04a943448bd6badba010a26b9644194dddf56cf6c6c119584da31f6490c9a330378be775a8b4ddfe6c63317fac3
|
7
|
+
data.tar.gz: e8575e6dec4d6e75674cd5d404b8e151c1bc0bbe4f531b5ed042644849f779bc77c4ecf687d9e598263f82a1fe9fdf3874fbdcf5ad5cfd82b456c998958aee28
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/reminders_txt.rb
CHANGED
@@ -75,6 +75,13 @@ class RemindersTxt
|
|
75
75
|
|
76
76
|
end
|
77
77
|
|
78
|
+
def after(d)
|
79
|
+
|
80
|
+
date = d.is_a?(String) ? Chronic.parse(d).to_datetime : d
|
81
|
+
@dx.filter {|x| DateTime.parse(x.date) > date}
|
82
|
+
|
83
|
+
end
|
84
|
+
|
78
85
|
def before(d)
|
79
86
|
|
80
87
|
future_date = d.is_a?(String) ? Chronic.parse(d).to_datetime : d
|
@@ -143,7 +150,7 @@ class RemindersTxt
|
|
143
150
|
|
144
151
|
if (x.length > 1) then
|
145
152
|
|
146
|
-
rx = EventNlp.new(@now, params: {input: x}).parse(x)
|
153
|
+
rx = EventNlp.new(@now, params: {input: x}, debug: @debug).parse(x)
|
147
154
|
puts ('rx: ' + rx.inspect).debug if @debug
|
148
155
|
r << rx if rx
|
149
156
|
end
|
@@ -161,6 +168,8 @@ class RemindersTxt
|
|
161
168
|
#
|
162
169
|
def refresh()
|
163
170
|
|
171
|
+
puts 'inside refresh()' if @debug
|
172
|
+
|
164
173
|
reminders = @reminders.clone
|
165
174
|
# if XML file doesn't exist, create it
|
166
175
|
|
@@ -169,7 +178,9 @@ class RemindersTxt
|
|
169
178
|
@dx = Dynarex.new @dxfilepath
|
170
179
|
|
171
180
|
@reminders.each do |reminder|
|
181
|
+
|
172
182
|
s = reminder.input
|
183
|
+
puts ('refresh() checking s: ' + s).debug if @debug
|
173
184
|
r = @dx.find_by_input s
|
174
185
|
|
175
186
|
# it is on file and it's not a recurring or annual event?
|
@@ -211,12 +222,18 @@ class RemindersTxt
|
|
211
222
|
@reminders.sort_by!(&:date)
|
212
223
|
|
213
224
|
# did the reminders change?
|
225
|
+
puts 'self.to_s: ' + self.to_s if @debug
|
214
226
|
|
215
227
|
h1 = (Digest::MD5.new << self.to_s).to_s
|
216
228
|
h2 = (Digest::MD5.new << @file_contents).to_s
|
217
229
|
|
218
230
|
b = h1 != h2
|
219
|
-
|
231
|
+
|
232
|
+
if @debug then
|
233
|
+
puts 'reminders: ' + reminders.inspect
|
234
|
+
puts '@reminders: ' + @reminders.inspect
|
235
|
+
end
|
236
|
+
|
220
237
|
if b or @reminders != reminders then
|
221
238
|
|
222
239
|
save_dx()
|
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
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
11
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sDAdBgNVHQ4EFgQUDJ1o5bjL
|
26
|
+
DZgKwH/ezPMECD9zOwwwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
|
27
27
|
c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
28
|
+
BgkqhkiG9w0BAQsFAAOCAYEAO3sBZzLrd1Ak8b2Ckw45Xc+51Nn1Qr6Pdk8erw4T
|
29
|
+
46gst7gdgZ5D62Oe05gl6eLW8MK1IOfdMx5YEVsNCpJYpI1tXGO7ZIBVguYLAWom
|
30
|
+
RPHfFJraSTGwjpU+Zyr6uyfclR1dVaqkapgtikrJ8/cqG/BCYoxAIraiLn1kJ+tF
|
31
|
+
G1bNlaBEH2kqwAHJyMbMLrNIdp76w2D3IjarX6eOLXoD8W3uR7mI4sGUaCW5UXJz
|
32
|
+
fZnNj4Xwivo6NlRNi5CHOUrplVAgRGHatMu8MtrZyIr8uj+IvdNB3rkuh4Z3ftE5
|
33
|
+
ISrHXet/Gt6V9kRKVY8ieUtIeaEjsQS0oaopkHw6CA/3KI1uiVxSLqvmnor8PQwb
|
34
|
+
qKvKKjYnJWjRMj+Gl5pjhdu47S97fR7BjtXU0LuDf5IH1r2PgXRSMfbM91LSzzge
|
35
|
+
BTEl/Y9FxPLxYQmps8Ut058T2G3hVHzaOckIxdhCwYyzA4Bcrukfok/+wdYe/NW4
|
36
|
+
CUFAhVCmmO+WPBpim/B6NBmp
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dynarex
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '1.8'
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.8.
|
49
|
+
version: 1.8.20
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: '1.8'
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 1.8.
|
59
|
+
version: 1.8.20
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: event_nlp
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '0.5'
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.5.
|
69
|
+
version: 0.5.4
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -76,27 +76,27 @@ dependencies:
|
|
76
76
|
version: '0.5'
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 0.5.
|
79
|
+
version: 0.5.4
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: chronic_cron
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
84
|
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: 0.
|
86
|
+
version: 0.6.0
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
89
|
+
version: '0.6'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.6.0
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '0.
|
99
|
+
version: '0.6'
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: human_speakable
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
version: '0.1'
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.1.
|
109
|
+
version: 0.1.3
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -116,7 +116,7 @@ dependencies:
|
|
116
116
|
version: '0.1'
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.1.
|
119
|
+
version: 0.1.3
|
120
120
|
description:
|
121
121
|
email: james@jamesrobertson.eu
|
122
122
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|