async-http-faraday 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97f1c3b69700303d5abf22beab7a29d9084919e905c33957724d30c3eeff313a
4
- data.tar.gz: 1974d022028b461aa6315def42ccdfd6cca4be9f8b441aba9cc0ba87a0539adf
3
+ metadata.gz: 377ade1b177b4de588ffe820a70256193642836edb6db795a557d496840e5427
4
+ data.tar.gz: cc88c3dc2d5eae36f1e226c8f695aa9a257ff6f9453694f6a23f0aa0107235aa
5
5
  SHA512:
6
- metadata.gz: 21550fec4f910d4fa29df8068b4153c7195fc49733c9bd07965b775a6596e43074733b32e12b7a3b107e229b41639206a6476c80a0f44683078c869dbcf5d2c7
7
- data.tar.gz: 0a58ec6452dbcb28980561f56d15bf74fd4e9791100153d0dcd71cc0429d8c1bce291dfe1d3dcd81163f8462bfc7d3c766e58b82aca1d61595133438198456d9
6
+ metadata.gz: d0a35b3a4a2bbd13ffe7d3bf631dcca10cc948e2d902730eeef1e9d362bc151903b1dcb5414c68c7e7dc60ac989ebc885fc6f3baefc24f3ad2d143859a96de74
7
+ data.tar.gz: b21bbc27048c743b1938b55aa55b6c819241a28c00945c6e94b382b41c6f1f9a0020966afe18ae1a31cef17b2498a386408b6cbc0f9a27183e7751e544abadd0
@@ -16,11 +16,12 @@ Gem::Specification.new do |spec|
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_dependency("async-http", "~> 0.37")
19
+ spec.add_dependency("async-http", "~> 0.41")
20
20
  spec.add_dependency("faraday")
21
21
 
22
22
  spec.add_development_dependency "async-rspec", "~> 1.2"
23
23
 
24
+ spec.add_development_dependency "covered"
24
25
  spec.add_development_dependency "bundler"
25
26
  spec.add_development_dependency "rspec", "~> 3.6"
26
27
  spec.add_development_dependency "rake"
@@ -33,7 +33,7 @@ module Async
33
33
 
34
34
  response = client.send(env[:method], env[:url].request_uri, env[:request_headers], env[:body] || [])
35
35
 
36
- save_response(env, response.status, response.body.read, response.headers, response.reason)
36
+ save_response(env, response.status, response.body.read, response.headers)
37
37
 
38
38
  @app.call env
39
39
  end
@@ -42,22 +42,7 @@ module Async
42
42
  return to_enum(:endpoints_for, env) unless block_given?
43
43
 
44
44
  if url = env[:url]
45
- yield Async::HTTP::URLEndpoint.new(url)
46
- end
47
- end
48
-
49
- def ssl_context_for(options)
50
- OpenSSL::SSL::SSLContext.new.tap do |context|
51
- context.set_params(
52
- verify_mode: options.fetch(:verify, true) ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE,
53
- # cert_store: ssl_cert_store(ssl),
54
- # cert: options[:client_cert],
55
- # key: options[:client_key],
56
- # ca_file: ssl[:ca_file],
57
- # ca_path: ssl[:ca_path],
58
- # verify_depth: ssl[:verify_depth],
59
- # version: ssl[:version],
60
- )
45
+ yield Async::HTTP::Endpoint.new(url)
61
46
  end
62
47
  end
63
48
  end
@@ -21,7 +21,7 @@
21
21
  module Async
22
22
  module HTTP
23
23
  module Faraday
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http-faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
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-03-26 00:00:00.000000000 Z
11
+ date: 2019-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.37'
19
+ version: '0.41'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.37'
26
+ version: '0.41'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: covered
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -130,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  requirements: []
133
- rubygems_version: 3.0.3
147
+ rubygems_version: 3.0.4
134
148
  signing_key:
135
149
  specification_version: 4
136
150
  summary: Provides an adaptor between async-http and faraday.