event_nlp 0.2.17 → 0.3.0
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/lib/event_nlp.rb +4 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53e08647b8e240d081ace6865f4cd49ff1195cc6
|
4
|
+
data.tar.gz: 765a6dddc50561c1b6533c422a9f5ec0ba83dd1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e95368e97d7c8ffdfaf13384b9da4e6b3bfa0aac91d119ad41379a124bb3537ac1a6e50d9b3163182fad1825763dfec06bb5f46ea814becefc247c913db9864c
|
7
|
+
data.tar.gz: 56901f3d50338cb0b5a93198aff0c04b6eb94d55fd4675a978ebabee677b3fb42ec4b967ae80803e9495fbe613c161f0627f529b4cc9ab12a49fc291a182eaef
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/event_nlp.rb
CHANGED
@@ -311,7 +311,8 @@ class EventNlp
|
|
311
311
|
d = Chronic.parse(raw_date, now: Time.local(@now.year + 1, 1, 1))
|
312
312
|
end
|
313
313
|
end
|
314
|
-
|
314
|
+
|
315
|
+
|
315
316
|
puts [3, title, raw_date, time].inspect if @debug
|
316
317
|
{ title: title, date: d, recurring: recurring }
|
317
318
|
end
|
@@ -320,7 +321,7 @@ class EventNlp
|
|
320
321
|
|
321
322
|
# Some event (10 Woodhouse Lane) 30th Nov from 9:15-17:00
|
322
323
|
|
323
|
-
get /^(.*) (#{days}) (#{months}) from (#{times2})/i do |title, day, month, xtimes|
|
324
|
+
get /^(.*) (#{days}) (#{months})(?: from)? (#{times2})/i do |title, day, month, xtimes|
|
324
325
|
|
325
326
|
t1, t2 = xtimes.split(/-/,2)
|
326
327
|
|
@@ -378,4 +379,4 @@ class EventNlp
|
|
378
379
|
|
379
380
|
end
|
380
381
|
|
381
|
-
end
|
382
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event_nlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
/WtgKLMzCAKTHZ2OpN3OTs6j+vsUBIwCb/Ki17Z4YULtRaGg7I8nTjTrHIIJ0yNm
|
32
32
|
kbRihMTezaC+4A==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-12-
|
34
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: chronic_cron
|
metadata.gz.sig
CHANGED
Binary file
|