graphql 1.9.0.pre3 → 1.9.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graphql/analysis/ast/visitor.rb +5 -0
  3. data/lib/graphql/execution/interpreter/hash_response.rb +1 -1
  4. data/lib/graphql/execution/interpreter/resolve.rb +2 -0
  5. data/lib/graphql/execution/interpreter/runtime.rb +11 -2
  6. data/lib/graphql/execution/lookahead.rb +1 -1
  7. data/lib/graphql/internal_representation/rewrite.rb +5 -5
  8. data/lib/graphql/language/parser.rb +1 -1
  9. data/lib/graphql/language/parser.y +1 -1
  10. data/lib/graphql/language/printer.rb +1 -1
  11. data/lib/graphql/language/visitor.rb +1 -1
  12. data/lib/graphql/query.rb +1 -1
  13. data/lib/graphql/query/arguments.rb +1 -1
  14. data/lib/graphql/query/arguments_cache.rb +1 -1
  15. data/lib/graphql/query/validation_pipeline.rb +3 -3
  16. data/lib/graphql/schema.rb +1 -1
  17. data/lib/graphql/schema/field.rb +25 -11
  18. data/lib/graphql/schema/field/connection_extension.rb +1 -1
  19. data/lib/graphql/schema/field_extension.rb +11 -3
  20. data/lib/graphql/schema/mutation.rb +1 -1
  21. data/lib/graphql/static_validation/base_visitor.rb +1 -1
  22. data/lib/graphql/static_validation/definition_dependencies.rb +3 -3
  23. data/lib/graphql/static_validation/literal_validator.rb +1 -1
  24. data/lib/graphql/static_validation/rules/argument_literals_are_compatible.rb +1 -1
  25. data/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb +1 -1
  26. data/lib/graphql/static_validation/rules/fields_will_merge.rb +1 -1
  27. data/lib/graphql/static_validation/validator.rb +1 -1
  28. data/lib/graphql/types/relay/node_field.rb +15 -0
  29. data/lib/graphql/types/relay/nodes_field.rb +17 -1
  30. data/lib/graphql/version.rb +1 -1
  31. data/spec/graphql/analysis/ast_spec.rb +12 -0
  32. data/spec/graphql/execution/interpreter_spec.rb +83 -0
  33. data/spec/graphql/schema/field_extension_spec.rb +26 -4
  34. data/spec/graphql/static_validation/rules/argument_literals_are_compatible_spec.rb +3 -3
  35. data/spec/integration/rails/graphql/relay/mutation_spec.rb +48 -0
  36. data/spec/integration/tmp/app/graphql/types/family_type.rb +9 -0
  37. metadata +4 -98
  38. data/spec/integration/tmp/app/graphql/types/bird_type.rb +0 -7
  39. data/spec/integration/tmp/dummy/Gemfile +0 -45
  40. data/spec/integration/tmp/dummy/README.rdoc +0 -28
  41. data/spec/integration/tmp/dummy/Rakefile +0 -6
  42. data/spec/integration/tmp/dummy/app/assets/javascripts/application.js +0 -16
  43. data/spec/integration/tmp/dummy/app/assets/stylesheets/application.css +0 -15
  44. data/spec/integration/tmp/dummy/app/controllers/application_controller.rb +0 -5
  45. data/spec/integration/tmp/dummy/app/controllers/graphql_controller.rb +0 -43
  46. data/spec/integration/tmp/dummy/app/graphql/dummy_schema.rb +0 -34
  47. data/spec/integration/tmp/dummy/app/graphql/types/base_enum.rb +0 -4
  48. data/spec/integration/tmp/dummy/app/graphql/types/base_input_object.rb +0 -4
  49. data/spec/integration/tmp/dummy/app/graphql/types/base_interface.rb +0 -5
  50. data/spec/integration/tmp/dummy/app/graphql/types/base_object.rb +0 -4
  51. data/spec/integration/tmp/dummy/app/graphql/types/base_scalar.rb +0 -4
  52. data/spec/integration/tmp/dummy/app/graphql/types/base_union.rb +0 -4
  53. data/spec/integration/tmp/dummy/app/graphql/types/mutation_type.rb +0 -10
  54. data/spec/integration/tmp/dummy/app/graphql/types/query_type.rb +0 -15
  55. data/spec/integration/tmp/dummy/app/helpers/application_helper.rb +0 -2
  56. data/spec/integration/tmp/dummy/app/views/layouts/application.html.erb +0 -14
  57. data/spec/integration/tmp/dummy/bin/bundle +0 -3
  58. data/spec/integration/tmp/dummy/bin/rails +0 -4
  59. data/spec/integration/tmp/dummy/bin/rake +0 -4
  60. data/spec/integration/tmp/dummy/bin/setup +0 -29
  61. data/spec/integration/tmp/dummy/config.ru +0 -4
  62. data/spec/integration/tmp/dummy/config/application.rb +0 -32
  63. data/spec/integration/tmp/dummy/config/boot.rb +0 -3
  64. data/spec/integration/tmp/dummy/config/environment.rb +0 -5
  65. data/spec/integration/tmp/dummy/config/environments/development.rb +0 -38
  66. data/spec/integration/tmp/dummy/config/environments/production.rb +0 -76
  67. data/spec/integration/tmp/dummy/config/environments/test.rb +0 -42
  68. data/spec/integration/tmp/dummy/config/initializers/assets.rb +0 -11
  69. data/spec/integration/tmp/dummy/config/initializers/backtrace_silencers.rb +0 -7
  70. data/spec/integration/tmp/dummy/config/initializers/cookies_serializer.rb +0 -3
  71. data/spec/integration/tmp/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  72. data/spec/integration/tmp/dummy/config/initializers/inflections.rb +0 -16
  73. data/spec/integration/tmp/dummy/config/initializers/mime_types.rb +0 -4
  74. data/spec/integration/tmp/dummy/config/initializers/session_store.rb +0 -3
  75. data/spec/integration/tmp/dummy/config/initializers/to_time_preserves_timezone.rb +0 -10
  76. data/spec/integration/tmp/dummy/config/initializers/wrap_parameters.rb +0 -9
  77. data/spec/integration/tmp/dummy/config/locales/en.yml +0 -23
  78. data/spec/integration/tmp/dummy/config/routes.rb +0 -61
  79. data/spec/integration/tmp/dummy/config/secrets.yml +0 -22
  80. data/spec/integration/tmp/dummy/db/seeds.rb +0 -7
  81. data/spec/integration/tmp/dummy/public/404.html +0 -67
  82. data/spec/integration/tmp/dummy/public/422.html +0 -67
  83. data/spec/integration/tmp/dummy/public/500.html +0 -66
  84. data/spec/integration/tmp/dummy/public/favicon.ico +0 -0
  85. data/spec/integration/tmp/dummy/public/robots.txt +0 -5
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
File without changes
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-agent: *
5
- # Disallow: /