macaw_framework 1.5.0 → 1.5.1

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: 803f40a0a12304b555d3f998e323b4e475f10194518f566dc98e24c6b3984461
4
- data.tar.gz: c0e90bf375a372105324e4444419ce05b6362e056bc2d2894820653cf9d7ef0a
3
+ metadata.gz: 36ed8915e862db713e130e288cc6ed4ca4e1f86fdf08363629c7b05142a6475a
4
+ data.tar.gz: 82f7d0de7a9f5eb598cba6639fa7af8ead368487a14742699061027d457b1b9d
5
5
  SHA512:
6
- metadata.gz: 0d43d8371216644879492cf22e3269aa743b4d7f48638e2e06d6fa72c5d2ee0975611111306742457c57b0d443937b6983ee95c00a8400c897aa6c9ff8a083b9
7
- data.tar.gz: 7f453d9a093520e088dce07c93c9a818869511dc8b63a9737de6d958edd9ba88281d7f2104a46f0c39db945041de06e2d8adf016eb860d87df2fa406f38292f7
6
+ metadata.gz: 01c5a241d1a33714ea10dcf3685a4cdc8e529f2aeef2c6a2bcf96424fef344f85b2cb637bd65b9cb151b411967f5a6b62eb44bb1d3e5f53fb5ff73a6b3732301
7
+ data.tar.gz: 9bfc9e2780a41232a43233f53f4586982f7e13f65538d22c013b2e993b8877783575e547da532018350a5a6e0f52db7077ac310cb887d01a8ff2ef26e1aff07b
data/CHANGELOG.md CHANGED
@@ -208,3 +208,6 @@
208
208
  - Add `rescue StandardError` guard in `Cache#invalidation_process` to prevent silent background eviction-thread death
209
209
  - Fix `ThreadServer#shutdown` poison-pill count: uses actual `@workers.size` instead of `@num_threads`
210
210
  - Add C extension scaffold (`ext/macaw_framework_ext/`) as a foundation for future native performance-sensitive routines
211
+
212
+ ## [1.5.1]- 2026-06-07
213
+ - Fix an error when running the server on Ruby 4.0.5 on MacOS that default values for status and headers on the response were not being set when these values are implicit on method declaration
@@ -18,7 +18,7 @@ module ServerBase
18
18
  private
19
19
 
20
20
  def call_endpoint(name, client_data)
21
- @macaw.send(
21
+ body, status, headers = @macaw.send(
22
22
  name.to_sym,
23
23
  {
24
24
  headers: client_data[:headers],
@@ -26,6 +26,7 @@ module ServerBase
26
26
  params: client_data[:params]
27
27
  }
28
28
  )
29
+ [body || '', status || 200, headers || {}]
29
30
  end
30
31
 
31
32
  def get_client_data(body, headers, parameters)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MacawFramework
4
- VERSION = '1.5.0'
4
+ VERSION = '1.5.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macaw_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aria Diniz