nulogy_graphql_api 1.1.0 → 1.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c240d25281317e146a219c8263331efb38b36a8aa0f84c3e17978016c89be9f0
4
- data.tar.gz: c681d64df5e481069074e4477f6801ec867147f9e1eb07253bcea773196ec8bb
3
+ metadata.gz: 1c81dad9abdf6fb654b0b8f13a473661408635035edc3d3ef0b4a0145cfa4982
4
+ data.tar.gz: c5f7e8e084fe2873d9730c95d90a77b391c8019e46fa6db834885510822e7c7f
5
5
  SHA512:
6
- metadata.gz: 4074241b6a5603acf9547ca33db22f2a3aff59bbd0cca207a9023d9b1f560924b2d76240ef3bed71240c49142caff72c5f8b587c880404dc57dc2ea23f1a22ec
7
- data.tar.gz: 979f68739de9a911d5e69b233013876b4a6038a04ceee5784ee5002dba32b756709c7c1e5f780d439f5cd69e5f58eda9562fc8cb86518d37d79adcea9f37707c
6
+ metadata.gz: b5e8e18473017cfbfec52413f67b6dc6a1aa313e1f39cfe1e6c1b200d6e92115b270903afd8afabdb86f683f260e18721f6c2c12c38c0aeb318ecb1639ab8998
7
+ data.tar.gz: 07ba33a7a7ec403e3bdfdcd706f4344f86acb2d84d7a3c654f536fd17c76bef5ff5fb3786da7c3b20c629e536d4d7dc6f4dfad1ba3a6a6ba3c860d397ecd1859
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
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
+
5
10
  ## 1.1.0 (2021-07-12)
6
11
 
7
12
  **Changes**
data/README.md CHANGED
@@ -9,7 +9,7 @@ Help Nulogy applications be compliant with the [Standard on Error-handling in Gr
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem "nulogy_graphql_api", "1.1.0"
12
+ gem "nulogy_graphql_api", "1.1.1"
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -1,9 +1,9 @@
1
1
  module NulogyGraphqlApi
2
2
  module Tasks
3
3
  class SchemaGenerator
4
- def initialize(schema_output_path, schema_definition, context: {})
4
+ def initialize(schema_output_path, schema, context: {})
5
5
  @schema_output_path = schema_output_path
6
- @schema_definition = schema_definition
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, @schema_definition)
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
@@ -1,3 +1,3 @@
1
1
  module NulogyGraphqlApi
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  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.0
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-12 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql