httpi 4.0.3 → 4.0.4
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/httpi/version.rb +1 -1
- metadata +2 -50
- data/.devcontainer/devcontainer.json +0 -22
- data/.github/workflows/development.yml +0 -49
- data/.gitignore +0 -11
- data/.rspec +0 -1
- data/Gemfile +0 -22
- data/Rakefile +0 -18
- data/httpi.gemspec +0 -40
- data/spec/fixtures/attachment.gif +0 -0
- data/spec/fixtures/client_cert.pem +0 -20
- data/spec/fixtures/client_key.pem +0 -27
- data/spec/fixtures/xml.gz +0 -0
- data/spec/fixtures/xml.xml +0 -10
- data/spec/fixtures/xml_dime.dime +0 -0
- data/spec/fixtures/xml_dime.xml +0 -1
- data/spec/httpi/adapter/base_spec.rb +0 -23
- data/spec/httpi/adapter/curb_spec.rb +0 -351
- data/spec/httpi/adapter/em_http_spec.rb +0 -180
- data/spec/httpi/adapter/excon_spec.rb +0 -34
- data/spec/httpi/adapter/http_spec.rb +0 -28
- data/spec/httpi/adapter/httpclient_spec.rb +0 -238
- data/spec/httpi/adapter/net_http_persistent_spec.rb +0 -46
- data/spec/httpi/adapter/net_http_spec.rb +0 -54
- data/spec/httpi/adapter/rack_spec.rb +0 -109
- data/spec/httpi/adapter_spec.rb +0 -68
- data/spec/httpi/auth/config_spec.rb +0 -163
- data/spec/httpi/auth/ssl_spec.rb +0 -216
- data/spec/httpi/cookie_spec.rb +0 -36
- data/spec/httpi/cookie_store_spec.rb +0 -26
- data/spec/httpi/error_spec.rb +0 -43
- data/spec/httpi/httpi_spec.rb +0 -382
- data/spec/httpi/request_spec.rb +0 -290
- data/spec/httpi/response_spec.rb +0 -146
- data/spec/integration/curb_spec.rb +0 -140
- data/spec/integration/em_http_spec.rb +0 -108
- data/spec/integration/excon_spec.rb +0 -174
- data/spec/integration/fixtures/ca_all.pem +0 -19
- data/spec/integration/fixtures/server.cert +0 -19
- data/spec/integration/fixtures/server.key +0 -27
- data/spec/integration/http_spec.rb +0 -156
- data/spec/integration/httpclient_spec.rb +0 -137
- data/spec/integration/net_http_persistent_spec.rb +0 -171
- data/spec/integration/net_http_spec.rb +0 -282
- data/spec/integration/support/application.rb +0 -88
- data/spec/integration/support/server.rb +0 -83
- data/spec/spec_helper.rb +0 -23
- data/spec/support/error_helper.rb +0 -26
- data/spec/support/fixture.rb +0 -27
- data/spec/support/matchers.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe1562efbf5ab9aceadc7635826a4cf7317b83d5847c413bdce3462e23728f50
|
4
|
+
data.tar.gz: 2149ada8b2ec173323c1dd248a57d7666bdb9b6a1e0ae83c25e7f96f4c91539b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0964bc62dd38fcd02d9c2c5ae9b07031b7719ccdb3ff831dc6d9f563a1fd0bd085d55e741cd30e063d64b6e3c548d347f8ec9ede647790ed54c4c68d8d50d222'
|
7
|
+
data.tar.gz: 61d4a274d5a330c886ccce1f773ee41567f9d09b216f1eca513ab7646f484e708295548732670a0025726713294c09aa704630c840971a57f79d34db653b97c5
|
data/CHANGELOG.md
CHANGED
data/lib/httpi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-07-
|
12
|
+
date: 2024-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -163,17 +163,10 @@ executables: []
|
|
163
163
|
extensions: []
|
164
164
|
extra_rdoc_files: []
|
165
165
|
files:
|
166
|
-
- ".devcontainer/devcontainer.json"
|
167
|
-
- ".github/workflows/development.yml"
|
168
|
-
- ".gitignore"
|
169
|
-
- ".rspec"
|
170
166
|
- CHANGELOG.md
|
171
|
-
- Gemfile
|
172
167
|
- LICENSE
|
173
168
|
- README.md
|
174
|
-
- Rakefile
|
175
169
|
- UPDATING.md
|
176
|
-
- httpi.gemspec
|
177
170
|
- lib/httpi.rb
|
178
171
|
- lib/httpi/adapter.rb
|
179
172
|
- lib/httpi/adapter/base.rb
|
@@ -196,47 +189,6 @@ files:
|
|
196
189
|
- lib/httpi/response.rb
|
197
190
|
- lib/httpi/utils.rb
|
198
191
|
- lib/httpi/version.rb
|
199
|
-
- spec/fixtures/attachment.gif
|
200
|
-
- spec/fixtures/client_cert.pem
|
201
|
-
- spec/fixtures/client_key.pem
|
202
|
-
- spec/fixtures/xml.gz
|
203
|
-
- spec/fixtures/xml.xml
|
204
|
-
- spec/fixtures/xml_dime.dime
|
205
|
-
- spec/fixtures/xml_dime.xml
|
206
|
-
- spec/httpi/adapter/base_spec.rb
|
207
|
-
- spec/httpi/adapter/curb_spec.rb
|
208
|
-
- spec/httpi/adapter/em_http_spec.rb
|
209
|
-
- spec/httpi/adapter/excon_spec.rb
|
210
|
-
- spec/httpi/adapter/http_spec.rb
|
211
|
-
- spec/httpi/adapter/httpclient_spec.rb
|
212
|
-
- spec/httpi/adapter/net_http_persistent_spec.rb
|
213
|
-
- spec/httpi/adapter/net_http_spec.rb
|
214
|
-
- spec/httpi/adapter/rack_spec.rb
|
215
|
-
- spec/httpi/adapter_spec.rb
|
216
|
-
- spec/httpi/auth/config_spec.rb
|
217
|
-
- spec/httpi/auth/ssl_spec.rb
|
218
|
-
- spec/httpi/cookie_spec.rb
|
219
|
-
- spec/httpi/cookie_store_spec.rb
|
220
|
-
- spec/httpi/error_spec.rb
|
221
|
-
- spec/httpi/httpi_spec.rb
|
222
|
-
- spec/httpi/request_spec.rb
|
223
|
-
- spec/httpi/response_spec.rb
|
224
|
-
- spec/integration/curb_spec.rb
|
225
|
-
- spec/integration/em_http_spec.rb
|
226
|
-
- spec/integration/excon_spec.rb
|
227
|
-
- spec/integration/fixtures/ca_all.pem
|
228
|
-
- spec/integration/fixtures/server.cert
|
229
|
-
- spec/integration/fixtures/server.key
|
230
|
-
- spec/integration/http_spec.rb
|
231
|
-
- spec/integration/httpclient_spec.rb
|
232
|
-
- spec/integration/net_http_persistent_spec.rb
|
233
|
-
- spec/integration/net_http_spec.rb
|
234
|
-
- spec/integration/support/application.rb
|
235
|
-
- spec/integration/support/server.rb
|
236
|
-
- spec/spec_helper.rb
|
237
|
-
- spec/support/error_helper.rb
|
238
|
-
- spec/support/fixture.rb
|
239
|
-
- spec/support/matchers.rb
|
240
192
|
homepage: https://github.com/savonrb/httpi
|
241
193
|
licenses:
|
242
194
|
- MIT
|
@@ -1,22 +0,0 @@
|
|
1
|
-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2
|
-
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
|
3
|
-
{
|
4
|
-
"name": "Ruby",
|
5
|
-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6
|
-
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bullseye"
|
7
|
-
|
8
|
-
// Features to add to the dev container. More info: https://containers.dev/features.
|
9
|
-
// "features": {},
|
10
|
-
|
11
|
-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
12
|
-
// "forwardPorts": [],
|
13
|
-
|
14
|
-
// Use 'postCreateCommand' to run commands after the container is created.
|
15
|
-
// "postCreateCommand": "ruby --version",
|
16
|
-
|
17
|
-
// Configure tool-specific properties.
|
18
|
-
// "customizations": {},
|
19
|
-
|
20
|
-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
21
|
-
// "remoteUser": "root"
|
22
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
name: Development
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
test:
|
7
|
-
name: ${{matrix.ruby}} on ${{matrix.os}}
|
8
|
-
runs-on: ${{matrix.os}}-latest
|
9
|
-
continue-on-error: ${{matrix.experimental}}
|
10
|
-
|
11
|
-
strategy:
|
12
|
-
matrix:
|
13
|
-
os:
|
14
|
-
- ubuntu
|
15
|
-
|
16
|
-
ruby:
|
17
|
-
- "3.0"
|
18
|
-
- "3.1"
|
19
|
-
- "3.2"
|
20
|
-
- "3.3"
|
21
|
-
|
22
|
-
experimental: [false]
|
23
|
-
env: [""]
|
24
|
-
|
25
|
-
include:
|
26
|
-
- os: ubuntu
|
27
|
-
ruby: truffleruby
|
28
|
-
experimental: true
|
29
|
-
- os: ubuntu
|
30
|
-
ruby: jruby
|
31
|
-
experimental: true
|
32
|
-
- os: ubuntu
|
33
|
-
ruby: head
|
34
|
-
experimental: true
|
35
|
-
|
36
|
-
steps:
|
37
|
-
- uses: actions/checkout@v4
|
38
|
-
|
39
|
-
- name: Install dependencies
|
40
|
-
run: sudo apt-get install libcurl4-openssl-dev
|
41
|
-
|
42
|
-
- uses: ruby/setup-ruby@v1
|
43
|
-
with:
|
44
|
-
ruby-version: ${{matrix.ruby}}
|
45
|
-
bundler-cache: true
|
46
|
-
|
47
|
-
- name: Run tests
|
48
|
-
timeout-minutes: 5
|
49
|
-
run: ${{matrix.env}} bundle exec rspec
|
data/.gitignore
DELETED
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|
data/Gemfile
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
gemspec
|
3
|
-
|
4
|
-
gem 'jruby-openssl', :platforms => :jruby
|
5
|
-
|
6
|
-
gem 'public_suffix', '~> 4.0'
|
7
|
-
|
8
|
-
# http clients
|
9
|
-
gem 'httpclient', '~> 2.3', :require => false
|
10
|
-
gem 'curb', '~> 0.8', :require => false, :platforms => [:ruby]
|
11
|
-
gem 'em-http-request', :require => false, :platforms => [:ruby]
|
12
|
-
gem 'em-synchrony', :require => false, :platforms => [:ruby, :jruby]
|
13
|
-
gem 'excon', '~> 0.71', :require => false, :platforms => [:ruby, :jruby]
|
14
|
-
gem 'net-http-persistent', '~> 4.0', :require => false
|
15
|
-
gem 'http', :require => false
|
16
|
-
|
17
|
-
# adapter extensions
|
18
|
-
gem 'rack'
|
19
|
-
gem 'socksify'
|
20
|
-
|
21
|
-
# coverage
|
22
|
-
gem 'simplecov', :require => false
|
data/Rakefile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rspec/core/rake_task"
|
3
|
-
|
4
|
-
RSpec::Core::RakeTask.new do |t|
|
5
|
-
t.pattern = "spec/httpi/**/*_spec.rb"
|
6
|
-
end
|
7
|
-
|
8
|
-
desc "Run RSpec integration examples"
|
9
|
-
RSpec::Core::RakeTask.new "spec_integration" do |t|
|
10
|
-
t.pattern = "spec/integration/*_spec.rb"
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "Run RSpec code and integration examples"
|
14
|
-
RSpec::Core::RakeTask.new "ci" do |t|
|
15
|
-
t.pattern = "spec/{httpi,integration}/**/*_spec.rb"
|
16
|
-
end
|
17
|
-
|
18
|
-
task :default => :spec
|
data/httpi.gemspec
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
lib = File.expand_path('../lib/', __FILE__)
|
2
|
-
$:.unshift lib unless $:.include?(lib)
|
3
|
-
|
4
|
-
require 'httpi/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = 'httpi'
|
8
|
-
s.version = HTTPI::VERSION
|
9
|
-
s.authors = ['Daniel Harrington', 'Martin Tepper']
|
10
|
-
s.email = 'me@rubiii.com'
|
11
|
-
s.homepage = "https://github.com/savonrb/httpi"
|
12
|
-
s.summary = "Common interface for Ruby's HTTP libraries"
|
13
|
-
s.description = s.summary
|
14
|
-
s.metadata = { 'bug_tracker_uri' => 'https://github.com/savonrb/httpi/issues',
|
15
|
-
'changelog_uri' => 'https://github.com/savonrb/httpi/blob/master/CHANGELOG.md',
|
16
|
-
'source_code_uri' => s.homepage,
|
17
|
-
'wiki_uri' => 'https://github.com/savonrb/httpi/wiki',
|
18
|
-
'documentation_uri' => 'https://www.rubydoc.info/gems/httpi' }
|
19
|
-
|
20
|
-
s.required_ruby_version = '>= 3.0'
|
21
|
-
|
22
|
-
s.license = 'MIT'
|
23
|
-
|
24
|
-
s.add_dependency 'rack', '>= 2.0', '< 4'
|
25
|
-
s.add_dependency 'nkf'
|
26
|
-
s.add_dependency 'base64'
|
27
|
-
s.add_dependency 'mutex_m'
|
28
|
-
|
29
|
-
s.add_development_dependency 'rubyntlm', '~> 0.6.4'
|
30
|
-
s.add_development_dependency 'rake', '~> 13.0'
|
31
|
-
s.add_development_dependency 'rspec', '~> 3.5'
|
32
|
-
s.add_development_dependency 'mocha', '~> 0.13'
|
33
|
-
s.add_development_dependency 'puma', '~> 6.0'
|
34
|
-
s.add_development_dependency 'webmock'
|
35
|
-
|
36
|
-
s.metadata["rubygems_mfa_required"] = "true"
|
37
|
-
|
38
|
-
s.files = `git ls-files`.split("\n")
|
39
|
-
s.require_path = 'lib'
|
40
|
-
end
|
Binary file
|
@@ -1,20 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDVTCCAj2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQKDBhEZXZl
|
3
|
-
bG9wbWVudC9DTj1sb2NhbGhvc3QwHhcNMTgwODEwMDAzMTQzWhcNMjgwODA3MDAz
|
4
|
-
MTQzWjAjMSEwHwYDVQQKDBhEZXZlbG9wbWVudC9DTj1sb2NhbGhvc3QwggEiMA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ws7sTzecXkh3BkaP5rhPycOxdLJs705p4RUALkDW7hn1NAoGBAONe
|
16
|
-
dfmO49s2y1Ye2XrRCmGqfVa0n4pFmQajgputc4BPkf3XudtH365O0QEwt54Nw3dQ
|
17
|
-
IvFzq/f0XVhkw4Coo38WZ4nTctbW/ZkVvKJnk2DJE1ubNJvw1wHzwz848BVT/b4Z
|
18
|
-
VplqNDPvWmEmGFzrLeOwPZfDcglDxaCpjF7q0GqTAoGAcEOjUHJuxjvqpceR4NVL
|
19
|
-
vwfqXhRecWMlXJZiaqhzFrfkB4m9D98+/3I/bdesRXrWaNAbgv+GfpmB8X65SHzT
|
20
|
-
zht9hEvn6A1LdX0KfIDKzeMCc49qY49N6ZgQNVnsW7DiZLAyMVbz5Hc1oNhHnWXg
|
21
|
-
lHQfbUsbfeQjh2Q6YVMpZxkCgYAmC2pGJciup46CjIrraAsKqJJsbbC8XETsvXNf
|
22
|
-
RTisYaQWC4DH1lDxQ7LpNhOjWL46Oqh+KlK+HJ956PJlltI0s7UDdOQkWrj4YpC7
|
23
|
-
xAT/DuY0T9YPuc7gPr+O1qIlj3ZH1smMxh6SChzfYJZ3BcsZ7CWCPWvZbQOmjHg2
|
24
|
-
cagKDQKBgQCjuICU3aElEXyGwPCEazVakgcuAuiAAjECQrHrbSVPaTDu6Cumupkw
|
25
|
-
50ypk/qJ3DegEumpufwLg37A9yFogkkHBI9Sw0PVjzXM0iWJsHceLTHWUgJBWcl3
|
26
|
-
5Sl/AacXbUHz4NMqARNVrfR3DP33Z/YXJ4bpsVswEjD51jPwwluwyA==
|
27
|
-
-----END RSA PRIVATE KEY-----
|
data/spec/fixtures/xml.gz
DELETED
Binary file
|
data/spec/fixtures/xml.xml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ex="http://service.example.com/">
|
2
|
-
<soapenv:Header/>
|
3
|
-
<soapenv:Body>
|
4
|
-
<ex:findUser>
|
5
|
-
<request>
|
6
|
-
<id>1</id>
|
7
|
-
</request>
|
8
|
-
</ex:findUser>
|
9
|
-
</soapenv:Body>
|
10
|
-
</soapenv:Envelope>
|
data/spec/fixtures/xml_dime.dime
DELETED
Binary file
|
data/spec/fixtures/xml_dime.xml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getFileResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><getFileReturn href="#id0"/></getFileResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:FileVW" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://ws"><created xsi:type="xsd:dateTime">2010-10-27T22:00:00.000Z</created><id xsi:type="xsd:int">2181136</id><lastUpdated xsi:type="xsd:dateTime">2010-10-27T22:00:00.000Z</lastUpdated><metadata href="#id1"/><name xsi:type="xsd:string">attachment.gif</name><size xsi:type="xsd:long">80</size><type xsi:type="xsd:string">gif</type><version xsi:type="xsd:long">1</version></multiRef><multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:MetadataVW" xmlns:ns2="http://ws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><CR_Latest xsi:type="xsd:boolean">true</CR_Latest><MD5 xsi:type="xsd:string">0xC11FE5DB260A89160FFF4EC26630EEB8</MD5><PSize xsi:type="xsd:string" xsi:nil="true"/><category xsi:type="xsd:string">1</category><completionRate xsi:type="xsd:int">1</completionRate><date xsi:type="xsd:string" xsi:nil="true"/><docNo xsi:type="xsd:string"></docNo><filesId xsi:type="xsd:int">2181136</filesId><init xsi:type="xsd:string"></init><locked xsi:type="xsd:boolean">false</locked><mdate xsi:type="xsd:dateTime">2010-10-28T20:27:00.000Z</mdate><meta1 xsi:type="xsd:string" xsi:nil="true"/><meta10 xsi:type="xsd:string" xsi:nil="true"/><meta11 xsi:type="xsd:string" xsi:nil="true"/><meta12 xsi:type="xsd:string" xsi:nil="true"/><meta13 xsi:type="xsd:string" xsi:nil="true"/><meta14 xsi:type="xsd:string" xsi:nil="true"/><meta15 xsi:type="xsd:string" xsi:nil="true"/><meta16 xsi:type="xsd:string" xsi:nil="true"/><meta17 xsi:type="xsd:string" xsi:nil="true"/><meta18 xsi:type="xsd:string" xsi:nil="true"/><meta19 xsi:type="xsd:string" xsi:nil="true"/><meta2 xsi:type="xsd:string" xsi:nil="true"/><meta20 xsi:type="xsd:string" xsi:nil="true"/><meta3 xsi:type="xsd:string" xsi:nil="true"/><meta4 xsi:type="xsd:string" xsi:nil="true"/><meta5 xsi:type="xsd:string" xsi:nil="true"/><meta6 xsi:type="xsd:string" xsi:nil="true"/><meta7 xsi:type="xsd:string" xsi:nil="true"/><meta8 xsi:type="xsd:string" xsi:nil="true"/><meta9 xsi:type="xsd:string" xsi:nil="true"/><note xsi:type="xsd:string" xsi:nil="true"/><ref xsi:type="xsd:string"></ref><ref2 xsi:type="xsd:string" xsi:nil="true"/><ref3 xsi:type="xsd:string" xsi:nil="true"/><ref4 xsi:type="xsd:string" xsi:nil="true"/><revDate xsi:type="xsd:string"></revDate><revName xsi:type="xsd:string"></revName><scale xsi:type="xsd:string" xsi:nil="true"/><scaleUnit xsi:type="xsd:string" xsi:nil="true"/><size xsi:type="xsd:int">80</size><type xsi:type="xsd:string">Document</type><version xsi:type="xsd:int">1</version></multiRef></soapenv:Body></soapenv:Envelope>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
require "httpi/adapter/base"
|
3
|
-
|
4
|
-
describe HTTPI::Adapter::Base do
|
5
|
-
|
6
|
-
subject(:base) { HTTPI::Adapter::Base.new(request) }
|
7
|
-
let(:request) { HTTPI::Request.new }
|
8
|
-
|
9
|
-
describe "#client" do
|
10
|
-
it "returns the adapter's client instance" do
|
11
|
-
expect { base.client }.
|
12
|
-
to raise_error(HTTPI::NotImplementedError, "Adapters need to implement a #client method")
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
describe "#request" do
|
17
|
-
it "executes arbitrary HTTP requests" do
|
18
|
-
expect { base.request(:get) }.
|
19
|
-
to raise_error(HTTPI::NotImplementedError, "Adapters need to implement a #request method")
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|