graphql 1.8.12 → 1.8.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/lib/graphql/language/lexer.rb +14 -14
  3. data/lib/graphql/language/lexer.rl +2 -2
  4. data/lib/graphql/version.rb +1 -1
  5. data/spec/graphql/language/lexer_spec.rb +8 -0
  6. data/spec/integration/tmp/app/graphql/types/bird_type.rb +7 -0
  7. data/spec/integration/tmp/dummy/Gemfile +34 -29
  8. data/spec/integration/tmp/dummy/README.rdoc +15 -248
  9. data/spec/integration/tmp/dummy/Rakefile +1 -2
  10. data/spec/integration/tmp/dummy/app/assets/javascripts/application.js +5 -4
  11. data/spec/integration/tmp/dummy/app/assets/stylesheets/application.css +6 -4
  12. data/spec/integration/tmp/dummy/app/controllers/application_controller.rb +3 -1
  13. data/spec/integration/tmp/dummy/app/views/layouts/application.html.erb +2 -2
  14. data/spec/integration/tmp/dummy/bin/bundle +3 -0
  15. data/spec/integration/tmp/dummy/bin/rails +4 -0
  16. data/spec/integration/tmp/dummy/bin/rake +4 -0
  17. data/spec/integration/tmp/dummy/bin/setup +29 -0
  18. data/spec/integration/tmp/dummy/config.ru +2 -2
  19. data/spec/integration/tmp/dummy/config/application.rb +7 -43
  20. data/spec/integration/tmp/dummy/config/boot.rb +1 -4
  21. data/spec/integration/tmp/dummy/config/environment.rb +3 -3
  22. data/spec/integration/tmp/dummy/config/environments/development.rb +20 -13
  23. data/spec/integration/tmp/dummy/config/environments/production.rb +43 -31
  24. data/spec/integration/tmp/dummy/config/environments/test.rb +19 -12
  25. data/spec/integration/tmp/dummy/config/initializers/assets.rb +11 -0
  26. data/spec/integration/tmp/dummy/config/initializers/cookies_serializer.rb +3 -0
  27. data/spec/integration/tmp/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  28. data/spec/integration/tmp/dummy/config/initializers/inflections.rb +6 -5
  29. data/spec/integration/tmp/dummy/config/initializers/mime_types.rb +0 -1
  30. data/spec/integration/tmp/dummy/config/initializers/session_store.rb +1 -6
  31. data/spec/integration/tmp/dummy/config/initializers/to_time_preserves_timezone.rb +10 -0
  32. data/spec/integration/tmp/dummy/config/initializers/wrap_parameters.rb +2 -3
  33. data/spec/integration/tmp/dummy/config/locales/en.yml +20 -2
  34. data/spec/integration/tmp/dummy/config/routes.rb +22 -26
  35. data/spec/integration/tmp/dummy/config/secrets.yml +22 -0
  36. data/spec/integration/tmp/dummy/public/404.html +54 -13
  37. data/spec/integration/tmp/dummy/public/422.html +54 -13
  38. data/spec/integration/tmp/dummy/public/500.html +53 -12
  39. data/spec/integration/tmp/dummy/public/robots.txt +2 -2
  40. metadata +23 -30
  41. data/spec/integration/tmp/app/graphql/types/winged_creature_type.rb +0 -4
  42. data/spec/integration/tmp/dummy/app/assets/images/rails.png +0 -0
  43. data/spec/integration/tmp/dummy/config/initializers/secret_token.rb +0 -7
  44. data/spec/integration/tmp/dummy/doc/README_FOR_APP +0 -2
  45. data/spec/integration/tmp/dummy/public/index.html +0 -241
  46. data/spec/integration/tmp/dummy/script/rails +0 -6
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.8.12
4
+ version: 1.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-03 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.12'
69
- - !ruby/object:Gem::Dependency
70
- name: guard-bundler
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2.1'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2.1'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: guard-minitest
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -916,11 +902,10 @@ files:
916
902
  - spec/integration/rails/graphql/schema_spec.rb
917
903
  - spec/integration/rails/graphql/tracing/active_support_notifications_tracing_spec.rb
918
904
  - spec/integration/rails/spec_helper.rb
919
- - spec/integration/tmp/app/graphql/types/winged_creature_type.rb
905
+ - spec/integration/tmp/app/graphql/types/bird_type.rb
920
906
  - spec/integration/tmp/dummy/Gemfile
921
907
  - spec/integration/tmp/dummy/README.rdoc
922
908
  - spec/integration/tmp/dummy/Rakefile
923
- - spec/integration/tmp/dummy/app/assets/images/rails.png
924
909
  - spec/integration/tmp/dummy/app/assets/javascripts/application.js
925
910
  - spec/integration/tmp/dummy/app/assets/stylesheets/application.css
926
911
  - spec/integration/tmp/dummy/app/controllers/application_controller.rb
@@ -936,6 +921,10 @@ files:
936
921
  - spec/integration/tmp/dummy/app/graphql/types/query_type.rb
937
922
  - spec/integration/tmp/dummy/app/helpers/application_helper.rb
938
923
  - spec/integration/tmp/dummy/app/views/layouts/application.html.erb
924
+ - spec/integration/tmp/dummy/bin/bundle
925
+ - spec/integration/tmp/dummy/bin/rails
926
+ - spec/integration/tmp/dummy/bin/rake
927
+ - spec/integration/tmp/dummy/bin/setup
939
928
  - spec/integration/tmp/dummy/config.ru
940
929
  - spec/integration/tmp/dummy/config/application.rb
941
930
  - spec/integration/tmp/dummy/config/boot.rb
@@ -943,23 +932,24 @@ files:
943
932
  - spec/integration/tmp/dummy/config/environments/development.rb
944
933
  - spec/integration/tmp/dummy/config/environments/production.rb
945
934
  - spec/integration/tmp/dummy/config/environments/test.rb
935
+ - spec/integration/tmp/dummy/config/initializers/assets.rb
946
936
  - spec/integration/tmp/dummy/config/initializers/backtrace_silencers.rb
937
+ - spec/integration/tmp/dummy/config/initializers/cookies_serializer.rb
938
+ - spec/integration/tmp/dummy/config/initializers/filter_parameter_logging.rb
947
939
  - spec/integration/tmp/dummy/config/initializers/inflections.rb
948
940
  - spec/integration/tmp/dummy/config/initializers/mime_types.rb
949
- - spec/integration/tmp/dummy/config/initializers/secret_token.rb
950
941
  - spec/integration/tmp/dummy/config/initializers/session_store.rb
942
+ - spec/integration/tmp/dummy/config/initializers/to_time_preserves_timezone.rb
951
943
  - spec/integration/tmp/dummy/config/initializers/wrap_parameters.rb
952
944
  - spec/integration/tmp/dummy/config/locales/en.yml
953
945
  - spec/integration/tmp/dummy/config/routes.rb
946
+ - spec/integration/tmp/dummy/config/secrets.yml
954
947
  - spec/integration/tmp/dummy/db/seeds.rb
955
- - spec/integration/tmp/dummy/doc/README_FOR_APP
956
948
  - spec/integration/tmp/dummy/public/404.html
957
949
  - spec/integration/tmp/dummy/public/422.html
958
950
  - spec/integration/tmp/dummy/public/500.html
959
951
  - spec/integration/tmp/dummy/public/favicon.ico
960
- - spec/integration/tmp/dummy/public/index.html
961
952
  - spec/integration/tmp/dummy/public/robots.txt
962
- - spec/integration/tmp/dummy/script/rails
963
953
  - spec/spec_helper.rb
964
954
  - spec/support/dummy/data.rb
965
955
  - spec/support/dummy/schema.rb
@@ -995,8 +985,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
995
985
  - !ruby/object:Gem::Version
996
986
  version: '0'
997
987
  requirements: []
998
- rubyforge_project:
999
- rubygems_version: 2.6.13
988
+ rubygems_version: 3.0.2
1000
989
  signing_key:
1001
990
  specification_version: 4
1002
991
  summary: A GraphQL language and runtime for Ruby
@@ -1265,8 +1254,7 @@ test_files:
1265
1254
  - spec/integration/rails/graphql/schema_spec.rb
1266
1255
  - spec/integration/rails/graphql/tracing/active_support_notifications_tracing_spec.rb
1267
1256
  - spec/integration/rails/spec_helper.rb
1268
- - spec/integration/tmp/app/graphql/types/winged_creature_type.rb
1269
- - spec/integration/tmp/dummy/app/assets/images/rails.png
1257
+ - spec/integration/tmp/app/graphql/types/bird_type.rb
1270
1258
  - spec/integration/tmp/dummy/app/assets/javascripts/application.js
1271
1259
  - spec/integration/tmp/dummy/app/assets/stylesheets/application.css
1272
1260
  - spec/integration/tmp/dummy/app/controllers/application_controller.rb
@@ -1282,33 +1270,38 @@ test_files:
1282
1270
  - spec/integration/tmp/dummy/app/graphql/types/query_type.rb
1283
1271
  - spec/integration/tmp/dummy/app/helpers/application_helper.rb
1284
1272
  - spec/integration/tmp/dummy/app/views/layouts/application.html.erb
1273
+ - spec/integration/tmp/dummy/bin/bundle
1274
+ - spec/integration/tmp/dummy/bin/rails
1275
+ - spec/integration/tmp/dummy/bin/rake
1276
+ - spec/integration/tmp/dummy/bin/setup
1285
1277
  - spec/integration/tmp/dummy/config/application.rb
1286
1278
  - spec/integration/tmp/dummy/config/boot.rb
1287
1279
  - spec/integration/tmp/dummy/config/environment.rb
1288
1280
  - spec/integration/tmp/dummy/config/environments/development.rb
1289
1281
  - spec/integration/tmp/dummy/config/environments/production.rb
1290
1282
  - spec/integration/tmp/dummy/config/environments/test.rb
1283
+ - spec/integration/tmp/dummy/config/initializers/assets.rb
1291
1284
  - spec/integration/tmp/dummy/config/initializers/backtrace_silencers.rb
1285
+ - spec/integration/tmp/dummy/config/initializers/cookies_serializer.rb
1286
+ - spec/integration/tmp/dummy/config/initializers/filter_parameter_logging.rb
1292
1287
  - spec/integration/tmp/dummy/config/initializers/inflections.rb
1293
1288
  - spec/integration/tmp/dummy/config/initializers/mime_types.rb
1294
- - spec/integration/tmp/dummy/config/initializers/secret_token.rb
1295
1289
  - spec/integration/tmp/dummy/config/initializers/session_store.rb
1290
+ - spec/integration/tmp/dummy/config/initializers/to_time_preserves_timezone.rb
1296
1291
  - spec/integration/tmp/dummy/config/initializers/wrap_parameters.rb
1297
1292
  - spec/integration/tmp/dummy/config/locales/en.yml
1298
1293
  - spec/integration/tmp/dummy/config/routes.rb
1294
+ - spec/integration/tmp/dummy/config/secrets.yml
1299
1295
  - spec/integration/tmp/dummy/config.ru
1300
1296
  - spec/integration/tmp/dummy/db/seeds.rb
1301
- - spec/integration/tmp/dummy/doc/README_FOR_APP
1302
1297
  - spec/integration/tmp/dummy/Gemfile
1303
1298
  - spec/integration/tmp/dummy/public/404.html
1304
1299
  - spec/integration/tmp/dummy/public/422.html
1305
1300
  - spec/integration/tmp/dummy/public/500.html
1306
1301
  - spec/integration/tmp/dummy/public/favicon.ico
1307
- - spec/integration/tmp/dummy/public/index.html
1308
1302
  - spec/integration/tmp/dummy/public/robots.txt
1309
1303
  - spec/integration/tmp/dummy/Rakefile
1310
1304
  - spec/integration/tmp/dummy/README.rdoc
1311
- - spec/integration/tmp/dummy/script/rails
1312
1305
  - spec/spec_helper.rb
1313
1306
  - spec/support/dummy/data.rb
1314
1307
  - spec/support/dummy/schema.rb
@@ -1,4 +0,0 @@
1
- module Types
2
- class WingedCreatureType < Types::BaseUnion
3
- end
4
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'c4a972356f922ccd37dbec2442ac548c40297938711b972af6ac9ca10b244ef79e046cc3e03b20118fc69ba60af41d1ef7b78933126e973db41da54d095bd851'
@@ -1,2 +0,0 @@
1
- Use this README file to introduce your application and point to useful places in the API for learning more.
2
- Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
@@ -1,241 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Ruby on Rails: Welcome aboard</title>
5
- <style type="text/css" media="screen">
6
- body {
7
- margin: 0;
8
- margin-bottom: 25px;
9
- padding: 0;
10
- background-color: #f0f0f0;
11
- font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
12
- font-size: 13px;
13
- color: #333;
14
- }
15
-
16
- h1 {
17
- font-size: 28px;
18
- color: #000;
19
- }
20
-
21
- a {color: #03c}
22
- a:hover {
23
- background-color: #03c;
24
- color: white;
25
- text-decoration: none;
26
- }
27
-
28
-
29
- #page {
30
- background-color: #f0f0f0;
31
- width: 750px;
32
- margin: 0;
33
- margin-left: auto;
34
- margin-right: auto;
35
- }
36
-
37
- #content {
38
- float: left;
39
- background-color: white;
40
- border: 3px solid #aaa;
41
- border-top: none;
42
- padding: 25px;
43
- width: 500px;
44
- }
45
-
46
- #sidebar {
47
- float: right;
48
- width: 175px;
49
- }
50
-
51
- #footer {
52
- clear: both;
53
- }
54
-
55
- #header, #about, #getting-started {
56
- padding-left: 75px;
57
- padding-right: 30px;
58
- }
59
-
60
-
61
- #header {
62
- background-image: url("assets/rails.png");
63
- background-repeat: no-repeat;
64
- background-position: top left;
65
- height: 64px;
66
- }
67
- #header h1, #header h2 {margin: 0}
68
- #header h2 {
69
- color: #888;
70
- font-weight: normal;
71
- font-size: 16px;
72
- }
73
-
74
-
75
- #about h3 {
76
- margin: 0;
77
- margin-bottom: 10px;
78
- font-size: 14px;
79
- }
80
-
81
- #about-content {
82
- background-color: #ffd;
83
- border: 1px solid #fc0;
84
- margin-left: -55px;
85
- margin-right: -10px;
86
- }
87
- #about-content table {
88
- margin-top: 10px;
89
- margin-bottom: 10px;
90
- font-size: 11px;
91
- border-collapse: collapse;
92
- }
93
- #about-content td {
94
- padding: 10px;
95
- padding-top: 3px;
96
- padding-bottom: 3px;
97
- }
98
- #about-content td.name {color: #555}
99
- #about-content td.value {color: #000}
100
-
101
- #about-content ul {
102
- padding: 0;
103
- list-style-type: none;
104
- }
105
-
106
- #about-content.failure {
107
- background-color: #fcc;
108
- border: 1px solid #f00;
109
- }
110
- #about-content.failure p {
111
- margin: 0;
112
- padding: 10px;
113
- }
114
-
115
-
116
- #getting-started {
117
- border-top: 1px solid #ccc;
118
- margin-top: 25px;
119
- padding-top: 15px;
120
- }
121
- #getting-started h1 {
122
- margin: 0;
123
- font-size: 20px;
124
- }
125
- #getting-started h2 {
126
- margin: 0;
127
- font-size: 14px;
128
- font-weight: normal;
129
- color: #333;
130
- margin-bottom: 25px;
131
- }
132
- #getting-started ol {
133
- margin-left: 0;
134
- padding-left: 0;
135
- }
136
- #getting-started li {
137
- font-size: 18px;
138
- color: #888;
139
- margin-bottom: 25px;
140
- }
141
- #getting-started li h2 {
142
- margin: 0;
143
- font-weight: normal;
144
- font-size: 18px;
145
- color: #333;
146
- }
147
- #getting-started li p {
148
- color: #555;
149
- font-size: 13px;
150
- }
151
-
152
-
153
- #sidebar ul {
154
- margin-left: 0;
155
- padding-left: 0;
156
- }
157
- #sidebar ul h3 {
158
- margin-top: 25px;
159
- font-size: 16px;
160
- padding-bottom: 10px;
161
- border-bottom: 1px solid #ccc;
162
- }
163
- #sidebar li {
164
- list-style-type: none;
165
- }
166
- #sidebar ul.links li {
167
- margin-bottom: 5px;
168
- }
169
-
170
- .filename {
171
- font-style: italic;
172
- }
173
- </style>
174
- <script type="text/javascript">
175
- function about() {
176
- info = document.getElementById('about-content');
177
- if (window.XMLHttpRequest)
178
- { xhr = new XMLHttpRequest(); }
179
- else
180
- { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
181
- xhr.open("GET","rails/info/properties",false);
182
- xhr.send("");
183
- info.innerHTML = xhr.responseText;
184
- info.style.display = 'block'
185
- }
186
- </script>
187
- </head>
188
- <body>
189
- <div id="page">
190
- <div id="sidebar">
191
- <ul id="sidebar-items">
192
- <li>
193
- <h3>Browse the documentation</h3>
194
- <ul class="links">
195
- <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
196
- <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
197
- <li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
198
- <li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
199
- </ul>
200
- </li>
201
- </ul>
202
- </div>
203
-
204
- <div id="content">
205
- <div id="header">
206
- <h1>Welcome aboard</h1>
207
- <h2>You&rsquo;re riding Ruby on Rails!</h2>
208
- </div>
209
-
210
- <div id="about">
211
- <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
212
- <div id="about-content" style="display: none"></div>
213
- </div>
214
-
215
- <div id="getting-started">
216
- <h1>Getting started</h1>
217
- <h2>Here&rsquo;s how to get rolling:</h2>
218
-
219
- <ol>
220
- <li>
221
- <h2>Use <code>rails generate</code> to create your models and controllers</h2>
222
- <p>To see all available options, run it without parameters.</p>
223
- </li>
224
-
225
- <li>
226
- <h2>Set up a default route and remove <span class="filename">public/index.html</span></h2>
227
- <p>Routes are set up in <span class="filename">config/routes.rb</span>.</p>
228
- </li>
229
-
230
- <li>
231
- <h2>Create your database</h2>
232
- <p>Run <code>rake db:create</code> to create your database. If you're not using SQLite (the default), edit <span class="filename">config/database.yml</span> with your username and password.</p>
233
- </li>
234
- </ol>
235
- </div>
236
- </div>
237
-
238
- <div id="footer">&nbsp;</div>
239
- </div>
240
- </body>
241
- </html>
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'