http-fake 1.0.0 → 1.0.2

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: c18305dc4d324ea7742b16b93a9e7bbd57c875cc5eb496ba1674425d15d62d6b
4
- data.tar.gz: a8db0b7a0210101b606cce1f1dc5901324c758913ec8403547c66b0e755ba3d1
3
+ metadata.gz: 7710313a61786056b056810e97c56e284642264b5ac8c86953b413cfd4e690a7
4
+ data.tar.gz: 8dd15a63ca8b1d5af7dc147bc579c1531d77db497cc109f5b1ec28edf95b2e87
5
5
  SHA512:
6
- metadata.gz: 0aa5e026d357e1d88c92e257a4e70661d2711d40020245ee2e716a4873d5dbdde64d61a7e8410b671da4e09453eb75bde55da85c640d2c1c9e599efd2cd2f3d4
7
- data.tar.gz: 9930c63afcd7e610160d3358ee45ef0d0e75685a16c6f6848ac94b8c930efd1ea85257f8afdbb890e0641581d5c058911dfa9b64a3810270550541aff5ff930d
6
+ metadata.gz: 1267b2c2e87b80290ac6e34771f9ccde57d42dbd434874c5b867cdf86c8a61fe292b63963b9d81e69955b3e217af491cb921d374cf6aa78a970548a5e7a452e3
7
+ data.tar.gz: 06ecc7b5850f360f8dba69eeebbec3202b20515551299a3e704abe9c17bdfa6cbd5fbfecce87767d28ed02be8bd1a09b037a25e256c6a7e4c91b6533fa387124
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  = HTTP Fake
8
8
 
9
- HTTP Fake is a companion to the {http_link} gem when you want a convenient way to test HTTP requests by swapping out your _real_ HTTP client with this _fake_ HTTP client. Using a fake allows you to improve the performance of your test suite by answering fake responses without hitting a live API. You'll still want to test against a live API, eventually, within your integration tests but at a lower level, like your unit tests, you can use this gem instead. This gem is particularly useful when using _Dependency Injection_, especially when coupled with the link:https://www.alchemists.io/projects/infusible[Infusible] gem.
9
+ HTTP Fake is a companion to the {http_link} gem when you want a convenient way to test HTTP requests by swapping out your _real_ HTTP client with this _fake_ HTTP client. Using a fake allows you to improve the performance of your test suite by answering fake responses without hitting a live API. You'll still want to test against a live API, eventually, within your integration tests but at a lower level, like your unit tests, you can use this gem instead. This gem is particularly useful when using _Dependency Injection_, especially when coupled with the link:https://alchemists.io/projects/infusible[Infusible] gem.
10
10
 
11
11
  toc::[]
12
12
 
@@ -161,7 +161,7 @@ HTTP::Fake::Client.new do
161
161
  get "/customers/1" do
162
162
  headers["Content-Type"] = "application/json"
163
163
  status 200
164
- Bundler.root.join("spec/support/fixtures/customer.json").read
164
+ SPEC_ROOT.join("support/fixtures/customer.json").read
165
165
  end
166
166
  end
167
167
 
@@ -172,7 +172,7 @@ HTTP::Fake::Client.new do
172
172
  status 200
173
173
 
174
174
  <<~JSON
175
- [#{Bundler.root.join("spec/support/fixtures/customer.json").read}]
175
+ [#{SPEC_ROOT.join("support/fixtures/customer.json").read}]
176
176
  JSON
177
177
  end
178
178
  end
@@ -205,22 +205,22 @@ To test, run:
205
205
 
206
206
  [source,bash]
207
207
  ----
208
- bundle exec rake
208
+ bin/rake
209
209
  ----
210
210
 
211
- == link:https://www.alchemists.io/policies/license[License]
211
+ == link:https://alchemists.io/policies/license[License]
212
212
 
213
- == link:https://www.alchemists.io/policies/security[Security]
213
+ == link:https://alchemists.io/policies/security[Security]
214
214
 
215
- == link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct]
215
+ == link:https://alchemists.io/policies/code_of_conduct[Code of Conduct]
216
216
 
217
- == link:https://www.alchemists.io/policies/contributions[Contributions]
217
+ == link:https://alchemists.io/policies/contributions[Contributions]
218
218
 
219
- == link:https://www.alchemists.io/projects/http-fake/versions[Versions]
219
+ == link:https://alchemists.io/projects/http-fake/versions[Versions]
220
220
 
221
- == link:https://www.alchemists.io/community[Community]
221
+ == link:https://alchemists.io/community[Community]
222
222
 
223
223
  == Credits
224
224
 
225
- * Built with link:https://www.alchemists.io/projects/gemsmith[Gemsmith].
226
- * Engineered by link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
225
+ * Built with link:https://alchemists.io/projects/gemsmith[Gemsmith].
226
+ * Engineered by link:https://alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
data/http-fake.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "http-fake"
5
- spec.version = "1.0.0"
5
+ spec.version = "1.0.2"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
- spec.homepage = "https://www.alchemists.io/projects/http-fake"
8
+ spec.homepage = "https://alchemists.io/projects/http-fake"
9
9
  spec.summary = "Provides a fake but equivalent implementation of the HTTP gem for test suites."
10
10
  spec.license = "Hippocratic-2.1"
11
11
 
12
12
  spec.metadata = {
13
13
  "bug_tracker_uri" => "https://github.com/bkuhlmann/http-fake/issues",
14
- "changelog_uri" => "https://www.alchemists.io/projects/http-fake/versions",
15
- "documentation_uri" => "https://www.alchemists.io/projects/http-fake",
14
+ "changelog_uri" => "https://alchemists.io/projects/http-fake/versions",
15
+ "documentation_uri" => "https://alchemists.io/projects/http-fake",
16
16
  "funding_uri" => "https://github.com/sponsors/bkuhlmann",
17
17
  "label" => "HTTP Fake",
18
18
  "rubygems_mfa_required" => "true",
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: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,25 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIC/jCCAeagAwIBAgIBBTANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMjAzMTkxNzI0MzJaFw0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X9ffnz3/W8ck2IQhKzu
30
+ MKO2FVijzbDWTsZeZGglS4E+4Jxpau1lU9HhOIcKolv6LeC6UdALTFudY+GLb8Xw
31
+ REXgaJkjzzhkUSILmEnRwEbY08dVSl7ZAaxVI679vfI2yapLlIwpbBgmQTiTvPr3
32
+ qyyLUno9flYEOv9fmGHunSrM+gE0/0niGTXa5GgXBXYGS2he4LQGgSBfGp/cTwMU
33
+ rDKJRcusZ12lNBeDfgqACz/BBJF8FLodgk6rGMRZz7+ZmjjHEmpG5bQpR6Q2BuWL
34
+ XMtYk/QzaWuhiR7pWjiF8jbdd7RO6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
35
+ 3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
+ gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
30
37
  -----END CERTIFICATE-----
31
- date: 2022-12-25 00:00:00.000000000 Z
38
+ date: 2023-03-22 00:00:00.000000000 Z
32
39
  dependencies:
33
40
  - !ruby/object:Gem::Dependency
34
41
  name: http
@@ -104,13 +111,13 @@ files:
104
111
  - lib/http/fake/connector.rb
105
112
  - lib/http/fake/requester.rb
106
113
  - lib/http/fake/responder.rb
107
- homepage: https://www.alchemists.io/projects/http-fake
114
+ homepage: https://alchemists.io/projects/http-fake
108
115
  licenses:
109
116
  - Hippocratic-2.1
110
117
  metadata:
111
118
  bug_tracker_uri: https://github.com/bkuhlmann/http-fake/issues
112
- changelog_uri: https://www.alchemists.io/projects/http-fake/versions
113
- documentation_uri: https://www.alchemists.io/projects/http-fake
119
+ changelog_uri: https://alchemists.io/projects/http-fake/versions
120
+ documentation_uri: https://alchemists.io/projects/http-fake
114
121
  funding_uri: https://github.com/sponsors/bkuhlmann
115
122
  label: HTTP Fake
116
123
  rubygems_mfa_required: 'true'
@@ -130,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
137
  - !ruby/object:Gem::Version
131
138
  version: '0'
132
139
  requirements: []
133
- rubygems_version: 3.4.1
140
+ rubygems_version: 3.4.9
134
141
  signing_key:
135
142
  specification_version: 4
136
143
  summary: Provides a fake but equivalent implementation of the HTTP gem for test suites.
metadata.gz.sig CHANGED
Binary file