reminders_txt 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/reminders_txt.rb +4 -23
- metadata +24 -4
- 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: c9330081c4faaa7b6bac24ca91b949c81251fb9625e0db2000a6eda9a07a7c4d
|
4
|
+
data.tar.gz: 93270c3a063d26d9b6c7467db818e1757c33cd858fa5bbc6b2c12543f63b903e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6085c6f4b3b1501b0add624840205e5788eab55e85fec7a3982eebb47f21101b0f211affc38e479ccbda712bfd359bf21c5d2bccede51a49a16e1459c396471
|
7
|
+
data.tar.gz: 0f285941022338301f717d146fdc8aaaf948df4b7fd6b12175daa538c7c31cd8674713c9f6aa7f14b55d6c1b317a493dbe4da3520409477df5d1455b07d26af3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/reminders_txt.rb
CHANGED
@@ -6,18 +6,7 @@
|
|
6
6
|
require 'dynarex'
|
7
7
|
require 'event_nlp'
|
8
8
|
require 'digest/md5'
|
9
|
-
|
10
|
-
|
11
|
-
module Ordinal
|
12
|
-
refine Integer do
|
13
|
-
|
14
|
-
def ordinal
|
15
|
-
self.to_s + ( (10...20).include?(self) ? 'th' :
|
16
|
-
%w{ th st nd rd th th th th th th }[self % 10] )
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
9
|
+
require 'human_speakable'
|
21
10
|
|
22
11
|
|
23
12
|
class RemindersTxtException < Exception
|
@@ -288,26 +277,18 @@ class RemindersTxt
|
|
288
277
|
end
|
289
278
|
|
290
279
|
class RemindersTxtVoice < RemindersTxt
|
291
|
-
using
|
280
|
+
using HumanSpeakable
|
292
281
|
|
293
282
|
def weekahead()
|
294
283
|
|
295
284
|
s = super.all.map do |x|
|
296
285
|
date = DateTime.parse(x.date)
|
297
|
-
"you are at %s,
|
298
|
-
|
299
|
-
]
|
286
|
+
"you are at %s, %s at %s." % [(x.venue.empty? ? x.title : x.venue), \
|
287
|
+
date.humanize, date.to_time.humanize]
|
300
288
|
end.join(" Then ")
|
301
289
|
|
302
290
|
s.sub!(/^./){|x| x.upcase}
|
303
291
|
|
304
292
|
end
|
305
293
|
|
306
|
-
private
|
307
|
-
|
308
|
-
def format_date(date)
|
309
|
-
[Date::DAYNAMES[date.wday], 'the', date.day.ordinal, 'of',
|
310
|
-
Date::MONTHNAMES[date.month]].join(' ')
|
311
|
-
end
|
312
|
-
|
313
294
|
end
|
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.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
U6f6HfP/6K9f602IeJGEDybVHYFQ7Ssl+AeclLBiMqy5HYuL7kRoD9C2D166GI42
|
36
36
|
M4blonk3dgx08AvXnjoMsgqh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-03-
|
38
|
+
date: 2019-03-10 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dynarex
|
@@ -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.2
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0.5'
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 0.5.
|
79
|
+
version: 0.5.2
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: chronic_cron
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,6 +97,26 @@ dependencies:
|
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0.5'
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: human_speakable
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0.1'
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.1.1
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0.1'
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 0.1.1
|
100
120
|
description:
|
101
121
|
email: james@jamesrobertson.eu
|
102
122
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|