inigorb 0.27.7 → 0.27.8
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 +4 -4
- data/lib/ffimod.rb +4 -1
- data/lib/inigo-darwin-amd64.dylib +0 -0
- data/lib/inigo-darwin-arm64.dylib +0 -0
- data/lib/inigo-linux-amd64.so +0 -0
- data/lib/inigo-linux-arm64.so +0 -0
- data/lib/inigo-windows-amd64.dll +0 -0
- data/lib/inigo-windows-arm64.dll +0 -0
- data/lib/inigorb.rb +4 -7
- data/lib/query.rb +3 -9
- 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: 3b76b4df84e9b306abc97e3db3e620d0adbd677c0e1d7c3ad281868a31f692f6
|
|
4
|
+
data.tar.gz: c4c409ead58fbea2f6802323c530b26b599d8e4fdacbc0187d7bea78d66fe759
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6ce3a79ef32be887b9fd65580a8f10d8c4e6952d8defbdf3cfece54adcc4acabee37c367e81129c6c690a98bf1bbe731b42cbf6423f4adec4fe39687b2ab9ff
|
|
7
|
+
data.tar.gz: 2b69305cd787ffccd8c11f06b70e346781f0b20cfaf48181874d4d92c96296e9c82fe7b8ff095ca889e99c7fc35e7369c267a796de88be3574f116a87bfd9b0c
|
data/lib/ffimod.rb
CHANGED
|
@@ -60,7 +60,10 @@ module Inigo
|
|
|
60
60
|
:service, :pointer,
|
|
61
61
|
:token, :pointer,
|
|
62
62
|
:schema, :pointer,
|
|
63
|
-
:introspection, :pointer
|
|
63
|
+
:introspection, :pointer,
|
|
64
|
+
:egress_url, :pointer,
|
|
65
|
+
:gateway, :u_int64_t,
|
|
66
|
+
:disable_response_data, :bool
|
|
64
67
|
end
|
|
65
68
|
|
|
66
69
|
attach_function :create, [:u_int64_t], :u_int64_t
|
|
Binary file
|
|
Binary file
|
data/lib/inigo-linux-amd64.so
CHANGED
|
Binary file
|
data/lib/inigo-linux-arm64.so
CHANGED
|
Binary file
|
data/lib/inigo-windows-amd64.dll
CHANGED
|
Binary file
|
data/lib/inigo-windows-arm64.dll
CHANGED
|
Binary file
|
data/lib/inigorb.rb
CHANGED
|
@@ -181,14 +181,10 @@ module Inigo
|
|
|
181
181
|
|
|
182
182
|
# Forward to request handler
|
|
183
183
|
status, headers, response = @app.call(env)
|
|
184
|
-
|
|
184
|
+
headers.delete("Content-Length")
|
|
185
185
|
# Inigo: process response
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
return respond(status, headers, processed_response)
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
response
|
|
186
|
+
response = q.process_response(response.body.to_s)
|
|
187
|
+
[status, headers, [response]]
|
|
192
188
|
end
|
|
193
189
|
|
|
194
190
|
private
|
|
@@ -214,6 +210,7 @@ module Inigo
|
|
|
214
210
|
end
|
|
215
211
|
|
|
216
212
|
config = Inigo::Config.new
|
|
213
|
+
config[:disable_response_data] = false
|
|
217
214
|
|
|
218
215
|
if settings.fetch("INIGO_DEBUG", "false").to_s.downcase == "true"
|
|
219
216
|
config[:debug] = true
|
data/lib/query.rb
CHANGED
|
@@ -63,18 +63,12 @@ module Inigo
|
|
|
63
63
|
output_ptr, output_len
|
|
64
64
|
)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
output_len_value = output_len.read_int
|
|
69
|
-
if output_len_value > 0
|
|
70
|
-
output_data = output_ptr.read_pointer.read_string(output_len_value)
|
|
71
|
-
output_dict = JSON.parse(output_data)
|
|
72
|
-
end
|
|
66
|
+
output_data = output_ptr.read_pointer.read_string(output_len.read_int)
|
|
73
67
|
|
|
74
68
|
Inigo.disposeMemory(output_ptr.read_pointer)
|
|
75
69
|
Inigo.disposeHandle(@handle)
|
|
76
70
|
|
|
77
|
-
|
|
71
|
+
output_data
|
|
78
72
|
end
|
|
79
73
|
end
|
|
80
|
-
end
|
|
74
|
+
end
|
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.27.
|
|
4
|
+
version: 0.27.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Inigo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-08-
|
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|