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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4780499b9c78bc54ceaf107701274cc3cd45773b058211504df5efa93c86660a
4
- data.tar.gz: 7591968896bd300a66194d75bcbd95f73557b3462fc9f153f066841b0e3b2a4a
3
+ metadata.gz: 3004749832c7b622db8baba20d1ddb66caf46caa098e84c38605de648f576b8c
4
+ data.tar.gz: 7420ff263927102b3eda22bf461d847deb8e0655e29c45f3df85dfb8860dc9a5
5
5
  SHA512:
6
- metadata.gz: 668d18b215c3fbe78fe56909e90d00692991dd3215cfd758d9ade73d7025bcc2c498fdd795a3bf68cddbd7c3d29b45dc0dc3fa78a8287ebed87d4172151c338e
7
- data.tar.gz: ade8b5a20a2a893c4722dfa8502cea27f557ccfc92810020e4266820da1c86a27448ef4578343d9c27d9485eba33ffcc59ccf97d68bbce96cd87f7de5a5c1013
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 = "2.1.0"
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.2"
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", "~> 11.0"
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*"]
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "refinements/hashes"
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::Hashes
10
+ using Refinements::Hash
11
11
 
12
12
  ALLOWED_VERBS = /\A(connect|delete|get|head|options|patch|post|put|trace)\z/
13
13
 
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "mustermann"
4
- require "refinements/strings"
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::Strings
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(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
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: 2.1.0
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: 2023-10-01 00:00:00.000000000 Z
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: '11.0'
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: '11.0'
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.2'
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.4.20
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