uv-rays 2.4.5 → 2.4.6
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
- data/lib/uv-rays/http/request.rb +1 -2
- data/lib/uv-rays/version.rb +1 -1
- data/spec/zen_spec.rb +27 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a91e56b903ef1b846c68c6767f21a08fb4a1006
|
4
|
+
data.tar.gz: a56ddf829bcc85cd2f827576a84aadadeb8dc912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 284d7f5e131d15b096a876014c43d38cc2710d054676560ae1561108ee6b69964d0f38cd13c6e3ab4ccd27ad322b28c3df82bf283495ae06b365c1a0cd90ee71
|
7
|
+
data.tar.gz: 541392cb4958db21654c2d378bca79dda0eac86d482fd0e5d3c951927c2d11439cddd9ebd95f8047ed55164e7091ad5c3ff06db749532862528f5a43a03710f6
|
data/lib/uv-rays/http/request.rb
CHANGED
@@ -69,8 +69,7 @@ module UV
|
|
69
69
|
|
70
70
|
def resolve(response, parser = nil)
|
71
71
|
if response.status == 401 && @challenge_retries == 0 && response[:"WWW-Authenticate"]
|
72
|
-
challenge = response[:"WWW-Authenticate"]
|
73
|
-
challenge = challenge[0] if challenge.is_a?(Array)
|
72
|
+
challenge = Array(response[:"WWW-Authenticate"]).reject { |auth| auth.downcase == 'negotiate' }[0]
|
74
73
|
|
75
74
|
begin
|
76
75
|
if @ntlm_creds && challenge[0..3] == 'NTLM'
|
data/lib/uv-rays/version.rb
CHANGED
data/spec/zen_spec.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'libuv'
|
2
|
+
require 'set'
|
3
|
+
|
4
|
+
|
5
|
+
describe Libuv::Listener do
|
6
|
+
it "should ensure there are no remaining object references in callbacks", network: true do
|
7
|
+
require 'objspace'
|
8
|
+
|
9
|
+
checked = Set.new
|
10
|
+
|
11
|
+
# These are created by loop objects and are never cleaned up
|
12
|
+
# This is OK as the loops are expected to execute for the life of the application
|
13
|
+
except = []
|
14
|
+
|
15
|
+
ObjectSpace.each_object(Class) do |cls|
|
16
|
+
next unless cls.ancestors.include? ::UV::Connection
|
17
|
+
next if checked.include? cls
|
18
|
+
checked << cls
|
19
|
+
end
|
20
|
+
|
21
|
+
if checked.length > 0
|
22
|
+
puts "\nMemory Leak in #{checked.inspect}"
|
23
|
+
end
|
24
|
+
|
25
|
+
expect(checked.length).to be(0)
|
26
|
+
end
|
27
|
+
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.4.
|
4
|
+
version: 2.4.6
|
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: 2018-
|
11
|
+
date: 2018-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libuv
|
@@ -266,6 +266,7 @@ files:
|
|
266
266
|
- spec/ping_spec.rb
|
267
267
|
- spec/scheduler_spec.rb
|
268
268
|
- spec/scheduler_time_spec.rb
|
269
|
+
- spec/zen_spec.rb
|
269
270
|
- uv-rays.gemspec
|
270
271
|
homepage: https://github.com/cotag/uv-rays
|
271
272
|
licenses:
|
@@ -287,12 +288,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
288
|
version: '0'
|
288
289
|
requirements: []
|
289
290
|
rubyforge_project:
|
290
|
-
rubygems_version: 2.
|
291
|
+
rubygems_version: 2.6.14
|
291
292
|
signing_key:
|
292
293
|
specification_version: 4
|
293
294
|
summary: Abstractions for working with Libuv
|
294
295
|
test_files:
|
295
296
|
- spec/scheduler_time_spec.rb
|
297
|
+
- spec/zen_spec.rb
|
296
298
|
- spec/ping_spec.rb
|
297
299
|
- spec/http_endpoint_spec.rb
|
298
300
|
- spec/connection_spec.rb
|