bug_bunny 4.5.1 → 4.5.3
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/CHANGELOG.md +10 -0
- data/lib/bug_bunny/controller.rb +1 -14
- data/lib/bug_bunny/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9432574fbe3a1b19c3f9eb4317cc66a10fc1e0f5b536f13d4fffdba1aa086a3d
|
|
4
|
+
data.tar.gz: 779dd27c82ef03139dea34dc6969ef66385793377214149a8f34d416f46e5b79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20091c38f5f4b049aa4273e58f6b067a4502a388681048041ac35b341f88331412d36f2d3d3cf4baae218bb0a6a53759629761d9d50d2ca4b3ee048254f5de46
|
|
7
|
+
data.tar.gz: df4c691e043949d459f52d77e899f7a91fdad7ba2e9122068f46e973ba3cc670d50b17019167318a1290f73b7b8f9cff28dbd30773a18cb933d8de39f6dac34d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.5.3] - 2026-03-30
|
|
4
|
+
|
|
5
|
+
### 🐛 Bug Fixes
|
|
6
|
+
* **Controller:** Se corrigió `prepare_params` para ignorar el body cuando es un String vacío, evitando `BugBunny::BadRequest: Invalid JSON in request body` en peticiones GET sin body.
|
|
7
|
+
|
|
8
|
+
## [4.5.2] - 2026-03-30
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
* **Controller:** Se eliminó el método `headers` introducido en v4.5.0 que pisaba el `attribute :headers` de ActiveModel. Esto causaba que `headers[:action]` fuera `nil` al procesar cualquier mensaje, resultando en `NoMethodError: undefined method 'to_sym' for nil`. Los response headers siguen siendo accesibles via `response_headers`.
|
|
12
|
+
|
|
3
13
|
## [4.5.1] - 2026-03-30
|
|
4
14
|
|
|
5
15
|
### ✨ New Features
|
data/lib/bug_bunny/controller.rb
CHANGED
|
@@ -33,7 +33,6 @@ module BugBunny
|
|
|
33
33
|
attribute :raw_string
|
|
34
34
|
|
|
35
35
|
# @return [Hash] Headers de respuesta que serán enviados de vuelta en RPC.
|
|
36
|
-
# @deprecated Use {#response_headers} instead or the helper {#headers}.
|
|
37
36
|
attr_reader :response_headers
|
|
38
37
|
|
|
39
38
|
# @return [Hash, nil] Respuesta final renderizada.
|
|
@@ -41,18 +40,6 @@ module BugBunny
|
|
|
41
40
|
|
|
42
41
|
# @!endgroup
|
|
43
42
|
|
|
44
|
-
# API de Cabeceras de Respuesta (Estilo Rails)
|
|
45
|
-
# Permite manipular fácilmente los headers AMQP que se enviarán de vuelta al cliente.
|
|
46
|
-
#
|
|
47
|
-
# @example
|
|
48
|
-
# headers['X-Custom-Header'] = 'Value'
|
|
49
|
-
# headers[:content_type] = 'application/pdf'
|
|
50
|
-
#
|
|
51
|
-
# @return [Hash] El Hash de cabeceras de respuesta.
|
|
52
|
-
def headers
|
|
53
|
-
@response_headers
|
|
54
|
-
end
|
|
55
|
-
|
|
56
43
|
|
|
57
44
|
# ==========================================
|
|
58
45
|
# INFRAESTRUCTURA DE FILTROS Y LOGS (HEREDABLES)
|
|
@@ -253,7 +240,7 @@ module BugBunny
|
|
|
253
240
|
|
|
254
241
|
if body.is_a?(Hash)
|
|
255
242
|
params.merge!(body)
|
|
256
|
-
elsif body.is_a?(String) && headers[:content_type].to_s.include?('json')
|
|
243
|
+
elsif body.is_a?(String) && body.present? && headers[:content_type].to_s.include?('json')
|
|
257
244
|
begin
|
|
258
245
|
params.merge!(JSON.parse(body))
|
|
259
246
|
rescue JSON::ParserError => e
|
data/lib/bug_bunny/version.rb
CHANGED