dynarex_cron 0.8.3 → 0.8.4
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 +2 -10
- metadata +9 -9
- 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: c23f02febf1feaaf6bc8d7a23404310c896ecba5
|
4
|
+
data.tar.gz: 5202e38c98442d9a0c95278d5c13c247c86fe007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b67822d7e522deddbce8d3154e1821468cececd01d934dc2930565014d6b66e224e11c21cb839bce51ff219a6ef86b7912ba2e7b714aad795429b8604c7a2b1
|
7
|
+
data.tar.gz: 4579c0bef8e73f2a9b1cde33ec5c6b21ddf418eed3b285c9eaa933eb4ebf3ec52aa6bfabefe31180876e59fa3bf894dcec97cb8076c78f14e546cffadb5636b4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex_cron.rb
CHANGED
@@ -4,8 +4,7 @@
|
|
4
4
|
|
5
5
|
require 'dynarex'
|
6
6
|
require 'chronic_cron'
|
7
|
-
|
8
|
-
require 'sps-sub-ping'
|
7
|
+
require 'sps-pub'
|
9
8
|
require 'logger'
|
10
9
|
|
11
10
|
|
@@ -46,13 +45,6 @@ class DynarexCron
|
|
46
45
|
puts '[' + (Time.now + @time_offset).strftime(DF) + '] DynarexCron started'
|
47
46
|
params = {uri: "ws://%s:%s" % [@sps_address, @sps_port]}
|
48
47
|
|
49
|
-
# run any background services
|
50
|
-
|
51
|
-
Thread.new do
|
52
|
-
sp = SPSSubPing.new host: @sps_address, port: @sps_port, \
|
53
|
-
identifier: 'DynarexCron'
|
54
|
-
sp.start
|
55
|
-
end
|
56
48
|
|
57
49
|
sleep 1 until Time.now.sec == 0
|
58
50
|
|
@@ -131,7 +123,7 @@ class DynarexCron
|
|
131
123
|
rescue
|
132
124
|
log 'cron ' + h[:cron].inspect, :info
|
133
125
|
log h.inspect + ' : ' + ($!).inspect
|
134
|
-
|
126
|
+
|
135
127
|
end
|
136
128
|
|
137
129
|
h[:cron].next # advances the time
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
tsPyW5OuDQXshrgmPt97DD8Btg4Tg5CGwnm0aeVYC/E4PnCMrtQNyPaRwBfvGrF0
|
32
32
|
vXqXm6nxDCrL/w==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2017-05-29 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: chronic_cron
|
@@ -74,27 +74,27 @@ dependencies:
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.5.26
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
|
-
name: sps-
|
77
|
+
name: sps-pub
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.5'
|
83
83
|
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
85
|
+
version: 0.5.5
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '0.
|
92
|
+
version: '0.5'
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.
|
95
|
+
version: 0.5.5
|
96
96
|
description:
|
97
|
-
email: james@
|
97
|
+
email: james@jamesrobertson.eu
|
98
98
|
executables: []
|
99
99
|
extensions: []
|
100
100
|
extra_rdoc_files: []
|
@@ -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.6.8
|
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
Binary file
|