graphql 1.8.7 → 1.8.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graphql/enum_type.rb +4 -0
  3. data/lib/graphql/execution/multiplex.rb +1 -1
  4. data/lib/graphql/schema/argument.rb +1 -0
  5. data/lib/graphql/schema/enum_value.rb +1 -0
  6. data/lib/graphql/schema/field.rb +1 -0
  7. data/lib/graphql/schema/interface.rb +1 -0
  8. data/lib/graphql/schema/member.rb +2 -0
  9. data/lib/graphql/schema/member/has_path.rb +25 -0
  10. data/lib/graphql/schema/relay_classic_mutation.rb +3 -9
  11. data/lib/graphql/schema/resolver.rb +25 -5
  12. data/lib/graphql/subscriptions/action_cable_subscriptions.rb +21 -2
  13. data/lib/graphql/upgrader/member.rb +5 -0
  14. data/lib/graphql/version.rb +1 -1
  15. data/spec/dummy/Gemfile +1 -1
  16. data/spec/graphql/enum_type_spec.rb +5 -0
  17. data/spec/graphql/execution/execute_spec.rb +1 -1
  18. data/spec/graphql/execution/multiplex_spec.rb +28 -1
  19. data/spec/graphql/internal_representation/rewrite_spec.rb +2 -0
  20. data/spec/graphql/schema/argument_spec.rb +5 -1
  21. data/spec/graphql/schema/enum_spec.rb +7 -0
  22. data/spec/graphql/schema/enum_value_spec.rb +11 -0
  23. data/spec/graphql/schema/field_spec.rb +7 -0
  24. data/spec/graphql/schema/input_object_spec.rb +11 -0
  25. data/spec/graphql/schema/interface_spec.rb +6 -0
  26. data/spec/graphql/schema/object_spec.rb +6 -0
  27. data/spec/graphql/schema/relay_classic_mutation_spec.rb +71 -0
  28. data/spec/graphql/schema/resolver_spec.rb +72 -8
  29. data/spec/graphql/schema/scalar_spec.rb +6 -0
  30. data/spec/graphql/schema/union_spec.rb +7 -0
  31. data/spec/graphql/upgrader/member_spec.rb +67 -0
  32. data/spec/{graphql → integration/mongoid/graphql}/relay/mongo_relation_connection_spec.rb +0 -11
  33. data/spec/integration/mongoid/spec_helper.rb +2 -0
  34. data/spec/{support → integration/mongoid}/star_trek/data.rb +0 -0
  35. data/spec/{support → integration/mongoid}/star_trek/schema.rb +0 -0
  36. data/spec/{support/star_wars → integration/rails}/data.rb +1 -0
  37. data/spec/{support → integration/rails/generators}/base_generator_test.rb +0 -0
  38. data/spec/{generators → integration/rails/generators}/graphql/enum_generator_spec.rb +0 -0
  39. data/spec/{generators → integration/rails/generators}/graphql/install_generator_spec.rb +0 -0
  40. data/spec/{generators → integration/rails/generators}/graphql/interface_generator_spec.rb +0 -0
  41. data/spec/{generators → integration/rails/generators}/graphql/loader_generator_spec.rb +0 -0
  42. data/spec/{generators → integration/rails/generators}/graphql/mutation_generator_spec.rb +0 -0
  43. data/spec/{generators → integration/rails/generators}/graphql/object_generator_spec.rb +0 -0
  44. data/spec/{generators → integration/rails/generators}/graphql/union_generator_spec.rb +0 -0
  45. data/spec/{graphql → integration/rails/graphql}/input_object_type_spec.rb +0 -0
  46. data/spec/{graphql → integration/rails/graphql}/query/variables_spec.rb +0 -0
  47. data/spec/{graphql → integration/rails/graphql}/relay/array_connection_spec.rb +0 -0
  48. data/spec/{graphql → integration/rails/graphql}/relay/base_connection_spec.rb +0 -0
  49. data/spec/{graphql → integration/rails/graphql}/relay/connection_instrumentation_spec.rb +0 -0
  50. data/spec/{graphql → integration/rails/graphql}/relay/connection_resolve_spec.rb +0 -0
  51. data/spec/{graphql → integration/rails/graphql}/relay/connection_type_spec.rb +0 -0
  52. data/spec/{graphql → integration/rails/graphql}/relay/edge_spec.rb +0 -0
  53. data/spec/{graphql → integration/rails/graphql}/relay/mutation_spec.rb +0 -0
  54. data/spec/{graphql → integration/rails/graphql}/relay/node_spec.rb +0 -0
  55. data/spec/{graphql → integration/rails/graphql}/relay/page_info_spec.rb +0 -0
  56. data/spec/{graphql → integration/rails/graphql}/relay/range_add_spec.rb +0 -0
  57. data/spec/{graphql → integration/rails/graphql}/relay/relation_connection_spec.rb +0 -0
  58. data/spec/{graphql → integration/rails/graphql}/schema_spec.rb +0 -0
  59. data/spec/{graphql → integration/rails/graphql}/tracing/active_support_notifications_tracing_spec.rb +0 -0
  60. data/spec/integration/rails/spec_helper.rb +15 -0
  61. data/spec/spec_helper.rb +16 -39
  62. data/spec/support/jazz.rb +48 -0
  63. metadata +260 -243
  64. data/spec/rails_dependency_sanity_spec.rb +0 -14
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
- require "spec_helper"
3
-
4
- describe 'Rails dependency sanity check' do
5
- if rails_should_be_installed?
6
- it "should have rails installed" do
7
- assert defined?(Rails)
8
- end
9
- else
10
- it "should not have rails installed" do
11
- refute defined?(Rails)
12
- end
13
- end
14
- end