httpi 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.devcontainer/devcontainer.json +1 -1
- data/CHANGELOG.md +4 -0
- data/httpi.gemspec +1 -1
- data/lib/httpi/version.rb +1 -1
- data/spec/integration/curb_spec.rb +2 -1
- data/spec/integration/httpclient_spec.rb +2 -1
- data/spec/integration/support/application.rb +2 -11
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e611d4cea80f9c190772591306f7f355159f41076db623b2663eef371780e0f
|
4
|
+
data.tar.gz: 7c2c1eb582c93bc498c301f85e38d83c7917ca40f65724f646f360d93c727dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a00241efcfcae64a4ade2fb2b3f07dce9da9524591f6dc90d76ac72caa57062246e904732835afb20794d2d307aced826f18c1e5eb8c968e93c898bdc1f017d7
|
7
|
+
data.tar.gz: 32806a0e4bd9174ea7184b231740623a1dbdef4eb7c9463c86140c6ec48d043793027453d8f40f303321cb855ff70025d823f8a477c1c0449e262fd6e4812bac
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{
|
4
4
|
"name": "Ruby",
|
5
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.
|
6
|
+
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bullseye"
|
7
7
|
|
8
8
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
9
9
|
// "features": {},
|
data/CHANGELOG.md
CHANGED
data/httpi.gemspec
CHANGED
data/lib/httpi/version.rb
CHANGED
@@ -82,7 +82,8 @@ describe HTTPI::Adapter::Curb do
|
|
82
82
|
expect(response.body).to eq("basic-auth")
|
83
83
|
end
|
84
84
|
|
85
|
-
|
85
|
+
# Rack::Auth::Digest is removed in Rack 3.1
|
86
|
+
xit "supports digest authentication" do
|
86
87
|
request = HTTPI::Request.new(@server.url + "digest-auth")
|
87
88
|
request.auth.digest("admin", "secret")
|
88
89
|
|
@@ -79,7 +79,8 @@ describe HTTPI::Adapter::HTTPClient do
|
|
79
79
|
expect(response.body).to eq("basic-auth")
|
80
80
|
end
|
81
81
|
|
82
|
-
|
82
|
+
# Rack::Auth::Digest is removed in Rack 3.1
|
83
|
+
xit "supports digest authentication" do
|
83
84
|
request = HTTPI::Request.new(@server.url + "digest-auth")
|
84
85
|
request.auth.digest("admin", "secret")
|
85
86
|
|
@@ -78,19 +78,10 @@ class IntegrationServer
|
|
78
78
|
end
|
79
79
|
|
80
80
|
map "/digest-auth" do
|
81
|
-
|
81
|
+
# Rack::Auth::Digest is removed in Rack 3.1
|
82
|
+
run lambda { |env|
|
82
83
|
IntegrationServer.respond_with "digest-auth"
|
83
84
|
}
|
84
|
-
|
85
|
-
realm = 'digest-realm'
|
86
|
-
app = Rack::Auth::Digest::MD5.new(unprotected_app) do |username|
|
87
|
-
username == 'admin' ? Digest::MD5.hexdigest("admin:#{realm}:secret") : nil
|
88
|
-
end
|
89
|
-
app.realm = realm
|
90
|
-
app.opaque = 'this-should-be-secret'
|
91
|
-
app.passwords_hashed = true
|
92
|
-
|
93
|
-
run app
|
94
85
|
end
|
95
86
|
|
96
87
|
end
|
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.3
|
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-06
|
12
|
+
date: 2024-07-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '2.0'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '4'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '2.0'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: nkf
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
- !ruby/object:Gem::Version
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
|
-
rubygems_version: 3.
|
265
|
+
rubygems_version: 3.5.3
|
266
266
|
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: Common interface for Ruby's HTTP libraries
|