graphql-persisted_documents 0.1.0 → 0.2.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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +9 -114
  4. data/Rakefile +37 -2
  5. data/app/controllers/graphql/persisted_documents/application_controller.rb +6 -0
  6. data/app/controllers/graphql/persisted_documents/persisted_documents_controller.rb +36 -0
  7. data/config/routes.rb +3 -0
  8. data/lib/graphql/persisted_documents/engine.rb +11 -0
  9. data/lib/graphql/persisted_documents/persister.rb +7 -6
  10. data/lib/graphql/persisted_documents/version.rb +1 -1
  11. data/lib/graphql/persisted_documents.rb +1 -4
  12. data/lib/tasks/graphql/persisted_documents_tasks.rake +4 -0
  13. data/spec/controllers/persisted_documents_controller_spec.rb +85 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/config/manifest.js +5 -0
  16. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  17. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  20. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/jobs/application_job.rb +2 -0
  24. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  25. data/spec/dummy/app/models/application_record.rb +3 -0
  26. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  27. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  28. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +34 -0
  33. data/spec/dummy/bin/update +29 -0
  34. data/spec/dummy/config/application.rb +15 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/cable.yml +9 -0
  37. data/spec/dummy/config/database.yml +25 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +54 -0
  40. data/spec/dummy/config/environments/production.rb +86 -0
  41. data/spec/dummy/config/environments/test.rb +42 -0
  42. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  43. data/spec/dummy/config/initializers/assets.rb +11 -0
  44. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  45. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  46. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  47. data/spec/dummy/config/initializers/inflections.rb +16 -0
  48. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  49. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  50. data/spec/dummy/config/initializers/session_store.rb +3 -0
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/spec/dummy/config/locales/en.yml +23 -0
  53. data/spec/dummy/config/puma.rb +47 -0
  54. data/spec/dummy/config/routes.rb +3 -0
  55. data/spec/dummy/config/secrets.yml +22 -0
  56. data/spec/dummy/config/spring.rb +6 -0
  57. data/spec/dummy/config.ru +5 -0
  58. data/spec/dummy/db/test.sqlite3 +0 -0
  59. data/spec/dummy/log/test.log +203 -0
  60. data/spec/dummy/public/404.html +67 -0
  61. data/spec/dummy/public/422.html +67 -0
  62. data/spec/dummy/public/500.html +66 -0
  63. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  64. data/spec/dummy/public/apple-touch-icon.png +0 -0
  65. data/spec/dummy/public/favicon.ico +0 -0
  66. data/spec/rails_helper.rb +15 -0
  67. data/spec/spec_helper.rb +10 -0
  68. data/spec/support/test_schema.rb +11 -0
  69. metadata +147 -51
  70. data/.gitignore +0 -9
  71. data/CODE_OF_CONDUCT.md +0 -49
  72. data/Gemfile +0 -4
  73. data/LICENSE.txt +0 -21
  74. data/bin/console +0 -14
  75. data/bin/setup +0 -8
  76. data/graphql-persisted_documents.gemspec +0 -28
  77. data/lib/graphql/persisted_documents/rack.rb +0 -47
@@ -0,0 +1,203 @@
1
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
2
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)
3
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
4
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
5
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
6
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
7
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
8
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
9
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
10
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
11
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
12
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
13
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
14
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
15
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
16
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
17
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
18
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
19
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
20
+ Parameters: {"document"=>"query {"}
21
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
22
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
23
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
24
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
25
+ Parameters: {"document"=>"query {"}
26
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
27
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
28
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
29
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
30
+ Parameters: {"document"=>"query {"}
31
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
32
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
33
+ Parameters: {"document"=>"query { invalidField }"}
34
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
35
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
36
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
37
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
38
+ Parameters: {"document"=>"query {"}
39
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
40
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
41
+ Parameters: {"document"=>"query { invalidField }"}
42
+ Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)
43
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
44
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
45
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
46
+ Parameters: {"document"=>"query {"}
47
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
48
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
49
+ Parameters: {"document"=>"query { invalidField }"}
50
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
51
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
52
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
53
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
54
+ Parameters: {"document"=>"query {"}
55
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
56
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
57
+ Parameters: {"document"=>"query { invalidField }"}
58
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
60
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
61
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
62
+ Parameters: {"document"=>"query {"}
63
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
64
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
65
+ Parameters: {"document"=>"query { invalidField }"}
66
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
67
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
68
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
69
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
70
+ Parameters: {"document"=>"query {"}
71
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
72
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
73
+ Parameters: {"document"=>"query { invalidField }"}
74
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
75
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
76
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
77
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
78
+ Parameters: {"document"=>"query {"}
79
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
80
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
81
+ Parameters: {"document"=>"query { invalidField }"}
82
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
83
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
84
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
85
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
86
+ Parameters: {"document"=>"query {"}
87
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
88
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
89
+ Parameters: {"document"=>"query { invalidField }"}
90
+ Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
91
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
92
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
93
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
94
+ Parameters: {"document"=>"query {"}
95
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
96
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
97
+ Parameters: {"document"=>"query { invalidField }"}
98
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
99
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
100
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
101
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
102
+ Parameters: {"document"=>"query {"}
103
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
104
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
105
+ Parameters: {"document"=>"query { invalidField }"}
106
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
107
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
108
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
109
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
110
+ Parameters: {"document"=>"query {"}
111
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
112
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
113
+ Parameters: {"document"=>"query { invalidField }"}
114
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
115
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
116
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
117
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
118
+ Parameters: {"document"=>"query {"}
119
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
120
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
121
+ Parameters: {"document"=>"query { invalidField }"}
122
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
123
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
124
+ Parameters: {"document"=>"query { invalidField }"}
125
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
126
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
127
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
128
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
129
+ Parameters: {"document"=>"query {"}
130
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
131
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
132
+ Parameters: {"document"=>"query { invalidField }"}
133
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
134
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
135
+ Parameters: {"document"=>"query { invalidField }"}
136
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
137
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
138
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
139
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
140
+ Parameters: {"document"=>"query {"}
141
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
142
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
143
+ Parameters: {"document"=>"query { invalidField }"}
144
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
145
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
146
+ Parameters: {"document"=>"query { validField }"}
147
+ Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
148
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
149
+ Parameters: {"document"=>"query { validField }"}
150
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
151
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
152
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
153
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
154
+ Parameters: {"document"=>"query {"}
155
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
156
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
157
+ Parameters: {"document"=>"query { invalidField }"}
158
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
159
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
160
+ Parameters: {"document"=>"query { validField }"}
161
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
162
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
163
+ Parameters: {"document"=>"query { validField }"}
164
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
165
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
166
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
167
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
168
+ Parameters: {"document"=>"query {"}
169
+ Completed 422 Unprocessable Entity in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
170
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
171
+ Parameters: {"document"=>"query { invalidField }"}
172
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
173
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
174
+ Parameters: {"document"=>"query { validField }"}
175
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
176
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
177
+ Parameters: {"document"=>"query { validField }"}
178
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
179
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
180
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
181
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
182
+ Parameters: {"document"=>"query {"}
183
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
184
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
185
+ Parameters: {"document"=>"query { invalidField }"}
186
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
187
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
188
+ Parameters: {"document"=>"query { validField }"}
189
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
190
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
191
+ Parameters: {"document"=>"query { validField }"}
192
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
193
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
194
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
195
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
196
+ Parameters: {"document"=>"query {"}
197
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
198
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
199
+ Parameters: {"document"=>"query { invalidField }"}
200
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
201
+ Processing by Graphql::PersistedDocuments::PersistedDocumentsController#persist as HTML
202
+ Parameters: {"document"=>"query { validField }"}
203
+ Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</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/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</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/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
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
File without changes
@@ -0,0 +1,15 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+ require 'spec_helper'
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'graphql'
6
+
7
+ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
8
+
9
+ # Requires supporting ruby files with custom matchers and macros, etc,
10
+ # in spec/support/ and its subdirectories.
11
+ Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
12
+
13
+ RSpec.configure do |config|
14
+ config.infer_spec_type_from_file_location!
15
+ end
@@ -0,0 +1,10 @@
1
+ RSpec.configure do |config|
2
+ config.expect_with :rspec do |expectations|
3
+ expectations.syntax = :expect
4
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
5
+ end
6
+
7
+ config.mock_with :rspec do |mocks|
8
+ mocks.verify_partial_doubles = true
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ QueryType = GraphQL::ObjectType.define do
2
+ name "Query"
3
+ description "Query root of the system"
4
+ field :validField, types.String do
5
+ resolve ->(_, _, _) { 'testValue' }
6
+ end
7
+ end
8
+
9
+ TestSchema = GraphQL::Schema.new(
10
+ query: QueryType
11
+ )