gqli 0.6.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -3
  3. data/CHANGELOG.md +17 -0
  4. data/Gemfile.lock +103 -82
  5. data/README.md +0 -5
  6. data/coverage/.last_run.json +1 -1
  7. data/coverage/.resultset.json +1774 -1205
  8. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  9. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  10. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  11. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  12. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  13. data/coverage/assets/0.12.3/application.css +1 -0
  14. data/coverage/assets/0.12.3/application.js +7 -0
  15. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/border.png +0 -0
  16. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/controls.png +0 -0
  17. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/loading.gif +0 -0
  18. data/coverage/assets/{0.10.2 → 0.12.3}/colorbox/loading_background.png +0 -0
  19. data/coverage/assets/{0.10.2 → 0.12.3}/favicon_green.png +0 -0
  20. data/coverage/assets/{0.10.2 → 0.12.3}/favicon_red.png +0 -0
  21. data/coverage/assets/{0.10.2 → 0.12.3}/favicon_yellow.png +0 -0
  22. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  23. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  24. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  25. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  27. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  28. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  29. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  30. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_222222_256x240.png +0 -0
  31. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_2e83ff_256x240.png +0 -0
  32. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_454545_256x240.png +0 -0
  33. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_888888_256x240.png +0 -0
  34. data/coverage/assets/{0.10.2/smoothness → 0.12.3}/images/ui-icons_cd0a0a_256x240.png +0 -0
  35. data/coverage/assets/{0.10.2 → 0.12.3}/loading.gif +0 -0
  36. data/coverage/assets/{0.10.2 → 0.12.3}/magnify.png +0 -0
  37. data/coverage/index.html +19376 -7403
  38. data/doc/GQLi/Base.html +11 -11
  39. data/doc/GQLi/Client.html +175 -41
  40. data/doc/GQLi/Contentful.html +13 -11
  41. data/doc/GQLi/DSL.html +298 -30
  42. data/doc/GQLi/EnumValue.html +8 -8
  43. data/doc/GQLi/Fragment.html +8 -8
  44. data/doc/GQLi/Github.html +6 -6
  45. data/doc/GQLi/Introspection.html +46 -48
  46. data/doc/GQLi/Mutation.html +390 -0
  47. data/doc/GQLi/Node.html +8 -8
  48. data/doc/GQLi/Query.html +6 -6
  49. data/doc/GQLi/Response.html +87 -13
  50. data/doc/GQLi/Subscription.html +390 -0
  51. data/doc/GQLi/Validation.html +20 -20
  52. data/doc/GQLi.html +9 -9
  53. data/doc/_index.html +37 -7
  54. data/doc/class_list.html +3 -3
  55. data/doc/css/style.css +3 -2
  56. data/doc/file.CHANGELOG.html +43 -13
  57. data/doc/file.LICENSE.html +6 -6
  58. data/doc/file.README.html +31 -84
  59. data/doc/file_list.html +2 -2
  60. data/doc/frames.html +2 -2
  61. data/doc/index.html +31 -84
  62. data/doc/js/app.js +25 -3
  63. data/doc/method_list.html +147 -43
  64. data/doc/top-level-namespace.html +6 -6
  65. data/gqli.gemspec +5 -6
  66. data/lib/gqli/client.rb +25 -5
  67. data/lib/gqli/clients/contentful.rb +3 -2
  68. data/lib/gqli/dsl.rb +16 -1
  69. data/lib/gqli/introspection.rb +1 -3
  70. data/lib/gqli/mutation.rb +27 -0
  71. data/lib/gqli/response.rb +15 -2
  72. data/lib/gqli/subscription.rb +1 -1
  73. data/lib/gqli/validation.rb +15 -12
  74. data/lib/gqli/version.rb +1 -1
  75. data/spec/fixtures/vcr_cassettes/client.yml +98 -27
  76. data/spec/fixtures/vcr_cassettes/mutation_client.yml +4364 -0
  77. data/spec/lib/gqli/client_spec.rb +53 -0
  78. data/spec/lib/gqli/dsl_spec.rb +72 -2
  79. data/spec/lib/gqli/introspection_spec.rb +54 -0
  80. data/spec/lib/gqli/response_spec.rb +51 -0
  81. metadata +64 -73
  82. data/coverage/assets/0.10.2/application.css +0 -799
  83. data/coverage/assets/0.10.2/application.js +0 -1707
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f9f3f5a26b24da043c5cf373457ad78ac32ccf2171db0aca3aa2152e594fa76
4
- data.tar.gz: 0ada10622897729a6be228f68dc1af8095eeb22609d364b1a853f816d10796b0
3
+ metadata.gz: d1afaecf31c5361df6cfafdbffde72c46f1c22b55da3c25d417028f52ec08c44
4
+ data.tar.gz: 63f3b0af873c950232246fb2ecc08bff63ce06153967beed5dc90473dac0a941
5
5
  SHA512:
6
- metadata.gz: 2e36d05568c87653075775dd6b75b90e869f00d62bb945b9f9c33fd41706753a39cd2991df346e0c50a02abf850ec6c8ad4974fdca623671bbb4e90d3555fe56
7
- data.tar.gz: 89cfb285c28747cfd19274e2a13aed0e8d661e4a2f946e10e4a15b10e4c98c5e92708d0179fe698cfb4a49e827e409ac05c3cfa26cbf585e338c79fc59cfc5d0
6
+ metadata.gz: 0e8a02727194b5e3b313205f7a31e4baa7055594df4e209a02a24ed347c9ce930ca6da4de28b9109e52f84af7587b2e722b0ae0aa5a1cf8744d45b3c3287211e
7
+ data.tar.gz: b20061f87dc27e6bb526f6440d98df9c6b8739e0d8fa95cd2b9c198b763a084598c904219608744e8eff6b56a13f61b5dbd0d3eeea778b762f103b3b4c9ff817
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5.1
4
- - 2.4.1
5
- - 2.3.1
3
+ - 2.6.3
4
+ - 2.5.5
5
+ - 2.4.6
6
6
  notifications:
7
7
  slack:
8
8
  secure: Zr3mKCiTb0vaTD4MPtTG8BbyYyErFuoxioM25QyrqePKVkDFeZC1MtGmg5klQQrJiWTKZPa/zB8NAHYkoUxg9I+z15JK0hYfz9KRubEpCrXCaqTC9Vzq88kJ3LN8YsTyBF66izaBH2KLsOfaJRxwplFzZqgpg4GG2DUBPtrGtes=
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.2.0
6
+ * Relax http.rb dependency (support version < 6). [#19](https://github.com/contentful-labs/gqli.rb/pull/19)
7
+ * Bump hashie dependency. [#18](https://github.com/contentful-labs/gqli.rb/pull/18)
8
+
9
+ ## v1.1.0
10
+ * Added support for timeout management. [#11](https://github.com/contentful-labs/gqli.rb/pull/11)
11
+ * Added support for error response handling. [#13](https://github.com/contentful-labs/gqli.rb/pull/13)
12
+
13
+ ## v1.0.0
14
+ ### Added
15
+ * Added support for Mutations.
16
+ * Added validations for Mutations and Subscriptions.
17
+
18
+ ## v0.6.1
19
+ ### Changed
20
+ * Changed Introspection query to no longer use `on...` for directive locations and use `locations` instead.
21
+
5
22
  ## v0.6.0
6
23
  * Add Subscription DSL support. (by @hschne) [#5](https://github.com/contentful-labs/gqli.rb/pull/5)
7
24
  * Add aliases support.
data/Gemfile.lock CHANGED
@@ -1,39 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gqli (0.6.0)
5
- hashie (~> 3.0)
6
- http (> 0.8, < 3.0)
4
+ gqli (1.2.0)
5
+ hashie (> 3.0)
6
+ http (> 0.8, < 6.0)
7
7
  multi_json (~> 1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.5.2)
13
- public_suffix (>= 2.0.2, < 4.0)
14
- ast (2.4.0)
15
- coderay (1.1.2)
16
- coveralls (0.8.22)
17
- json (>= 1.8, < 3)
18
- simplecov (~> 0.16.1)
19
- term-ansicolor (~> 1.3)
20
- thor (~> 0.19.4)
21
- tins (~> 1.6)
22
- crack (0.4.3)
23
- safe_yaml (~> 1.0.0)
24
- diff-lcs (1.3)
25
- docile (1.3.1)
26
- domain_name (0.5.20180417)
12
+ addressable (2.8.0)
13
+ public_suffix (>= 2.0.2, < 5.0)
14
+ ast (2.4.2)
15
+ coderay (1.1.3)
16
+ coveralls (0.7.1)
17
+ multi_json (~> 1.3)
18
+ rest-client
19
+ simplecov (>= 0.7)
20
+ term-ansicolor
21
+ thor
22
+ crack (0.4.5)
23
+ rexml
24
+ diff-lcs (1.5.0)
25
+ docile (1.4.0)
26
+ domain_name (0.5.20190701)
27
27
  unf (>= 0.0.5, < 1.0.0)
28
- ffi (1.9.25)
29
- formatador (0.2.5)
30
- guard (2.14.2)
28
+ ffi (1.15.4)
29
+ ffi-compiler (1.0.1)
30
+ ffi (>= 1.0.0)
31
+ rake
32
+ formatador (0.3.0)
33
+ guard (2.18.0)
31
34
  formatador (>= 0.2.4)
32
35
  listen (>= 2.7, < 4.0)
33
36
  lumberjack (>= 1.0.12, < 2.0)
34
37
  nenv (~> 0.1)
35
38
  notiffany (~> 0.0)
36
- pry (>= 0.9.12)
39
+ pry (>= 0.13.0)
37
40
  shellany (~> 0.0)
38
41
  thor (>= 0.18.1)
39
42
  guard-compat (1.2.1)
@@ -41,62 +44,78 @@ GEM
41
44
  guard (~> 2.1)
42
45
  guard-compat (~> 1.1)
43
46
  rspec (>= 2.99.0, < 4.0)
44
- guard-rubocop (1.3.0)
47
+ guard-rubocop (1.5.0)
45
48
  guard (~> 2.0)
46
- rubocop (~> 0.20)
49
+ rubocop (< 2.0)
47
50
  guard-yard (2.2.1)
48
51
  guard (>= 1.1.0)
49
52
  yard (>= 0.7.0)
50
- hashdiff (0.3.7)
51
- hashie (3.6.0)
52
- http (2.2.2)
53
+ hashdiff (1.0.1)
54
+ hashie (5.0.0)
55
+ http (4.4.1)
53
56
  addressable (~> 2.3)
54
57
  http-cookie (~> 1.0)
55
- http-form_data (~> 1.0.1)
56
- http_parser.rb (~> 0.6.0)
57
- http-cookie (1.0.3)
58
+ http-form_data (~> 2.2)
59
+ http-parser (~> 1.2.0)
60
+ http-accept (1.7.0)
61
+ http-cookie (1.0.4)
58
62
  domain_name (~> 0.5)
59
- http-form_data (1.0.3)
60
- http_parser.rb (0.6.0)
61
- json (2.1.0)
63
+ http-form_data (2.3.0)
64
+ http-parser (1.2.3)
65
+ ffi-compiler (>= 1.0, < 2.0)
66
+ io-console (0.5.11)
67
+ irb (1.4.1)
68
+ reline (>= 0.3.0)
62
69
  listen (3.0.6)
63
70
  rb-fsevent (>= 0.9.3)
64
71
  rb-inotify (>= 0.9.7)
65
- lumberjack (1.0.13)
66
- method_source (0.9.0)
67
- multi_json (1.13.1)
72
+ lumberjack (1.2.8)
73
+ method_source (1.0.0)
74
+ mime-types (3.4.1)
75
+ mime-types-data (~> 3.2015)
76
+ mime-types-data (3.2021.1115)
77
+ multi_json (1.15.0)
68
78
  nenv (0.3.0)
69
- notiffany (0.1.1)
79
+ netrc (0.11.0)
80
+ notiffany (0.1.3)
70
81
  nenv (~> 0.1)
71
82
  shellany (~> 0.0)
72
- parallel (1.12.1)
73
- parser (2.5.1.2)
74
- ast (~> 2.4.0)
75
- powerpack (0.1.2)
76
- pry (0.11.3)
77
- coderay (~> 1.1.0)
78
- method_source (~> 0.9.0)
79
- public_suffix (3.0.3)
83
+ parallel (1.21.0)
84
+ parser (2.7.2.0)
85
+ ast (~> 2.4.1)
86
+ powerpack (0.1.3)
87
+ pry (0.14.1)
88
+ coderay (~> 1.1)
89
+ method_source (~> 1.0)
90
+ public_suffix (4.0.6)
80
91
  rainbow (2.2.2)
81
92
  rake
82
- rake (10.5.0)
83
- rb-fsevent (0.10.3)
84
- rb-inotify (0.9.10)
85
- ffi (>= 0.5.0, < 2)
86
- rr (1.2.1)
87
- rspec (3.8.0)
88
- rspec-core (~> 3.8.0)
89
- rspec-expectations (~> 3.8.0)
90
- rspec-mocks (~> 3.8.0)
91
- rspec-core (3.8.0)
92
- rspec-support (~> 3.8.0)
93
- rspec-expectations (3.8.1)
93
+ rake (13.0.6)
94
+ rb-fsevent (0.11.0)
95
+ rb-inotify (0.10.1)
96
+ ffi (~> 1.0)
97
+ reline (0.3.1)
98
+ io-console (~> 0.5)
99
+ rest-client (2.1.0)
100
+ http-accept (>= 1.7.0, < 2.0)
101
+ http-cookie (>= 1.0.2, < 2.0)
102
+ mime-types (>= 1.16, < 4.0)
103
+ netrc (~> 0.8)
104
+ rexml (3.2.5)
105
+ rr (3.0.9)
106
+ rspec (3.10.0)
107
+ rspec-core (~> 3.10.0)
108
+ rspec-expectations (~> 3.10.0)
109
+ rspec-mocks (~> 3.10.0)
110
+ rspec-core (3.10.1)
111
+ rspec-support (~> 3.10.0)
112
+ rspec-expectations (3.10.1)
94
113
  diff-lcs (>= 1.2.0, < 2.0)
95
- rspec-support (~> 3.8.0)
96
- rspec-mocks (3.8.0)
114
+ rspec-support (~> 3.10.0)
115
+ rspec-mocks (3.10.2)
97
116
  diff-lcs (>= 1.2.0, < 2.0)
98
- rspec-support (~> 3.8.0)
99
- rspec-support (3.8.0)
117
+ rspec-support (~> 3.10.0)
118
+ rspec-support (3.10.3)
100
119
  rubocop (0.49.1)
101
120
  parallel (~> 1.10)
102
121
  parser (>= 2.3.3.1, < 3.0)
@@ -104,35 +123,37 @@ GEM
104
123
  rainbow (>= 1.99.1, < 3.0)
105
124
  ruby-progressbar (~> 1.7)
106
125
  unicode-display_width (~> 1.0, >= 1.0.1)
107
- ruby-progressbar (1.10.0)
108
- rubygems-tasks (0.2.4)
109
- safe_yaml (1.0.4)
126
+ ruby-progressbar (1.11.0)
127
+ rubygems-tasks (0.2.5)
128
+ irb (~> 1.0)
110
129
  shellany (0.0.1)
111
- simplecov (0.16.1)
130
+ simplecov (0.21.2)
112
131
  docile (~> 1.1)
113
- json (>= 1.8, < 3)
114
- simplecov-html (~> 0.10.0)
115
- simplecov-html (0.10.2)
116
- term-ansicolor (1.6.0)
132
+ simplecov-html (~> 0.11)
133
+ simplecov_json_formatter (~> 0.1)
134
+ simplecov-html (0.12.3)
135
+ simplecov_json_formatter (0.1.3)
136
+ term-ansicolor (1.7.1)
117
137
  tins (~> 1.0)
118
- thor (0.19.4)
138
+ thor (1.1.0)
119
139
  tins (1.6.0)
120
140
  unf (0.1.4)
121
141
  unf_ext
122
- unf_ext (0.0.7.5)
123
- unicode-display_width (1.4.0)
142
+ unf_ext (0.0.8)
143
+ unicode-display_width (1.8.0)
124
144
  vcr (4.0.0)
125
- webmock (1.24.6)
126
- addressable (>= 2.3.6)
145
+ webmock (3.14.0)
146
+ addressable (>= 2.8.0)
127
147
  crack (>= 0.3.2)
128
- hashdiff
129
- yard (0.9.16)
148
+ hashdiff (>= 0.4.0, < 2.0.0)
149
+ webrick (1.7.0)
150
+ yard (0.9.27)
151
+ webrick (~> 1.7.0)
130
152
 
131
153
  PLATFORMS
132
- ruby
154
+ arm64-darwin-21
133
155
 
134
156
  DEPENDENCIES
135
- bundler (~> 1.5)
136
157
  coveralls
137
158
  gqli!
138
159
  guard
@@ -140,15 +161,15 @@ DEPENDENCIES
140
161
  guard-rubocop
141
162
  guard-yard
142
163
  listen (= 3.0.6)
143
- rake (< 11.0)
164
+ rake
144
165
  rr
145
166
  rspec (~> 3)
146
167
  rubocop (~> 0.49.1)
147
168
  rubygems-tasks (~> 0.2)
148
169
  simplecov
149
170
  tins (~> 1.6.0)
150
- vcr
151
- webmock (~> 1, >= 1.17.3)
171
+ vcr (~> 4.0)
172
+ webmock (~> 3.5)
152
173
 
153
174
  BUNDLED WITH
154
- 1.16.6
175
+ 2.2.32
data/README.md CHANGED
@@ -388,11 +388,6 @@ query = GQLi::DSL.query {
388
388
  }
389
389
  ```
390
390
 
391
- ## Yet to be implemented
392
-
393
- * Mutation queries
394
- * Subscription queries
395
-
396
391
  ## Get involved
397
392
 
398
393
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?maxAge=31557600)](http://makeapullrequest.com)
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "result": {
3
- "covered_percent": 97.94
3
+ "line": 98.6
4
4
  }
5
5
  }