dynarex_cron 0.8.1 → 0.8.2
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/dynarex_cron.rb +4 -14
- 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: 8b46fe417a25c7f3d64c648247901ac10153e79c
|
4
|
+
data.tar.gz: 1f5b5177336e955a893f18a5e20a6f99cd722e7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54c10c78f246cbd62a54d6e87cd14c174cc08fcb56afdadf362456c091764803af3cc76ae6291cab7cbaa76dfc8ee15c3ab6d1a78682f54a81929044156b0656
|
7
|
+
data.tar.gz: 488c299021c1f31b1e29556225f3e7b2db702d226feef95bee911f197cfa9a4f0342f4f826c1110e2d7c7b695700726451249796b3385625d8c9e0dd95a84262
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex_cron.rb
CHANGED
@@ -122,25 +122,15 @@ class DynarexCron
|
|
122
122
|
cron_entries.each do |h|
|
123
123
|
|
124
124
|
datetime = (Time.now + @time_offset).strftime(DF)
|
125
|
-
log "datetime: %s; h: %s" % [datetime, h.inspect]
|
126
125
|
|
127
126
|
if h[:cron].to_time.strftime(DF) == datetime then
|
128
127
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
SPSPub.notice h[:fqm].gsub('!Time',Time.now.strftime("%H:%M")), \
|
134
|
-
address: @sps_address, port:@sps_port
|
135
|
-
log 'before cron next', :info
|
136
|
-
h[:cron].next # advances the time
|
137
|
-
rescue
|
138
|
-
|
139
|
-
log h.inspect + ' : ' + ($!).inspect
|
140
|
-
end
|
128
|
+
SPSPub.notice h[:fqm].gsub('!Time',Time.now.strftime("%H:%M")), \
|
129
|
+
address: @sps_address, port:@sps_port
|
130
|
+
h[:cron].next # advances the time
|
141
131
|
|
142
132
|
end
|
143
|
-
|
133
|
+
|
144
134
|
end
|
145
135
|
end
|
146
136
|
|
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.8.
|
4
|
+
version: 0.8.2
|
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-11-
|
34
|
+
date: 2015-11-18 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
|