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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed95e5b5bc1bdae6d1392d2dc96f4be939cddee5
4
- data.tar.gz: '05602795d00ee88bc9b618138739df80e817ca6e'
3
+ metadata.gz: cea80508dd174f1a92ad4b87d32920f23a85067a
4
+ data.tar.gz: 6e2e6455a4b672a93fa9726df89ee71a1d2458b0
5
5
  SHA512:
6
- metadata.gz: 206b3d6b4571762297e8068fbd6c099365d3f0a31c39bd5828587537b51d3babf9ca91195000390b4ce7f6ac5c2fdd7895e59c48c06788a5a7caab321cbbace8
7
- data.tar.gz: af6fa754532d8500bb01d649881532126f55c36b6b1a3f1232eb5e7fae30f198828179baeaa2eb754104cf9a702aec771030f548c42f3508af8321ff811cc8ef
6
+ metadata.gz: ac4510a1e95d2547a82e5d8367c5ce47edeabb775065de0de5afedc545a0fc3b4d21539eff6311b91795f2d9e082dac01e36ff4f773615d1777b6f238ad2f636
7
+ data.tar.gz: e21553e82432cb7b15db6ca134f026ec02c591ebd095ffe09fdee5f24c71dbc7f7111792bc3f52557cf90601ec1958a72a4fcaf0c14587539fbc65cae50190c3
@@ -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
- if IPAddress.valid? server
170
- @transport.bind(server, port)
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
@@ -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
- every(3600000) { calibrate_time }
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UV
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.2'
5
5
  end
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.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-04-27 00:00:00.000000000 Z
11
+ date: 2017-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libuv