bug_bunny 4.5.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0f764a7f2038bc0f25ae3b15ed137eb54d7061674fa5903833f77b226a2484b
4
- data.tar.gz: 3f8d05f541e050441f6b9a15d6dce28fd4aa545258001bccbfe31ae8106729c9
3
+ metadata.gz: 9432574fbe3a1b19c3f9eb4317cc66a10fc1e0f5b536f13d4fffdba1aa086a3d
4
+ data.tar.gz: 779dd27c82ef03139dea34dc6969ef66385793377214149a8f34d416f46e5b79
5
5
  SHA512:
6
- metadata.gz: d0647375c55483c1baade8baaf9d9825d0bb02d164ad2fa0b1967bbf42eeef0355c29795c0a7befa2ed154eee7113e299845f2f798770b03a87ad0b2cd73b92c
7
- data.tar.gz: 52e78f60fcf5aa0ed55e22c210b223ba27b5681939033ee903c604432ba4a4ffd66a0f4d48aa309c9cd03a6d6afbb7c945a3e0f255065bb61b64949e2e497750
6
+ metadata.gz: 20091c38f5f4b049aa4273e58f6b067a4502a388681048041ac35b341f88331412d36f2d3d3cf4baae218bb0a6a53759629761d9d50d2ca4b3ee048254f5de46
7
+ data.tar.gz: df4c691e043949d459f52d77e899f7a91fdad7ba2e9122068f46e973ba3cc670d50b17019167318a1290f73b7b8f9cff28dbd30773a18cb933d8de39f6dac34d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## [4.5.2] - 2026-03-30
4
9
 
5
10
  ### 🐛 Bug Fixes
@@ -240,7 +240,7 @@ module BugBunny
240
240
 
241
241
  if body.is_a?(Hash)
242
242
  params.merge!(body)
243
- 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')
244
244
  begin
245
245
  params.merge!(JSON.parse(body))
246
246
  rescue JSON::ParserError => e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BugBunny
4
- VERSION = "4.5.2"
4
+ VERSION = "4.5.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bug_bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.2
4
+ version: 4.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - gabix