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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79757cc4967bd276258cb2b484500d1638d55941
4
- data.tar.gz: df7eba8a85ff3ce185261d12960fde3802182ab0
3
+ metadata.gz: 3a91e56b903ef1b846c68c6767f21a08fb4a1006
4
+ data.tar.gz: a56ddf829bcc85cd2f827576a84aadadeb8dc912
5
5
  SHA512:
6
- metadata.gz: 5bd369daf4446f3694cf2de8387b203c4999b17613fa33b7529d761232b1bc42f0786f9d72342aee3bb968051db32c1345f02e48ea545efcf5ba036db1ff4923
7
- data.tar.gz: 356bdf1951d21ce01cc59917e1048c055c84e65d06f2fc6a4457010c353704c8830fce2740fd0ef3a0d2a7af9369b5a1433357a754c136ed90ec118e2f9bad94
6
+ metadata.gz: 284d7f5e131d15b096a876014c43d38cc2710d054676560ae1561108ee6b69964d0f38cd13c6e3ab4ccd27ad322b28c3df82bf283495ae06b365c1a0cd90ee71
7
+ data.tar.gz: 541392cb4958db21654c2d378bca79dda0eac86d482fd0e5d3c951927c2d11439cddd9ebd95f8047ed55164e7091ad5c3ff06db749532862528f5a43a03710f6
@@ -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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UV
4
- VERSION = '2.4.5'
4
+ VERSION = '2.4.6'
5
5
  end
@@ -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.5
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-05-31 00:00:00.000000000 Z
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.5.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