graphql 1.7.6 → 1.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/graphql/function_generator.rb +1 -1
- data/lib/generators/graphql/loader_generator.rb +1 -1
- data/lib/generators/graphql/mutation_generator.rb +6 -1
- data/lib/generators/graphql/templates/function.erb +2 -2
- data/lib/generators/graphql/templates/loader.erb +2 -2
- data/lib/graphql/execution.rb +1 -0
- data/lib/graphql/execution/instrumentation.rb +82 -0
- data/lib/graphql/execution/multiplex.rb +11 -28
- data/lib/graphql/field.rb +5 -0
- data/lib/graphql/internal_representation/node.rb +1 -1
- data/lib/graphql/language.rb +1 -0
- data/lib/graphql/language/document_from_schema_definition.rb +185 -0
- data/lib/graphql/language/lexer.rb +3 -3
- data/lib/graphql/language/lexer.rl +2 -2
- data/lib/graphql/language/token.rb +9 -2
- data/lib/graphql/query.rb +4 -0
- data/lib/graphql/relay/relation_connection.rb +13 -18
- data/lib/graphql/schema.rb +6 -0
- data/lib/graphql/schema/build_from_definition.rb +2 -0
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +6 -4
- data/lib/graphql/tracing.rb +1 -0
- data/lib/graphql/tracing/data_dog_tracing.rb +45 -0
- data/lib/graphql/tracing/platform_tracing.rb +20 -7
- data/lib/graphql/version.rb +1 -1
- data/readme.md +1 -1
- data/spec/dummy/app/channels/graphql_channel.rb +22 -1
- data/spec/dummy/log/development.log +239 -0
- data/spec/dummy/log/test.log +204 -0
- data/spec/dummy/test/system/action_cable_subscription_test.rb +4 -0
- data/spec/dummy/tmp/screenshots/failures_test_it_handles_subscriptions.png +0 -0
- data/spec/generators/graphql/function_generator_spec.rb +26 -0
- data/spec/generators/graphql/loader_generator_spec.rb +24 -0
- data/spec/graphql/analysis/max_query_complexity_spec.rb +3 -3
- data/spec/graphql/analysis/max_query_depth_spec.rb +3 -3
- data/spec/graphql/boolean_type_spec.rb +3 -3
- data/spec/graphql/execution/execute_spec.rb +1 -1
- data/spec/graphql/execution/instrumentation_spec.rb +165 -0
- data/spec/graphql/execution/multiplex_spec.rb +1 -1
- data/spec/graphql/float_type_spec.rb +2 -2
- data/spec/graphql/id_type_spec.rb +1 -1
- data/spec/graphql/input_object_type_spec.rb +2 -2
- data/spec/graphql/int_type_spec.rb +2 -2
- data/spec/graphql/internal_representation/rewrite_spec.rb +2 -2
- data/spec/graphql/introspection/schema_type_spec.rb +1 -0
- data/spec/graphql/language/document_from_schema_definition_spec.rb +337 -0
- data/spec/graphql/language/lexer_spec.rb +12 -1
- data/spec/graphql/language/parser_spec.rb +1 -1
- data/spec/graphql/query/arguments_spec.rb +3 -3
- data/spec/graphql/query/variables_spec.rb +1 -1
- data/spec/graphql/query_spec.rb +4 -4
- data/spec/graphql/relay/base_connection_spec.rb +1 -1
- data/spec/graphql/relay/connection_resolve_spec.rb +1 -1
- data/spec/graphql/relay/connection_type_spec.rb +1 -1
- data/spec/graphql/relay/mutation_spec.rb +3 -3
- data/spec/graphql/relay/relation_connection_spec.rb +58 -0
- data/spec/graphql/schema/build_from_definition_spec.rb +14 -0
- data/spec/graphql/schema/validation_spec.rb +1 -1
- data/spec/graphql/schema/warden_spec.rb +11 -11
- data/spec/graphql/schema_spec.rb +8 -1
- data/spec/graphql/string_type_spec.rb +3 -3
- data/spec/graphql/subscriptions_spec.rb +1 -1
- data/spec/graphql/tracing/platform_tracing_spec.rb +59 -0
- data/spec/support/dummy/schema.rb +19 -0
- data/spec/support/star_wars/data.rb +1 -2
- metadata +9 -2
@@ -18,13 +18,12 @@ module StarWars
|
|
18
18
|
'Executor',
|
19
19
|
]
|
20
20
|
|
21
|
-
# ActiveRecord::Base.logger = Logger.new(STDOUT)
|
22
21
|
`rm -f ./_test_.db`
|
23
22
|
# Set up "Bases" in ActiveRecord
|
24
23
|
|
25
24
|
if jruby?
|
26
25
|
ActiveRecord::Base.establish_connection(adapter: "jdbcsqlite3", database: "./_test_.db")
|
27
|
-
Sequel.connect('jdbc:sqlite:./_test_.db')
|
26
|
+
DB = Sequel.connect('jdbc:sqlite:./_test_.db')
|
28
27
|
elsif ENV['DATABASE'] == 'POSTGRESQL'
|
29
28
|
ActiveRecord::Base.establish_connection(
|
30
29
|
adapter: "postgresql",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|
@@ -371,6 +371,7 @@ files:
|
|
371
371
|
- lib/graphql/execution/directive_checks.rb
|
372
372
|
- lib/graphql/execution/execute.rb
|
373
373
|
- lib/graphql/execution/flatten.rb
|
374
|
+
- lib/graphql/execution/instrumentation.rb
|
374
375
|
- lib/graphql/execution/lazy.rb
|
375
376
|
- lib/graphql/execution/lazy/lazy_method_map.rb
|
376
377
|
- lib/graphql/execution/lazy/resolve.rb
|
@@ -418,6 +419,7 @@ files:
|
|
418
419
|
- lib/graphql/language.rb
|
419
420
|
- lib/graphql/language/comments.rb
|
420
421
|
- lib/graphql/language/definition_slice.rb
|
422
|
+
- lib/graphql/language/document_from_schema_definition.rb
|
421
423
|
- lib/graphql/language/generation.rb
|
422
424
|
- lib/graphql/language/lexer.rb
|
423
425
|
- lib/graphql/language/lexer.rl
|
@@ -535,6 +537,7 @@ files:
|
|
535
537
|
- lib/graphql/tracing.rb
|
536
538
|
- lib/graphql/tracing/active_support_notifications_tracing.rb
|
537
539
|
- lib/graphql/tracing/appsignal_tracing.rb
|
540
|
+
- lib/graphql/tracing/data_dog_tracing.rb
|
538
541
|
- lib/graphql/tracing/new_relic_tracing.rb
|
539
542
|
- lib/graphql/tracing/platform_tracing.rb
|
540
543
|
- lib/graphql/tracing/scout_tracing.rb
|
@@ -874,6 +877,7 @@ files:
|
|
874
877
|
- spec/graphql/directive_spec.rb
|
875
878
|
- spec/graphql/enum_type_spec.rb
|
876
879
|
- spec/graphql/execution/execute_spec.rb
|
880
|
+
- spec/graphql/execution/instrumentation_spec.rb
|
877
881
|
- spec/graphql/execution/lazy/lazy_method_map_spec.rb
|
878
882
|
- spec/graphql/execution/lazy_spec.rb
|
879
883
|
- spec/graphql/execution/multiplex_spec.rb
|
@@ -895,6 +899,7 @@ files:
|
|
895
899
|
- spec/graphql/introspection/type_by_name_field_spec.rb
|
896
900
|
- spec/graphql/introspection/type_type_spec.rb
|
897
901
|
- spec/graphql/language/definition_slice_spec.rb
|
902
|
+
- spec/graphql/language/document_from_schema_definition_spec.rb
|
898
903
|
- spec/graphql/language/equality_spec.rb
|
899
904
|
- spec/graphql/language/generation_spec.rb
|
900
905
|
- spec/graphql/language/lexer_spec.rb
|
@@ -1342,6 +1347,7 @@ test_files:
|
|
1342
1347
|
- spec/graphql/directive_spec.rb
|
1343
1348
|
- spec/graphql/enum_type_spec.rb
|
1344
1349
|
- spec/graphql/execution/execute_spec.rb
|
1350
|
+
- spec/graphql/execution/instrumentation_spec.rb
|
1345
1351
|
- spec/graphql/execution/lazy/lazy_method_map_spec.rb
|
1346
1352
|
- spec/graphql/execution/lazy_spec.rb
|
1347
1353
|
- spec/graphql/execution/multiplex_spec.rb
|
@@ -1363,6 +1369,7 @@ test_files:
|
|
1363
1369
|
- spec/graphql/introspection/type_by_name_field_spec.rb
|
1364
1370
|
- spec/graphql/introspection/type_type_spec.rb
|
1365
1371
|
- spec/graphql/language/definition_slice_spec.rb
|
1372
|
+
- spec/graphql/language/document_from_schema_definition_spec.rb
|
1366
1373
|
- spec/graphql/language/equality_spec.rb
|
1367
1374
|
- spec/graphql/language/generation_spec.rb
|
1368
1375
|
- spec/graphql/language/lexer_spec.rb
|