nulogy_graphql_api 1.1.0 → 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/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/nulogy_graphql_api/tasks/schema_generator.rb +7 -3
- data/lib/nulogy_graphql_api/version.rb +1 -1
- metadata +2 -2
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/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -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
|
@@ -32,6 +32,10 @@ module NulogyGraphqlApi
|
|
32
32
|
File.write(@schema_output_path, schema_definition)
|
33
33
|
puts Rainbow("\nSuccessfully updated #{@schema_output_path}").green
|
34
34
|
end
|
35
|
+
|
36
|
+
def schema_definition
|
37
|
+
GraphQL::Schema::Printer.print_schema(@schema, context: @context)
|
38
|
+
end
|
35
39
|
end
|
36
40
|
end
|
37
41
|
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|