http-fake 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/http-fake.gemspec +3 -3
- data/lib/http/fake/builder.rb +2 -2
- data/lib/http/fake/responder.rb +2 -2
- data/lib/http/fake.rb +3 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3004749832c7b622db8baba20d1ddb66caf46caa098e84c38605de648f576b8c
|
4
|
+
data.tar.gz: 7420ff263927102b3eda22bf461d847deb8e0655e29c45f3df85dfb8860dc9a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41d23d5aaaf2be68843e67a6627b19384e7af0fa987a9f8b0d13c1f50193526b902dfe824a38e7f8542932e5680582972c2e2ea2e5278ddaf14bd4cb3a2b893
|
7
|
+
data.tar.gz: 5d8e51315268e31c23405a04191dcb7988a22944321f142427ef1b2aaae4d9662164f17ba412b498549ad350b22de79f1bf85f093ae12b418facbb3c23971e9f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/http-fake.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "http-fake"
|
5
|
-
spec.version = "
|
5
|
+
spec.version = "3.0.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/http-fake"
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
|
-
spec.required_ruby_version = "~> 3.
|
25
|
+
spec.required_ruby_version = "~> 3.3"
|
26
26
|
spec.add_dependency "http", "~> 5.1"
|
27
27
|
spec.add_dependency "mustermann", "~> 3.0"
|
28
|
-
spec.add_dependency "refinements", "~>
|
28
|
+
spec.add_dependency "refinements", "~> 12.0"
|
29
29
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
30
30
|
|
31
31
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
data/lib/http/fake/builder.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/hash"
|
4
4
|
require "uri"
|
5
5
|
|
6
6
|
module HTTP
|
7
7
|
module Fake
|
8
8
|
# Builds the response for a request.
|
9
9
|
class Builder
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Hash
|
11
11
|
|
12
12
|
ALLOWED_VERBS = /\A(connect|delete|get|head|options|patch|post|put|trace)\z/
|
13
13
|
|
data/lib/http/fake/responder.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "mustermann"
|
4
|
-
require "refinements/
|
4
|
+
require "refinements/string"
|
5
5
|
|
6
6
|
module HTTP
|
7
7
|
module Fake
|
8
8
|
# Handles an outgoing response.
|
9
9
|
class Responder
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::String
|
11
11
|
|
12
12
|
attr_reader :headers
|
13
13
|
|
data/lib/http/fake.rb
CHANGED
@@ -13,6 +13,8 @@ end
|
|
13
13
|
module HTTP
|
14
14
|
# Main namespace.
|
15
15
|
module Fake
|
16
|
-
def self.loader
|
16
|
+
def self.loader registry = Zeitwerk::Registry
|
17
|
+
@loader ||= registry.loaders.find { |loader| loader.tag == "http-fake" }
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-fake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2024-01-01 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: http
|
@@ -71,14 +71,14 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '12.0'
|
75
75
|
type: :runtime
|
76
76
|
prerelease: false
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '12.0'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: zeitwerk
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,14 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
131
131
|
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: '3.
|
133
|
+
version: '3.3'
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.5.3
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: A HTTP fake implementation for test suites.
|
metadata.gz.sig
CHANGED
Binary file
|