async-rest 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/rest/representation.rb +8 -1
- data/lib/async/rest/resource.rb +1 -0
- data/lib/async/rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7532e90b101d5977772c3471fcbe2e9981677e2459e90f0c385c6ffab0c7c48c
|
4
|
+
data.tar.gz: 36d2b5804bcfde6a3938752fc7b68f0b1af011fdfc6b9910d032431e76b90bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b9d994df5534243476a9fc4cb02d523f1a12ad12310ff4b637574543d37288f142b3909dfc01725a5ba5978abb0e0d1ea8d8767110c14a7a376c5e9f6a0a2dc
|
7
|
+
data.tar.gz: fb8ac27b1b95768dbb89638a2f13c48865360e8f15b11df0991c712a0fdebc912d24d487e3191b8223952948b4c8a389fc1c794b01b32b74760e3294888e07ad
|
@@ -75,7 +75,14 @@ module Async
|
|
75
75
|
|
76
76
|
response = @resource.call(request)
|
77
77
|
|
78
|
-
|
78
|
+
# If we exit this block because of an exception, we close the response. This ensures we don't have any dangling connections.
|
79
|
+
begin
|
80
|
+
return process_response(request, response)
|
81
|
+
rescue
|
82
|
+
response.close
|
83
|
+
|
84
|
+
raise
|
85
|
+
end
|
79
86
|
end
|
80
87
|
end
|
81
88
|
|
data/lib/async/rest/resource.rb
CHANGED
data/lib/async/rest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|