dynarex_cron 0.8.2 → 0.8.3
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 +14 -7
- metadata +18 -18
- metadata.gz.sig +2 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa21b0d344310a7f3bd058fd88478016288d10ab
|
4
|
+
data.tar.gz: a1b589f1324c05d35bfde7ed6cd3b81b8797b267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc2196a5521866d54259a9bd2f997c65a4a1ff48b8334a749ef9f3cc12d1aa204004805e2d3d0e6c843012043f31b2ff3bc3f1a1a708e62d5b42f135acb55acf
|
7
|
+
data.tar.gz: a5eb7d932d12f3db30194eebd06148fd5a3c2b0ff1d13c4bc939091048955129515cf5ea515bb038b0bd6d485e68308624e2485ba1dd55fb147bd234b48e6781
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex_cron.rb
CHANGED
@@ -36,8 +36,8 @@ class DynarexCron
|
|
36
36
|
end
|
37
37
|
|
38
38
|
@sps_address, @sps_port = opt[:sps_address], opt[:sps_port]
|
39
|
-
|
40
|
-
|
39
|
+
@pub = SPSPub.new address: @sps_address, port: @sps_port
|
40
|
+
|
41
41
|
end
|
42
42
|
|
43
43
|
def start
|
@@ -67,11 +67,10 @@ class DynarexCron
|
|
67
67
|
# temporarily unavailable? i.e. 503 Service Temporarily Unavailable
|
68
68
|
begin
|
69
69
|
buffer, _ = RXFHelper.read(@dynarex_file)
|
70
|
+
reload_entries buffer if @buffer != buffer
|
70
71
|
rescue
|
71
72
|
puts 'dynarex_cron: warning: ' + ($!).inspect
|
72
|
-
end
|
73
|
-
|
74
|
-
reload_entries buffer if @buffer != buffer
|
73
|
+
end
|
75
74
|
|
76
75
|
end
|
77
76
|
|
@@ -125,8 +124,16 @@ class DynarexCron
|
|
125
124
|
|
126
125
|
if h[:cron].to_time.strftime(DF) == datetime then
|
127
126
|
|
128
|
-
|
129
|
-
|
127
|
+
begin
|
128
|
+
|
129
|
+
@pub.notice h[:fqm].gsub('!Time',Time.now.strftime("%H:%M"))
|
130
|
+
|
131
|
+
rescue
|
132
|
+
log 'cron ' + h[:cron].inspect, :info
|
133
|
+
log h.inspect + ' : ' + ($!).inspect
|
134
|
+
@pub.notice 'jessie: ding'
|
135
|
+
end
|
136
|
+
|
130
137
|
h[:cron].next # advances the time
|
131
138
|
|
132
139
|
end
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE2MTIxODEyNTg1MFoXDTE3MTIxODEyNTg1MFowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAN2Vv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vXqXm6nxDCrL/w==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-12-18 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: chronic_cron
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.5.1
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Publishes SimplePubSub messages by reading cron entries from a Dynarex document
|
metadata.gz.sig
CHANGED
@@ -1,4 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
������U��H"9��I�2��Hz�w�t
|
4
|
-
�>�A�d�h�w�(��T��P����g��w��I���f�EdiG7��b$-�ʐ���9Ú��8_\�R����N�����F#�]���V̶�˓>[��4�re��ȴ�Ġ�&�$�8��'�����tzJ%ю�p�
|
1
|
+
�2p6��`���cb�FΏ~#X
|
2
|
+
㆛������7�����L#x/J��?�J� ͞�]�����.��r�|�B{�N�]��֭�Lȹ�B29���@�N0���g��X�ԋ/,�
|