graphql 1.10.2 → 1.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generators/graphql/core.rb +10 -2
  3. data/lib/generators/graphql/templates/schema.erb +1 -0
  4. data/lib/graphql/define/defined_object_proxy.rb +1 -1
  5. data/lib/graphql/define/instance_definable.rb +1 -1
  6. data/lib/graphql/execution/interpreter.rb +3 -0
  7. data/lib/graphql/execution/interpreter/handles_raw_value.rb +25 -0
  8. data/lib/graphql/execution/interpreter/runtime.rb +37 -121
  9. data/lib/graphql/field.rb +1 -1
  10. data/lib/graphql/language/nodes.rb +41 -83
  11. data/lib/graphql/language/parser.rb +96 -96
  12. data/lib/graphql/language/parser.y +96 -96
  13. data/lib/graphql/pagination/connections.rb +21 -5
  14. data/lib/graphql/query/null_context.rb +5 -1
  15. data/lib/graphql/query/variables.rb +9 -3
  16. data/lib/graphql/schema.rb +18 -2
  17. data/lib/graphql/schema/build_from_definition.rb +15 -1
  18. data/lib/graphql/schema/enum.rb +4 -1
  19. data/lib/graphql/schema/field.rb +11 -0
  20. data/lib/graphql/schema/field/connection_extension.rb +2 -1
  21. data/lib/graphql/schema/input_object.rb +21 -38
  22. data/lib/graphql/schema/member/base_dsl_methods.rb +11 -4
  23. data/lib/graphql/schema/member/has_arguments.rb +53 -2
  24. data/lib/graphql/schema/member/has_ast_node.rb +4 -1
  25. data/lib/graphql/schema/member/has_fields.rb +1 -1
  26. data/lib/graphql/schema/resolver.rb +2 -2
  27. data/lib/graphql/schema/resolver/has_payload_type.rb +3 -1
  28. data/lib/graphql/schema/warden.rb +10 -0
  29. data/lib/graphql/static_validation/rules/variable_default_values_are_correctly_typed.rb +0 -1
  30. data/lib/graphql/subscriptions.rb +14 -9
  31. data/lib/graphql/subscriptions/subscription_root.rb +2 -1
  32. data/lib/graphql/version.rb +1 -1
  33. metadata +4 -3
@@ -38,12 +38,13 @@ module GraphQL
38
38
  elsif (events = context.namespace(:subscriptions)[:events])
39
39
  # This is the first execution, so gather an Event
40
40
  # for the backend to register:
41
- events << Subscriptions::Event.new(
41
+ event = Subscriptions::Event.new(
42
42
  name: field.name,
43
43
  arguments: arguments,
44
44
  context: context,
45
45
  field: field,
46
46
  )
47
+ events << event
47
48
  value
48
49
  elsif context.query.subscription_topic == Subscriptions::Event.serialize(
49
50
  field.name,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.10.2"
3
+ VERSION = "1.10.3"
4
4
  end
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.10.2
4
+ version: 1.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-31 00:00:00.000000000 Z
11
+ date: 2020-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips
@@ -423,6 +423,7 @@ files:
423
423
  - lib/graphql/execution/instrumentation.rb
424
424
  - lib/graphql/execution/interpreter.rb
425
425
  - lib/graphql/execution/interpreter/execution_errors.rb
426
+ - lib/graphql/execution/interpreter/handles_raw_value.rb
426
427
  - lib/graphql/execution/interpreter/hash_response.rb
427
428
  - lib/graphql/execution/interpreter/resolve.rb
428
429
  - lib/graphql/execution/interpreter/runtime.rb
@@ -742,7 +743,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
742
743
  - !ruby/object:Gem::Version
743
744
  version: '0'
744
745
  requirements: []
745
- rubygems_version: 3.0.3
746
+ rubygems_version: 3.1.2
746
747
  signing_key:
747
748
  specification_version: 4
748
749
  summary: A GraphQL language and runtime for Ruby