restify 1.4.0 → 1.4.1

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
- SHA1:
3
- metadata.gz: 82d3b62e23db7cb179cce7f4b8a31fe3d965f674
4
- data.tar.gz: bee7bbacb6e8f25b326af0fba70f12a5609f7aa2
2
+ SHA256:
3
+ metadata.gz: 0ead12f1e1ea5dc63535ff85782767f164bc8092fc2fad879c6efab1852b18fd
4
+ data.tar.gz: 37d9f08cf939f668d9317f5ec4a8fa564fa908b23686c2f42904b1af911b012d
5
5
  SHA512:
6
- metadata.gz: a1385660f21c2f4543a84227d49a821edaa57d515d78ba68102e5a75781d188c181fd3fec32e7444275dd951aabcfebd97174bafa654fc1b53a051bc16990559
7
- data.tar.gz: 7dba379faf8e84c513ae6adc66a1f8b4ab4fe9f2f546958fe9a561ae14d335c2045d1a4559c23f5f9ea6c4753d9289f3cd21b170a5ad85232f84934068ca0272
6
+ metadata.gz: 04a147ae63f21761d3d86c4a5b57ed0006ce1b54c72ea9b89f4cc69fbb9fc560d2a84c605137cc1b4e8ac8d409d5f7e8707db08bb726c350fd050fcaecc93a68
7
+ data.tar.gz: b1382be6253e083bda252c8975ec2abe45b86c5af300fc878f6ba6ca0533cb34cf07be6553432c2167dba74aba558e561b2404e1d0639f07b33b997a9c413114
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1
4
+
5
+ * Fix possible deadlock issues
6
+
3
7
  ## 1.4.0
4
8
 
5
9
  * Fix possible concurrency issue with typhoeus adapter
@@ -16,11 +16,9 @@ module Restify
16
16
  }.freeze
17
17
 
18
18
  def initialize(sync: false, **options)
19
- @sync = sync
20
- @hydra = ::Typhoeus::Hydra.new(**options)
21
- @mutex = Mutex.new
22
-
23
- start unless sync?
19
+ @sync = sync
20
+ @hydra = ::Typhoeus::Hydra.new(**options)
21
+ @mutex = Mutex.new
24
22
  end
25
23
 
26
24
  def sync?
@@ -38,7 +36,7 @@ module Restify
38
36
 
39
37
  def queued?
40
38
  @mutex.synchronize do
41
- @hydra.queued_requests.any?
39
+ @hydra.queued_requests.any? || @hydra.multi.easy_handles.count > 0
42
40
  end
43
41
  end
44
42
 
@@ -4,7 +4,7 @@ module Restify
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 4
7
- PATCH = 0
7
+ PATCH = 1
8
8
  STAGE = nil
9
9
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.').freeze
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-10 00:00:00.000000000 Z
11
+ date: 2017-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.6.13
174
+ rubygems_version: 2.7.2
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: An experimental hypermedia REST client.