dynarex_cron 0.6.4 → 0.7.0
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 +2 -2
- data/lib/dynarex_cron.rb +6 -2
- data.tar.gz.sig +0 -0
- metadata +2 -22
- 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: 8670f98acb09f3fc63760de596940e9fe2891379
|
|
4
|
+
data.tar.gz: f63e9209efb90c8faa937ae62c653a79fc030d46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab31ff23fbfe735b4b2a56bc6a513a2e0ef4e24074de253048dec33964373442bb2c609cdbaca036909ba72dd1648ebea5b23b327c61c19d85373707e9cee676
|
|
7
|
+
data.tar.gz: 902130b3589a95c367e18b11aab26251ad3813131fd150cd4d6f05a9963cdab26cf066527a3fe77d08bfd6ca7c466c2f1f9de91ce52d2aa77ff0080f5cf6be02
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
�y��4�o�aӓ�
|
|
2
|
+
�
|
data/lib/dynarex_cron.rb
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
require 'dynarex'
|
|
6
6
|
require 'chronic_cron'
|
|
7
|
-
require 'run_every'
|
|
8
7
|
require 'sps-pub'
|
|
9
8
|
require 'logger'
|
|
10
9
|
|
|
@@ -46,7 +45,10 @@ 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
|
-
|
|
48
|
+
sleep 1 until Time.now.sec == 0
|
|
49
|
+
|
|
50
|
+
# the following loop runs every minute
|
|
51
|
+
while true do
|
|
50
52
|
|
|
51
53
|
iterate @cron_entries
|
|
52
54
|
|
|
@@ -64,6 +66,8 @@ class DynarexCron
|
|
|
64
66
|
|
|
65
67
|
end
|
|
66
68
|
|
|
69
|
+
sleep 1
|
|
70
|
+
sleep 1 until Time.now.sec == 0
|
|
67
71
|
end
|
|
68
72
|
|
|
69
73
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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.
|
|
4
|
+
version: 0.7.0
|
|
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-04-
|
|
34
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: chronic_cron
|
|
@@ -93,26 +93,6 @@ dependencies:
|
|
|
93
93
|
- - ">="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: 0.4.0
|
|
96
|
-
- !ruby/object:Gem::Dependency
|
|
97
|
-
name: run_every
|
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
|
99
|
-
requirements:
|
|
100
|
-
- - "~>"
|
|
101
|
-
- !ruby/object:Gem::Version
|
|
102
|
-
version: '0.1'
|
|
103
|
-
- - ">="
|
|
104
|
-
- !ruby/object:Gem::Version
|
|
105
|
-
version: 0.1.9
|
|
106
|
-
type: :runtime
|
|
107
|
-
prerelease: false
|
|
108
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
109
|
-
requirements:
|
|
110
|
-
- - "~>"
|
|
111
|
-
- !ruby/object:Gem::Version
|
|
112
|
-
version: '0.1'
|
|
113
|
-
- - ">="
|
|
114
|
-
- !ruby/object:Gem::Version
|
|
115
|
-
version: 0.1.9
|
|
116
96
|
description:
|
|
117
97
|
email: james@r0bertson.co.uk
|
|
118
98
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|