uv-rays 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uv-rays/connection.rb +2 -5
- data/lib/uv-rays/scheduler.rb +7 -1
- data/lib/uv-rays/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cea80508dd174f1a92ad4b87d32920f23a85067a
|
4
|
+
data.tar.gz: 6e2e6455a4b672a93fa9726df89ee71a1d2458b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac4510a1e95d2547a82e5d8367c5ce47edeabb775065de0de5afedc545a0fc3b4d21539eff6311b91795f2d9e082dac01e36ff4f773615d1777b6f238ad2f636
|
7
|
+
data.tar.gz: e21553e82432cb7b15db6ca134f026ec02c591ebd095ffe09fdee5f24c71dbc7f7111792bc3f52557cf90601ec1958a72a4fcaf0c14587539fbc65cae50190c3
|
data/lib/uv-rays/connection.rb
CHANGED
@@ -166,11 +166,8 @@ module UV
|
|
166
166
|
|
167
167
|
if not server.nil?
|
168
168
|
server = '127.0.0.1' if server == 'localhost'
|
169
|
-
|
170
|
-
|
171
|
-
else
|
172
|
-
raise ArgumentError, "Invalid server address #{server}"
|
173
|
-
end
|
169
|
+
raise ArgumentError, "Invalid server address #{server}" unless IPAddress.valid?(server)
|
170
|
+
@transport.bind(server, port)
|
174
171
|
end
|
175
172
|
|
176
173
|
@transport.start_read
|
data/lib/uv-rays/scheduler.rb
CHANGED
@@ -186,7 +186,13 @@ module UV
|
|
186
186
|
|
187
187
|
# Every hour we should re-calibrate this (just in case)
|
188
188
|
calibrate_time
|
189
|
-
|
189
|
+
|
190
|
+
@calibrate = @reactor.timer do
|
191
|
+
calibrate_time
|
192
|
+
@calibrate.start(3600000)
|
193
|
+
end
|
194
|
+
@calibrate.start(3600000)
|
195
|
+
@calibrate.unref
|
190
196
|
end
|
191
197
|
|
192
198
|
|
data/lib/uv-rays/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uv-rays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen von Takach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libuv
|