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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c84ca4accb44e6e4d25e67071ade066d2fad559eedff8726915da6736e05246
4
- data.tar.gz: 1340cfef80c1464cf01d01e4509c0bdc2fa4831a3d8f6960a209fe6ee9f8b167
3
+ metadata.gz: e0d45ac57b8de184f9386bde8d78ccd4cea04f430f809f19c5af6f64ef77ec63
4
+ data.tar.gz: 6da06eac247b2fdc1f88ad8bfa76f11cf85d2c6852bec1d26ed73cb82dfb1edf
5
5
  SHA512:
6
- metadata.gz: 19e65638574e27c47310bad70a9b507aa6f5600ae7c05c3495c83ac7c58015b2f5d17d0c7d4592d2b6bf74852fe11782b796895bd4db552e96cd5ed80b85c895
7
- data.tar.gz: f63952863a80039f1735bb53e27a1a15c670e4f80e8c2c5813e1880d4c33962d791ec9ed46d5f268f924725052ed831bf6a33f31b047a9d861d8b81645fc748d
6
+ metadata.gz: e9813aac2ddb3316fc4048bf8f058365f5549fb096b8241488092a1124915810e15cd9e49a713f7a3a979f2c2bf88e11ce34fea41e3cf24046bd44143cd1d665
7
+ data.tar.gz: 77f1d12245ef452b312196e00918a60cfcca452fdb5d5658832406e370c5628e660813faf756b3404e0705dfe9e6b90f59248a1b35273d8b4dcafbe79ba66640
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Reynard
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
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.5
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.2.22
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: []