dynarex_cron 0.6.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4414241a2f57a9b098555055261b9a4a04ec918f
4
- data.tar.gz: 1846bdee4df43fe4041f790482d999d7960497b2
3
+ metadata.gz: 8670f98acb09f3fc63760de596940e9fe2891379
4
+ data.tar.gz: f63e9209efb90c8faa937ae62c653a79fc030d46
5
5
  SHA512:
6
- metadata.gz: 4d225fae17a41aef4119cd4984d1773c80a129fac0f1f38c7cffe4d43a263b4bbfb39f5b2f4bdf5a33b0305aac83d26275ee89cfc429815ffdb93b40a3868e44
7
- data.tar.gz: 00d5895f866ec9a612adf25bf6d02622a89a2874fb1865b97e464aadd89a39ae47ddec593c7df218eb69de1b6da18063785418e8e9b5e25d2db01264bed5f4c7
6
+ metadata.gz: ab31ff23fbfe735b4b2a56bc6a513a2e0ef4e24074de253048dec33964373442bb2c609cdbaca036909ba72dd1648ebea5b23b327c61c19d85373707e9cee676
7
+ data.tar.gz: 902130b3589a95c367e18b11aab26251ad3813131fd150cd4d6f05a9963cdab26cf066527a3fe77d08bfd6ca7c466c2f1f9de91ce52d2aa77ff0080f5cf6be02
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ��Q�|�-��M��("�^B��9#��N5�茠V���/��vlc�,s���+��w���/�lዑgtT�������P:��]!�
2
- ���M��7hڮ���4*7d��t�5H�`����'����>'}��k��p8�B�F��b���4�ghH��D6�a�3��u�*��d�yO����X�Q�U_8$�Y�!���}I����������IdL ����4������L��V9��wĥ�-6�ϰ�F�m��
1
+ y��4o�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
- RunEvery.new(seconds: 60) do
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.6.4
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-04 00:00:00.000000000 Z
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