dynarex_cron 0.5.2 → 0.5.3
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/dynarex_cron.rb +5 -12
- 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: 3139d44b6db16578a36bc08dc006fec8ccf5b287
|
|
4
|
+
data.tar.gz: 89b56fe3106d2b88f11e3f60cb9dbb4e8a4ae785
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81cbd636ca30d77aa8b2754fa989157f3e959411691d37de786e1fabf75380b70ea3872b79e082a66e21221d864dbc58cf0baf9beca7daa5177a5f4bf7b94cbd
|
|
7
|
+
data.tar.gz: 44139283cdaff56684a7780c6b312243291635623da242c8879b3419e332221a66d6a718ec1eb292922fed28804666040099f17fde1d36a2bcdd621cd9022d7b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex_cron.rb
CHANGED
|
@@ -125,18 +125,11 @@ class DynarexCron
|
|
|
125
125
|
|
|
126
126
|
if h[:cron].to_time.strftime(DF) == datetime then
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
next unless r
|
|
131
|
-
|
|
132
|
-
topic, msg = r.captures
|
|
133
|
-
|
|
134
|
-
log "sps_Address: %s sps_port: %s topic: %s message: %s" % \
|
|
135
|
-
[@sps_address, @sps_port, topic, msg]
|
|
128
|
+
log "sps_Address: %s sps_port: %s fqm: %s" % \
|
|
129
|
+
[@sps_address, @sps_port, h[:fqm]]
|
|
136
130
|
begin
|
|
137
131
|
|
|
138
|
-
SPSPub.notice
|
|
139
|
-
[topic, msg], address: @sps_address, port:@sps_port
|
|
132
|
+
SPSPub.notice h[:fqm], address: @sps_address, port:@sps_port
|
|
140
133
|
log 'before cron next', :info
|
|
141
134
|
h[:cron].next # advances the time
|
|
142
135
|
rescue
|
|
@@ -200,13 +193,13 @@ class DynarexEvents < DynarexCron
|
|
|
200
193
|
|
|
201
194
|
time = Time.now + @time_offset
|
|
202
195
|
h[:cron] = ChronicCron.new(h[:date], time)
|
|
203
|
-
h[:
|
|
196
|
+
h[:fqm] = 'event: ' + h[:title]
|
|
204
197
|
|
|
205
198
|
if h[:reminder].length > 0 then
|
|
206
199
|
rmndr = {}
|
|
207
200
|
rmndr[:cron] = ChronicCron.new((Chronic.parse(h[:date]) -
|
|
208
201
|
ChronicDuration.parse(h[:reminder])).to_s, time)
|
|
209
|
-
rmndr[:
|
|
202
|
+
rmndr[:fqm] = 'event: reminder ' + h[:title]
|
|
210
203
|
r << rmndr
|
|
211
204
|
end
|
|
212
205
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynarex_cron
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
AYk47T0/8hx1QaR5nU5Db9LztjboHVugHlqfEKWwY2mURuQWP9iCCwiG3T1cC04z
|
|
32
32
|
WnpuryTBFz7cvg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-03-
|
|
34
|
+
date: 2015-03-07 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
|