nulogy_graphql_api 0.5.3 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +117 -0
- data/.ruby-version +1 -1
- data/Appraisals +4 -4
- data/CHANGELOG.md +38 -11
- data/README.md +36 -17
- data/gemfiles/rails_6.gemfile +2 -2
- data/gemfiles/{rails_5.gemfile → rails_6_1.gemfile} +2 -2
- data/lib/nulogy_graphql_api/rspec.rb +2 -2
- data/lib/nulogy_graphql_api/rspec/graphql_helpers.rb +2 -2
- data/lib/nulogy_graphql_api/tasks/schema_changes_checker.rb +1 -1
- data/lib/nulogy_graphql_api/tasks/schema_generator.rb +7 -8
- data/lib/nulogy_graphql_api/version.rb +1 -1
- data/nulogy_graphql_api.gemspec +9 -9
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c81dad9abdf6fb654b0b8f13a473661408635035edc3d3ef0b4a0145cfa4982
|
4
|
+
data.tar.gz: c5f7e8e084fe2873d9730c95d90a77b391c8019e46fa6db834885510822e7c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5e8e18473017cfbfec52413f67b6dc6a1aa313e1f39cfe1e6c1b200d6e92115b270903afd8afabdb86f683f260e18721f6c2c12c38c0aeb318ecb1639ab8998
|
7
|
+
data.tar.gz: 07ba33a7a7ec403e3bdfdcd706f4344f86acb2d84d7a3c654f536fd17c76bef5ff5fb3786da7c3b20c629e536d4d7dc6f4dfad1ba3a6a6ba3c860d397ecd1859
|
data/.rubocop.yml
CHANGED
@@ -6,6 +6,9 @@ inherit_from:
|
|
6
6
|
AllCops:
|
7
7
|
TargetRubyVersion: 2.6
|
8
8
|
|
9
|
+
Gemspec/DateAssignment:
|
10
|
+
Enabled: true
|
11
|
+
|
9
12
|
Layout/EmptyLinesAroundAttributeAccessor:
|
10
13
|
Enabled: true
|
11
14
|
|
@@ -38,18 +41,72 @@ Layout/MultilineOperationIndentation:
|
|
38
41
|
Layout/SpaceAroundMethodCallOperator:
|
39
42
|
Enabled: false
|
40
43
|
|
44
|
+
Layout/SpaceBeforeBrackets:
|
45
|
+
Enabled: true
|
46
|
+
|
47
|
+
Lint/AmbiguousAssignment:
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Lint/DeprecatedConstants:
|
51
|
+
Enabled: true
|
52
|
+
|
41
53
|
Lint/DeprecatedOpenSSLConstant:
|
42
54
|
Enabled: true
|
43
55
|
|
56
|
+
Lint/DuplicateBranch:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Lint/DuplicateElsifCondition:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Lint/EmptyBlock:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Lint/EmptyClass:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Lint/LambdaWithoutLiteralBlock:
|
72
|
+
Enabled: true
|
73
|
+
|
44
74
|
Lint/MixedRegexpCaptureTypes:
|
45
75
|
Enabled: true
|
46
76
|
|
77
|
+
Lint/NoReturnInBeginEndBlocks:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Lint/NumberedParameterAssignment:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
Lint/OrAssignmentToConstant:
|
84
|
+
Enabled: true
|
85
|
+
|
47
86
|
Lint/RaiseException:
|
48
87
|
Enabled: false
|
49
88
|
|
89
|
+
Lint/RedundantDirGlobSort:
|
90
|
+
Enabled: true
|
91
|
+
|
50
92
|
Lint/StructNewOverride:
|
51
93
|
Enabled: false
|
52
94
|
|
95
|
+
Lint/SymbolConversion:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Lint/ToEnumArguments:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Lint/TripleQuotes:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Lint/UnexpectedBlockArity:
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Lint/UnmodifiedReduceAccumulator:
|
108
|
+
Enabled: true
|
109
|
+
|
53
110
|
Metrics:
|
54
111
|
Enabled: false
|
55
112
|
|
@@ -74,18 +131,57 @@ RSpec/MessageSpies:
|
|
74
131
|
RSpec/NotToNot:
|
75
132
|
EnforcedStyle: to_not
|
76
133
|
|
134
|
+
Style/AccessorGrouping:
|
135
|
+
Enabled: true
|
136
|
+
|
137
|
+
Style/ArgumentsForwarding:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Style/ArrayCoercion:
|
141
|
+
Enabled: true
|
142
|
+
|
143
|
+
Style/BisectedAttrAccessor:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
Style/CaseLikeIf:
|
147
|
+
Enabled: true
|
148
|
+
|
149
|
+
Style/CollectionCompact:
|
150
|
+
Enabled: true
|
151
|
+
|
152
|
+
Style/DocumentDynamicEvalDefinition:
|
153
|
+
Enabled: true
|
154
|
+
|
155
|
+
Style/EndlessMethod:
|
156
|
+
Enabled: true
|
157
|
+
|
77
158
|
Style/ExponentialNotation:
|
78
159
|
Enabled: false
|
79
160
|
|
161
|
+
Style/HashAsLastArrayItem:
|
162
|
+
Enabled: true
|
163
|
+
|
164
|
+
Style/HashConversion:
|
165
|
+
Enabled: true
|
166
|
+
|
80
167
|
Style/HashEachMethods:
|
81
168
|
Enabled: false
|
82
169
|
|
170
|
+
Style/HashExcept:
|
171
|
+
Enabled: true
|
172
|
+
|
173
|
+
Style/HashLikeCase:
|
174
|
+
Enabled: true
|
175
|
+
|
83
176
|
Style/HashTransformKeys:
|
84
177
|
Enabled: false
|
85
178
|
|
86
179
|
Style/HashTransformValues:
|
87
180
|
Enabled: false
|
88
181
|
|
182
|
+
Style/IfWithBooleanLiteralBranches:
|
183
|
+
Enabled: true
|
184
|
+
|
89
185
|
Style/BlockDelimiters:
|
90
186
|
Enabled: false
|
91
187
|
|
@@ -110,9 +206,24 @@ Style/GuardClause:
|
|
110
206
|
Style/MutableConstant:
|
111
207
|
Enabled: false
|
112
208
|
|
209
|
+
Style/NegatedIfElseCondition:
|
210
|
+
Enabled: true
|
211
|
+
|
113
212
|
Style/RaiseArgs:
|
114
213
|
Enabled: false
|
115
214
|
|
215
|
+
Style/RedundantArgument:
|
216
|
+
Enabled: true
|
217
|
+
|
218
|
+
Style/RedundantAssignment:
|
219
|
+
Enabled: true
|
220
|
+
|
221
|
+
Style/RedundantFetchBlock:
|
222
|
+
Enabled: true
|
223
|
+
|
224
|
+
Style/RedundantFileExtensionInRequire:
|
225
|
+
Enabled: true
|
226
|
+
|
116
227
|
Style/RedundantRegexpCharacterClass:
|
117
228
|
Enabled: true
|
118
229
|
|
@@ -131,6 +242,12 @@ Style/SlicingWithRange:
|
|
131
242
|
Style/StringLiterals:
|
132
243
|
EnforcedStyle: double_quotes
|
133
244
|
|
245
|
+
Style/SwapValues:
|
246
|
+
Enabled: true
|
247
|
+
|
248
|
+
Style/NilLambda:
|
249
|
+
Enabled: true
|
250
|
+
|
134
251
|
Style/SymbolArray:
|
135
252
|
Enabled: false
|
136
253
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.3
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,33 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 1.1.1 (2021-07-26)
|
6
|
+
|
7
|
+
**Changes**
|
8
|
+
* Bug Fix: Schema generator always errored when generating new schema file
|
9
|
+
|
10
|
+
## 1.1.0 (2021-07-12)
|
11
|
+
|
12
|
+
**Changes**
|
13
|
+
|
14
|
+
* Support Rails 6.1
|
15
|
+
* **(Breaking)** Drop support for Rails 5
|
16
|
+
|
17
|
+
## 1.0.0 (2021-05-17)
|
18
|
+
|
19
|
+
**Changes**
|
20
|
+
|
21
|
+
* **(Breaking)** Change argument to `SchemaGenerator`
|
22
|
+
|
23
|
+
The `SchemaGenerator` now takes the path to the `schema.graphql` and the schema class as required arguments.
|
24
|
+
See [the update in the README](README.md#Schema-Generation).
|
25
|
+
|
26
|
+
## 0.6.0 (2021-02-24)
|
27
|
+
|
28
|
+
**Changes**
|
29
|
+
|
30
|
+
* **(Potentially Breaking)** Bump graphql gem version to 1.12.5
|
31
|
+
|
5
32
|
## 0.5.3 (2020-08-11)
|
6
33
|
|
7
34
|
* Add `BaseMutation`.
|
@@ -12,17 +39,17 @@
|
|
12
39
|
|
13
40
|
## 0.5.0 (2020-08-05)
|
14
41
|
|
15
|
-
**
|
42
|
+
**Changes**
|
16
43
|
|
17
|
-
* Add `context` to the Rake task that generates the schema file.
|
44
|
+
* **(Breaking)** Add `context` to the Rake task that generates the schema file.
|
18
45
|
This changes the way the schema is parsed. Please refer to the README file to see an example of how to use `context`.
|
19
46
|
|
20
47
|
## 0.4.0 (2020-07-06)
|
21
48
|
|
22
|
-
**
|
49
|
+
**Changes**
|
23
50
|
|
24
|
-
* Remove the GraphqlApiController
|
25
|
-
* Add the ErrorHandling controller concern
|
51
|
+
* **(Breaking)** Remove the GraphqlApiController
|
52
|
+
* **(Breaking)** Add the ErrorHandling controller concern
|
26
53
|
|
27
54
|
## 0.3.1 (2020-07-03)
|
28
55
|
|
@@ -30,20 +57,20 @@ This changes the way the schema is parsed. Please refer to the README file to se
|
|
30
57
|
|
31
58
|
## 0.3.0 (2020-06-25)
|
32
59
|
|
33
|
-
**
|
60
|
+
**Changes**
|
34
61
|
|
35
|
-
* Remove spec helpers related to subscriptions
|
62
|
+
* **(Breaking)** Remove spec helpers related to subscriptions
|
36
63
|
|
37
64
|
## 0.2.0 (2020-06-24)
|
38
65
|
|
39
|
-
**
|
66
|
+
**Changes**
|
40
67
|
|
41
|
-
* Rename `GraphqlExecutor.call` to `execute`
|
42
|
-
* Change `schema` parameter on `execute_graphql` test helper to positional
|
68
|
+
* **(Breaking)** Rename `GraphqlExecutor.call` to `execute`
|
69
|
+
* **(Breaking)** Change `schema` parameter on `execute_graphql` test helper to positional
|
43
70
|
|
44
71
|
## 0.1.1 (2020-06-24)
|
45
72
|
|
46
|
-
**
|
73
|
+
**Changes**
|
47
74
|
|
48
75
|
* RSpec custom matchers
|
49
76
|
* RSpec helpers
|
data/README.md
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
# NulogyGraphqlApi
|
2
2
|
|
3
|
+
## Intent
|
4
|
+
|
5
|
+
Help Nulogy applications be compliant with the [Standard on Error-handling in GraphQL](https://trello.com/c/N5cHt4Gp/7-error-handling-in-graphql-apis).
|
6
|
+
|
3
7
|
## Installation
|
4
8
|
|
5
9
|
Add this line to your application's Gemfile:
|
6
10
|
|
7
11
|
```ruby
|
8
|
-
gem "nulogy_graphql_api", "
|
12
|
+
gem "nulogy_graphql_api", "1.1.1"
|
9
13
|
```
|
10
14
|
|
11
15
|
And then execute:
|
@@ -37,9 +41,9 @@ Or install it yourself as:
|
|
37
41
|
|
38
42
|
#### Receiving Requests
|
39
43
|
|
40
|
-
Given that you have already defined your GraphQL `Schema` you can receive requests by defining a controller action and execute the params by calling the `NulogyGraphqlApi::GraphqlExecutor`.
|
44
|
+
Given that you have already defined your GraphQL `Schema` you can receive requests by defining a controller action and execute the params by calling the `NulogyGraphqlApi::GraphqlExecutor`.
|
41
45
|
|
42
|
-
- Remember to configure your routes to include the controller action.
|
46
|
+
- Remember to configure your routes to include the controller action.
|
43
47
|
- We called the action `execute` in the example below, but you can call it whatever makes more sense for your app.
|
44
48
|
|
45
49
|
```ruby
|
@@ -49,9 +53,9 @@ module MyApp
|
|
49
53
|
|
50
54
|
def execute
|
51
55
|
NulogyGraphqlApi::GraphqlExecutor.execute(
|
52
|
-
params,
|
53
|
-
context,
|
54
|
-
Schema,
|
56
|
+
params,
|
57
|
+
context,
|
58
|
+
Schema,
|
55
59
|
NulogyGraphqlApi::TransactionService.new
|
56
60
|
)
|
57
61
|
end
|
@@ -70,7 +74,7 @@ module MyApp
|
|
70
74
|
|
71
75
|
def render_error(exception)
|
72
76
|
MyApp::ExceptionNotifier.notify(exception)
|
73
|
-
|
77
|
+
|
74
78
|
super
|
75
79
|
end
|
76
80
|
end
|
@@ -88,10 +92,10 @@ module MyApp
|
|
88
92
|
class CreateEntity < GraphQL::Schema::Mutation
|
89
93
|
field :entity, MyApp::EntityType, null: false
|
90
94
|
field :errors, [NulogyGraphqlApi::Types::UserErrorType], null: false
|
91
|
-
|
95
|
+
|
92
96
|
def resolve(args)
|
93
97
|
entity = create_entity(args)
|
94
|
-
|
98
|
+
|
95
99
|
{
|
96
100
|
entity: entity,
|
97
101
|
errors: extract_errors(entity)
|
@@ -99,7 +103,7 @@ module MyApp
|
|
99
103
|
end
|
100
104
|
|
101
105
|
def extract_errors(entity)
|
102
|
-
entity.errors.map do |attribute, message|
|
106
|
+
entity.errors.map do |attribute, message|
|
103
107
|
{
|
104
108
|
path: path_for(attribute),
|
105
109
|
message: entity.errors.full_message(attribute, message)
|
@@ -124,7 +128,7 @@ end
|
|
124
128
|
|
125
129
|
### Schema Generation
|
126
130
|
|
127
|
-
There is a Rake task to generate the `schema.graphql` file. You need to provide the `schema_file_path` and the
|
131
|
+
There is a Rake task to generate the `schema.graphql` file. You need to provide the `schema_file_path` and the schema class so that the task can detect breaking changes and generate the file. If you don't have a schema file because it's your first time generating it then the rake task will just create one for you in the path provided.
|
128
132
|
|
129
133
|
There is also a third argument `context`. You'll have to configure it to be able to generate the SDL of fields or types that are only visible for more privileged users.
|
130
134
|
|
@@ -134,10 +138,10 @@ namespace :graphql_api do
|
|
134
138
|
|
135
139
|
task :generate_schema => :environment do
|
136
140
|
schema_file_path = MyApp::Engine.root.join("schema.graphql")
|
137
|
-
|
141
|
+
schema = MyApp::Namespace::To::Schema
|
138
142
|
|
139
143
|
NulogyGraphqlApi::Tasks::SchemaGenerator
|
140
|
-
.new(schema_file_path,
|
144
|
+
.new(schema_file_path, schema)
|
141
145
|
.generate_schema
|
142
146
|
end
|
143
147
|
end
|
@@ -145,7 +149,7 @@ end
|
|
145
149
|
|
146
150
|
### Node visibility
|
147
151
|
|
148
|
-
When you customize the visibility of parts of your graph you have to make sure that all nodes are visible when the schema is being generated by the rake task. You can do so by using the `schema_generation_context?` attribute that is added to the context by the `SchemaGenerator` mentioned in the previous section.
|
152
|
+
When you customize the visibility of parts of your graph you have to make sure that all nodes are visible when the schema is being generated by the rake task. You can do so by using the `schema_generation_context?` attribute that is added to the context by the `SchemaGenerator` mentioned in the previous section.
|
149
153
|
|
150
154
|
Here is how to use it:
|
151
155
|
|
@@ -171,7 +175,7 @@ module MyApp
|
|
171
175
|
class CreateEntity < NulogyGraphqlApi::Schema::BaseMutation
|
172
176
|
field :entity, MyApp::EntityType, null: false
|
173
177
|
field :errors, [NulogyGraphqlApi::Types::UserErrorType], null: false
|
174
|
-
|
178
|
+
|
175
179
|
def self.visible?(context)
|
176
180
|
super { context[:current_user].super_user? }
|
177
181
|
end
|
@@ -198,7 +202,7 @@ RSpec.configure do |config|
|
|
198
202
|
config.include NulogyGraphqlApi::GraphqlMatchers, graphql: true
|
199
203
|
config.include NulogyGraphqlApi::GraphqlHelpers, graphql: true
|
200
204
|
end
|
201
|
-
```
|
205
|
+
```
|
202
206
|
|
203
207
|
#### Test helpers
|
204
208
|
|
@@ -275,7 +279,22 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
275
279
|
|
276
280
|
## Contributing
|
277
281
|
|
278
|
-
|
282
|
+
We treat this project as an internal "open source" project. Everyone at Nulogy is welcome to submit Pull Requests.
|
283
|
+
|
284
|
+
### Submitting Pull Requests
|
285
|
+
|
286
|
+
The Directly Responsible Individual (DRI) for this project is Daniel Silva.
|
287
|
+
|
288
|
+
When you are happy with your changes:
|
289
|
+
|
290
|
+
1. Add description of changes to the top of the [CHANGELOG](./CHANGELOG.md) file, under the `## master (unreleased)` section subdivided into the following categories:
|
291
|
+
- New Features
|
292
|
+
- Bug Fixes
|
293
|
+
- Changes
|
294
|
+
- *prepend these with* **(Breaking)***,* **(Potentially Breaking)** *or just leave it blank in case neither applies*
|
295
|
+
|
296
|
+
1. Create a Pull Request.
|
297
|
+
1. Notify #nulogy-graphql-api Slack channel to get the DRI review and merge your changes.
|
279
298
|
|
280
299
|
## License
|
281
300
|
|
data/gemfiles/rails_6.gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
# relative-require all rspec files
|
2
|
-
Dir[File.dirname(__FILE__)
|
3
|
-
require "nulogy_graphql_api/rspec
|
2
|
+
Dir["#{File.dirname(__FILE__)}/rspec/*.rb"].each do |file|
|
3
|
+
require "nulogy_graphql_api/rspec/#{File.basename(file, File.extname(file))}"
|
4
4
|
end
|
@@ -16,8 +16,8 @@ module NulogyGraphqlApi
|
|
16
16
|
def request_graphql(url, query, variables: {}, headers: {})
|
17
17
|
params = { query: query, variables: variables }.to_json
|
18
18
|
default_headers = {
|
19
|
-
|
20
|
-
|
19
|
+
CONTENT_TYPE: "application/json",
|
20
|
+
HTTP_AUTHORIZATION: basic_auth_token(default_user.login)
|
21
21
|
}
|
22
22
|
|
23
23
|
post url, params: params, headers: default_headers.merge(headers)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module NulogyGraphqlApi
|
2
2
|
module Tasks
|
3
3
|
class SchemaGenerator
|
4
|
-
def initialize(schema_output_path,
|
4
|
+
def initialize(schema_output_path, schema, context: {})
|
5
5
|
@schema_output_path = schema_output_path
|
6
|
-
@
|
6
|
+
@schema = schema
|
7
7
|
@context = context.merge(
|
8
8
|
schema_generation_context?: true
|
9
9
|
)
|
@@ -19,7 +19,7 @@ module NulogyGraphqlApi
|
|
19
19
|
def check_changes
|
20
20
|
return if old_schema.blank?
|
21
21
|
|
22
|
-
SchemaChangesChecker.new.check_changes(old_schema,
|
22
|
+
SchemaChangesChecker.new.check_changes(old_schema, @schema)
|
23
23
|
end
|
24
24
|
|
25
25
|
def old_schema
|
@@ -28,15 +28,14 @@ module NulogyGraphqlApi
|
|
28
28
|
File.read(@schema_output_path)
|
29
29
|
end
|
30
30
|
|
31
|
-
def schema_definition
|
32
|
-
require @schema_definition_path
|
33
|
-
@schema_definition ||= GraphQL::Schema.descendants.first.to_definition(context: @context)
|
34
|
-
end
|
35
|
-
|
36
31
|
def write_schema_to_file
|
37
32
|
File.write(@schema_output_path, schema_definition)
|
38
33
|
puts Rainbow("\nSuccessfully updated #{@schema_output_path}").green
|
39
34
|
end
|
35
|
+
|
36
|
+
def schema_definition
|
37
|
+
GraphQL::Schema::Printer.print_schema(@schema, context: @context)
|
38
|
+
end
|
40
39
|
end
|
41
40
|
end
|
42
41
|
end
|
data/nulogy_graphql_api.gemspec
CHANGED
@@ -28,15 +28,15 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_dependency "graphql", "~> 1.
|
31
|
+
spec.add_dependency "graphql", "~> 1.12.5"
|
32
32
|
spec.add_dependency "graphql-schema_comparator", "~> 1.0.0"
|
33
|
-
spec.add_dependency "rails", ">= 5.2.4", "<
|
34
|
-
spec.add_dependency "rainbow", "~> 3.0
|
33
|
+
spec.add_dependency "rails", ">= 5.2.4", "< 7.0"
|
34
|
+
spec.add_dependency "rainbow", "~> 3.0"
|
35
35
|
|
36
|
-
spec.add_development_dependency "appraisal", "~> 2.
|
37
|
-
spec.add_development_dependency "rspec-rails", "~>
|
38
|
-
spec.add_development_dependency "rubocop", "~>
|
39
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
40
|
-
spec.add_development_dependency "rubocop-rspec", "~>
|
41
|
-
spec.add_development_dependency "sqlite3", "~> 1.4
|
36
|
+
spec.add_development_dependency "appraisal", "~> 2.4"
|
37
|
+
spec.add_development_dependency "rspec-rails", "~> 5.0"
|
38
|
+
spec.add_development_dependency "rubocop", "~> 1.18"
|
39
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.11"
|
40
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.4"
|
41
|
+
spec.add_development_dependency "sqlite3", "~> 1.4"
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nulogy_graphql_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Silva
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.12.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.12.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: graphql-schema_comparator
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: 5.2.4
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: '7.0'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,106 +57,106 @@ dependencies:
|
|
57
57
|
version: 5.2.4
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: '7.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rainbow
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 3.0
|
67
|
+
version: '3.0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 3.0
|
74
|
+
version: '3.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: appraisal
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.
|
81
|
+
version: '2.4'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2.
|
88
|
+
version: '2.4'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rspec-rails
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: '5.0'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: '5.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: rubocop
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '1.18'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '1.18'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: rubocop-performance
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '1.
|
123
|
+
version: '1.11'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '1.
|
130
|
+
version: '1.11'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: rubocop-rspec
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
137
|
+
version: '2.4'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '2.4'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: sqlite3
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.4
|
151
|
+
version: '1.4'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 1.4
|
159
|
-
description:
|
158
|
+
version: '1.4'
|
159
|
+
description:
|
160
160
|
email:
|
161
161
|
- danielsi@nulogy.com
|
162
162
|
executables: []
|
@@ -178,8 +178,8 @@ files:
|
|
178
178
|
- Rakefile
|
179
179
|
- bin/console
|
180
180
|
- bin/setup
|
181
|
-
- gemfiles/rails_5.gemfile
|
182
181
|
- gemfiles/rails_6.gemfile
|
182
|
+
- gemfiles/rails_6_1.gemfile
|
183
183
|
- lib/nulogy_graphql_api.rb
|
184
184
|
- lib/nulogy_graphql_api/error_handling.rb
|
185
185
|
- lib/nulogy_graphql_api/graphql_error.rb
|
@@ -206,7 +206,7 @@ metadata:
|
|
206
206
|
changelog_uri: https://github.com/nulogy/nulogy_graphql_api/blob/master/CHANGELOG.md
|
207
207
|
source_code_uri: https://github.com/nulogy/nulogy_graphql_api
|
208
208
|
bug_tracker_uri: https://github.com/nulogy/nulogy_graphql_api/issues
|
209
|
-
post_install_message:
|
209
|
+
post_install_message:
|
210
210
|
rdoc_options: []
|
211
211
|
require_paths:
|
212
212
|
- lib
|
@@ -221,8 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
|
-
rubygems_version: 3.
|
225
|
-
signing_key:
|
224
|
+
rubygems_version: 3.1.6
|
225
|
+
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: Standard tooling for building GraphQL apis
|
228
228
|
test_files: []
|