graph_weaver 0.4.4 → 0.5.0
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 +1357 -0
- data/CLAUDE.md +100 -8
- data/DECISIONS.md +309 -0
- data/Gemfile.lock +23 -23
- data/NOTES.md +5 -5
- data/PLAN.md +106 -135
- data/README.md +115 -96
- data/REVIEW.md +946 -0
- data/docs/cassettes.md +75 -48
- data/docs/editors.md +82 -0
- data/docs/errors.md +32 -30
- data/docs/federation.md +520 -48
- data/docs/generated_modules.md +352 -137
- data/docs/getting_started.md +237 -67
- data/docs/logging.md +35 -6
- data/docs/real_world.md +21 -15
- data/docs/scalars.md +49 -136
- data/docs/testing.md +299 -52
- data/docs/transports.md +129 -30
- data/docs/upgrading.md +112 -0
- data/graph_weaver.gemspec +3 -1
- data/lib/generators/graph_weaver/install_generator.rb +259 -0
- data/lib/graph_weaver/client.rb +114 -111
- data/lib/graph_weaver/codegen/aliases.rb +217 -0
- data/lib/graph_weaver/codegen/emit.rb +272 -251
- data/lib/graph_weaver/codegen/enum_type.rb +27 -98
- data/lib/graph_weaver/codegen/nodes.rb +72 -13
- data/lib/graph_weaver/codegen/scalar_type.rb +72 -67
- data/lib/graph_weaver/codegen/type_helpers.rb +142 -0
- data/lib/graph_weaver/codegen.rb +617 -264
- data/lib/graph_weaver/errors.rb +127 -10
- data/lib/graph_weaver/federation.rb +272 -0
- data/lib/graph_weaver/hints.rb +12 -6
- data/lib/graph_weaver/in_process.rb +90 -0
- data/lib/graph_weaver/input_struct.rb +21 -2
- data/lib/graph_weaver/logging.rb +29 -0
- data/lib/graph_weaver/parsing.rb +67 -0
- data/lib/graph_weaver/query_module.rb +55 -0
- data/lib/graph_weaver/railtie.rb +23 -1
- data/lib/graph_weaver/representation.rb +74 -0
- data/lib/graph_weaver/response.rb +15 -1
- data/lib/graph_weaver/retry.rb +29 -8
- data/lib/graph_weaver/rspec.rb +214 -16
- data/lib/graph_weaver/schema_loader.rb +820 -57
- data/lib/graph_weaver/schemas.rb +46 -0
- data/lib/graph_weaver/selection.rb +59 -7
- data/lib/graph_weaver/tasks.rb +216 -21
- data/lib/graph_weaver/testing/cassette.rb +186 -62
- data/lib/graph_weaver/testing/coverage.rb +165 -0
- data/lib/graph_weaver/testing/failure.rb +10 -23
- data/lib/graph_weaver/testing/fake_client.rb +194 -28
- data/lib/graph_weaver/testing/fake_subgraph.rb +85 -0
- data/lib/graph_weaver/testing/router.rb +1431 -0
- data/lib/graph_weaver/testing/subgraphs.rb +130 -0
- data/lib/graph_weaver/testing.rb +204 -14
- data/lib/graph_weaver/transport/faraday.rb +31 -6
- data/lib/graph_weaver/transport/http.rb +99 -36
- data/lib/graph_weaver/transport.rb +74 -18
- data/lib/graph_weaver/version.rb +1 -1
- data/lib/graph_weaver.rb +398 -170
- metadata +20 -3
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graph_weaver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Pepper
|
|
@@ -219,8 +219,8 @@ dependencies:
|
|
|
219
219
|
- - ">="
|
|
220
220
|
- !ruby/object:Gem::Version
|
|
221
221
|
version: '0'
|
|
222
|
-
description:
|
|
223
|
-
|
|
222
|
+
description: Your .graphql files, compiled into Sorbet types — and the fakes to test
|
|
223
|
+
them.
|
|
224
224
|
executables: []
|
|
225
225
|
extensions: []
|
|
226
226
|
extra_rdoc_files: []
|
|
@@ -228,6 +228,7 @@ files:
|
|
|
228
228
|
- ".yardopts"
|
|
229
229
|
- CHANGELOG.md
|
|
230
230
|
- CLAUDE.md
|
|
231
|
+
- DECISIONS.md
|
|
231
232
|
- Gemfile
|
|
232
233
|
- Gemfile.lock
|
|
233
234
|
- LICENSE.txt
|
|
@@ -235,7 +236,9 @@ files:
|
|
|
235
236
|
- NOTES.md
|
|
236
237
|
- PLAN.md
|
|
237
238
|
- README.md
|
|
239
|
+
- REVIEW.md
|
|
238
240
|
- docs/cassettes.md
|
|
241
|
+
- docs/editors.md
|
|
239
242
|
- docs/errors.md
|
|
240
243
|
- docs/federation.md
|
|
241
244
|
- docs/generated_modules.md
|
|
@@ -245,30 +248,44 @@ files:
|
|
|
245
248
|
- docs/scalars.md
|
|
246
249
|
- docs/testing.md
|
|
247
250
|
- docs/transports.md
|
|
251
|
+
- docs/upgrading.md
|
|
248
252
|
- graph_weaver.gemspec
|
|
253
|
+
- lib/generators/graph_weaver/install_generator.rb
|
|
249
254
|
- lib/graph_weaver.rb
|
|
250
255
|
- lib/graph_weaver/client.rb
|
|
251
256
|
- lib/graph_weaver/codegen.rb
|
|
257
|
+
- lib/graph_weaver/codegen/aliases.rb
|
|
252
258
|
- lib/graph_weaver/codegen/emit.rb
|
|
253
259
|
- lib/graph_weaver/codegen/enum_type.rb
|
|
254
260
|
- lib/graph_weaver/codegen/nodes.rb
|
|
255
261
|
- lib/graph_weaver/codegen/scalar_type.rb
|
|
262
|
+
- lib/graph_weaver/codegen/type_helpers.rb
|
|
256
263
|
- lib/graph_weaver/errors.rb
|
|
264
|
+
- lib/graph_weaver/federation.rb
|
|
257
265
|
- lib/graph_weaver/hints.rb
|
|
266
|
+
- lib/graph_weaver/in_process.rb
|
|
258
267
|
- lib/graph_weaver/inflect.rb
|
|
259
268
|
- lib/graph_weaver/input_struct.rb
|
|
260
269
|
- lib/graph_weaver/logging.rb
|
|
270
|
+
- lib/graph_weaver/parsing.rb
|
|
271
|
+
- lib/graph_weaver/query_module.rb
|
|
261
272
|
- lib/graph_weaver/railtie.rb
|
|
273
|
+
- lib/graph_weaver/representation.rb
|
|
262
274
|
- lib/graph_weaver/response.rb
|
|
263
275
|
- lib/graph_weaver/retry.rb
|
|
264
276
|
- lib/graph_weaver/rspec.rb
|
|
265
277
|
- lib/graph_weaver/schema_loader.rb
|
|
278
|
+
- lib/graph_weaver/schemas.rb
|
|
266
279
|
- lib/graph_weaver/selection.rb
|
|
267
280
|
- lib/graph_weaver/tasks.rb
|
|
268
281
|
- lib/graph_weaver/testing.rb
|
|
269
282
|
- lib/graph_weaver/testing/cassette.rb
|
|
283
|
+
- lib/graph_weaver/testing/coverage.rb
|
|
270
284
|
- lib/graph_weaver/testing/failure.rb
|
|
271
285
|
- lib/graph_weaver/testing/fake_client.rb
|
|
286
|
+
- lib/graph_weaver/testing/fake_subgraph.rb
|
|
287
|
+
- lib/graph_weaver/testing/router.rb
|
|
288
|
+
- lib/graph_weaver/testing/subgraphs.rb
|
|
272
289
|
- lib/graph_weaver/testing/values.rb
|
|
273
290
|
- lib/graph_weaver/transport.rb
|
|
274
291
|
- lib/graph_weaver/transport/faraday.rb
|