foobara 0.0.97 → 0.0.98

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: 270bbdab2495946ef47796953a750bf7bf5c64ae8e238c9f4a7e2a14fd5f41cd
4
- data.tar.gz: c73d0aef1208748ab136b1ce7c5da8a78bce8cf3c0c5a5a8dd9cc42068081bab
3
+ metadata.gz: 4403355094ff48ae0013002826f8373c3ebddf3d19838171a5d7879b560e7a22
4
+ data.tar.gz: 3ad2b83c5da5b31d617672e1eb2876f1542422dc675ae9aa17066426827cff49
5
5
  SHA512:
6
- metadata.gz: 572b047d7dc0ac8d2e2e527e24b5e1d522bbe1dccfd713cc39bf2ac61ebf5d941469332da94941cf2f85b60d54259a5f6aa29449a0ed3f9d289f205d875bbec7
7
- data.tar.gz: ba380f9ac1e582affe1821df1bc5c188d5c5a933206e810cec9593b66d958cce1ab0d14c4b25889798d5e46dbcbb10c4e6c4c312df7adf5fcf523c134f6a0211
6
+ metadata.gz: 5e9cc896794b1ad669e494b841c6f115f31558a4aa2ba8167d182fdacdea63f5533f4a96664f609cef0ed7b0d2ccc174189bd4512ad5ea6f88c149cbe067f5f5
7
+ data.tar.gz: 22f48cb818843388e228a63e7215d3e7f0749757b2a1f57f83015c3ccfc504c139658b0d120e0e38c29525e1a92e6a3b42f5aa798192794d324d4734e220a34e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
- # [0.0.97] - 2025-04-10
1
+ # [0.0.98] - 2025-04-10
2
2
 
3
3
  - Make atomic serializer dig into first entity instead of staying at the top
4
+ - Add Request#response
4
5
 
5
6
  # [0.0.96] - 2025-04-08
6
7
 
@@ -11,7 +11,8 @@ module Foobara
11
11
  :serializers,
12
12
  :inputs,
13
13
  :full_command_name,
14
- :action
14
+ :action,
15
+ :response
15
16
 
16
17
  attr_reader :command_class
17
18
 
@@ -243,7 +243,9 @@ module Foobara
243
243
  end
244
244
 
245
245
  def request_to_response(request)
246
- self.class::Response.new(request:)
246
+ response = self.class::Response.new(request:)
247
+ request.response = response
248
+ response
247
249
  end
248
250
 
249
251
  def set_response_status(response)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.97
4
+ version: 0.0.98
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi