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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23f4da172c476f1b1cbd30d80ab985a733c23fc5
4
- data.tar.gz: 39d16067390706d3f0239315c293b134dc002b70
3
+ metadata.gz: 3139d44b6db16578a36bc08dc006fec8ccf5b287
4
+ data.tar.gz: 89b56fe3106d2b88f11e3f60cb9dbb4e8a4ae785
5
5
  SHA512:
6
- metadata.gz: e028bab117671b1dc46b132826e0f2da8dc6f48e7286259d6511bc1f0c4b64dc5ef0d3dc28521f6f15a911c727bee329939a42743e8f602896b48553d0c7f5bd
7
- data.tar.gz: 6d812dfda5347c5a88eed8230eb8049b3e17374b4970af88379647cffd0b9e9b528c6bfcf0d19f064403cf7f611e4176ae9b53d94f0f1949690f30bbb26f1eb3
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
- r = h[:job].match(/^pub(?:lish)?\s+([^:]+):(.*)/)
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 "%s: %s" % \
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[:job] = 'pub event: ' + h[:title]
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[:job] = 'pub event: reminder ' + h[:title]
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.2
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-06 00:00:00.000000000 Z
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