inigorb 0.29.2 → 0.29.4

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: 95f45240011a5b320118e7f21be391276e034a3965498002a90d33ac7b5ea431
4
- data.tar.gz: 112db5e1c3113b1d9176970d34af384124c59c8b92896a0080c4fc54b4d4f26f
3
+ metadata.gz: 6eb96c42168977d65c282f532d82a2103b514f8e5db67645d37cadf8b1fc342b
4
+ data.tar.gz: e5857fd45e0d1186f24c8fefc1ab2e808d6db7ce3181a127dbe4a4a996f8f4a2
5
5
  SHA512:
6
- metadata.gz: d98c191b7cde27f099de02aa01866c2f2d193b327b648edb7f969e642894778af0144901cf1ca0f6d36b0169f6e944de17549c84faedf4eb2be509338ca651f5
7
- data.tar.gz: d993ea9aba9685c122a218c35b58b88034090b0b3e5cc3cb124b4e2dbcae7ddd688a542e8998379c8840dc552c2f856fc94338a6003f7721d3bd3b2bef4c0bbe
6
+ metadata.gz: e77fcbdf6b76e8ea5aaaac4d93d6c9030d907adade0069dc342e708dab309452c3e9cf86e95dec6ef75bc0cff4dbebd47f28478261cd1429f91e40dbe5eec31e
7
+ data.tar.gz: 25aa4858fdd36e10c20f81724ca36765da17465a0b58b7a548b15d2230e17a61b506dbeab3382e36061953a381879c92f9af261551a01a43aa1c7271ca6aff05
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -76,6 +76,12 @@ module Inigo
76
76
 
77
77
  gReq['operationName'] = query.operation_name if query.operation_name && query.operation_name != ''
78
78
  gReq['variables'] = query.variables.to_h if query.variables
79
+ # when operation registry is enabled and query string is absent query.variables is empty property as
80
+ # there is an error on query that query string is missing.
81
+ # query.variables is basically a method that provides a hash of variables provided and query default variables.
82
+ # in case with operation registry we don't have a string and should use only provided vars.
83
+ gReq['variables'] = query.provided_variables if query.query_string.nil? || query.query_string.empty?
84
+ gReq['extensions'] = query.context[:extensions] if query.context[:extensions]
79
85
 
80
86
  q = Query.new(self.class.instance, JSON.dump(gReq))
81
87
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inigorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.2
4
+ version: 0.29.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inigo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt