reynard 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reynard/context.rb +3 -3
- data/lib/reynard/specification.rb +2 -2
- data/lib/reynard/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0d45ac57b8de184f9386bde8d78ccd4cea04f430f809f19c5af6f64ef77ec63
|
4
|
+
data.tar.gz: 6da06eac247b2fdc1f88ad8bfa76f11cf85d2c6852bec1d26ed73cb82dfb1edf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9813aac2ddb3316fc4048bf8f058365f5549fb096b8241488092a1124915810e15cd9e49a713f7a3a979f2c2bf88e11ce34fea41e3cf24046bd44143cd1d665
|
7
|
+
data.tar.gz: 77f1d12245ef452b312196e00918a60cfcca452fdb5d5658832406e370c5628e660813faf756b3404e0705dfe9e6b90f59248a1b35273d8b4dcafbe79ba66640
|
data/lib/reynard/context.rb
CHANGED
@@ -24,10 +24,10 @@ class Reynard
|
|
24
24
|
copy(params: @specification.build_grouped_params(@request_context.operation.node, params))
|
25
25
|
end
|
26
26
|
|
27
|
-
def body(
|
27
|
+
def body(data)
|
28
28
|
return unless @request_context.operation
|
29
29
|
|
30
|
-
serialized_body = @specification.build_body(@request_context.operation.node,
|
30
|
+
serialized_body = @specification.build_body(@request_context.operation.node, data)
|
31
31
|
return unless serialized_body
|
32
32
|
|
33
33
|
copy(
|
@@ -37,7 +37,7 @@ class Reynard
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def headers(headers)
|
40
|
-
copy(headers: @request_context.merge(headers))
|
40
|
+
copy(headers: @request_context.headers.merge(headers))
|
41
41
|
end
|
42
42
|
|
43
43
|
def execute
|
@@ -35,8 +35,8 @@ class Reynard
|
|
35
35
|
|
36
36
|
# Returns a serialized body instance to serialize a request body and figure out the request
|
37
37
|
# headers.
|
38
|
-
def build_body(operation_node,
|
39
|
-
SerializedBody.new(dig(*operation_node, 'requestBody', 'content'),
|
38
|
+
def build_body(operation_node, data)
|
39
|
+
SerializedBody.new(dig(*operation_node, 'requestBody', 'content'), data)
|
40
40
|
end
|
41
41
|
|
42
42
|
def operation(operation_name)
|
data/lib/reynard/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reynard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manfred Stienstra
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-09-17 00:00:00.000000000 Z
|
@@ -140,7 +140,7 @@ homepage: https://github.com/Manfred/reynard
|
|
140
140
|
licenses:
|
141
141
|
- MIT
|
142
142
|
metadata: {}
|
143
|
-
post_install_message:
|
143
|
+
post_install_message:
|
144
144
|
rdoc_options: []
|
145
145
|
require_paths:
|
146
146
|
- lib
|
@@ -155,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
rubygems_version: 3.
|
159
|
-
signing_key:
|
158
|
+
rubygems_version: 3.1.6
|
159
|
+
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Minimal OpenAPI client.
|
162
162
|
test_files: []
|