restify 0.1.2.1.b25 → 0.1.2.1.b27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/restify/adapter.rb +13 -7
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODVhMWE5Nzg5YjI5NThiNjc4MmJkYWM0MjY0MGRhMGUwZTk0M2E5NQ==
4
+ ODExNGE4NTJmNjJmOTk2YTY0YjE4YjViYmI3Mzg5MDdiNzAyYTA1Mg==
5
5
  data.tar.gz: !binary |-
6
- MjdlNzliOGYwMjAwNjY3NDkxYjMyNjBmOTk5MmE1NzNmNGY5ZjFlMg==
6
+ Njg0ZjcxZWI1ZmQ1ODEzNDdiMjYyMjQ1NzdiYjdmMTYyMTM3NGJiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzdhNWVhMWQ0ZTA5MTcyMDljYTkzZGY3ZDQ5N2M1ZTlkOTI4ODY0NjRiYjU1
10
- ZDIxOWM0YjM1MzNjMzBmY2IxZDVhYzk5ZGE0YTMxZjYzNTk1NGVmZDQ2YTQy
11
- NmVkY2E2M2U2MGNiMzI4ZDE0NjNhODRlNjdkZjJlM2ZiZjMwOTY=
9
+ MTA3ZDFkNTAwN2ZmNDExMGQ2YjE0ODZlODhhNTFkZjgxYmEwMmMwNWNiYTE1
10
+ OTc2NjY3MjhlMjY1OTkxNzc5YTdiYWU4N2JiMTMzNWUzOTM4NmRmMGY2NTE4
11
+ NmUxNTE3NzU2YmMyNDhkYTE5Y2VmNzA1MzcxMTFmNTFjZWY3MzQ=
12
12
  data.tar.gz: !binary |-
13
- MzI1NTEwZWEzYjBlNzg3MDU5YTc3YWI0ZmUzZTA1ZjEzNjk3YWRlNzM3ZjMw
14
- ZmM5NjIxOTNjOWY3NDdmOWVlYTY0ZDNiNjY2ZTY1NGFhYjM1YjVmZjFlZWFi
15
- NjJmNmJmYWYxMWZlOTk4ZGJlMDAzMjVkYjJmYjExOGM5Yzg2ZTI=
13
+ NTkzYjUwYzQyM2ZjN2YwMjMwYzI5YzkwZTRhYzA0YWM4YTUzOTQ0NjQ1MDRh
14
+ ZTMyODEyMzhkNmIxNDQ2YjAwNWY0ZjQyY2FiMGI4ZDRkOTQ0NWM4NWIzMmJi
15
+ ZGRjODJhNTY0NjU4N2VlNDdhYTY2MGNhZGI4YWZjZDlmMzkwM2Q=
@@ -49,13 +49,19 @@ module Restify
49
49
  return if requests.empty?
50
50
 
51
51
  request, writer, retried = pipeline? ? requests.shift : requests.first
52
- req = connection.send request.method.downcase,
53
- keepalive: true,
54
- redirects: 3,
55
- path: request.uri.normalized_path,
56
- query: request.uri.normalized_query,
57
- body: request.body,
58
- head: request.headers
52
+ begin
53
+ req = connection.send request.method.downcase,
54
+ keepalive: true,
55
+ redirects: 3,
56
+ path: request.uri.normalized_path,
57
+ query: request.uri.normalized_query,
58
+ body: request.body,
59
+ head: request.headers
60
+ rescue => err
61
+ writer.reject err
62
+ requests.shift unless pipeline?
63
+ return
64
+ end
59
65
 
60
66
  req.callback do
61
67
  requests.shift unless pipeline?
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: 0.1.2.1.b25
4
+ version: 0.1.2.1.b27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-03 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: obligation
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: 1.3.1
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.4.1
164
+ rubygems_version: 2.4.5
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: An experimental hypermedia REST client.