sofia 0.1.4 → 0.1.5

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: 2c16a0331d44fdc638dc0efc3a30c4f9c4bfdfb7546361e37070b34ba88ed784
4
- data.tar.gz: 9496ec65c4403845ade1a049fc62453738d65f84363d32dc75f364778a58b6b8
3
+ metadata.gz: a7d9da1b3491c63c1c05616b6ccba0ba8a9355204dfdc6db8b0935943386d963
4
+ data.tar.gz: 98721c8043ae738d53b0014eea9b45918aa4f79fed17b37e5a8142d2549ba3a5
5
5
  SHA512:
6
- metadata.gz: c92bc688a73c1e3e6c0acbaa6c3ee21d0da5f237b82d920155a64976e377d98b8df234dea65f35bf1a98f7c8543ef1c815c36b6474f6278a398d376ea4e36345
7
- data.tar.gz: 796638bc140e642d0fb3d71598ae9a3e60e3e6dd786ca3589dbb39258f6cee16943b89fc4961d9f6c876b7c4119081a4523d4a801a3b0fe0fd6ba366d3d6652a
6
+ metadata.gz: f7a7a098c6299be5e9aec18f6cbecd5eaaac580c3051a13d13155f98c676475c86b10bc1f66a8c5ceb8502f50f5b8832c2d589148322cb75b1e2d169f5fcd959
7
+ data.tar.gz: 5ff87ca97606ceae67bef7e9fcfeb2188fe9b32df455ccb055a61eebe5b4944253a43774b7df6a88b7a23cbc72849becd35817d2772b607cd325bf6b6cbae654
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.5] - 2026-04-20
4
+
5
+ ### Fixed
6
+
7
+ - Properly handle responses with empty '' body.
8
+
3
9
  ## [0.1.4] - 2026-04-20
4
10
 
5
11
  ### Added
@@ -37,7 +37,7 @@ module Sofia
37
37
  #: -> JSONValue?
38
38
  def body
39
39
  body = raw_body
40
- return unless body
40
+ return if body.nil? || body.empty?
41
41
 
42
42
  JSON.parse(body)
43
43
  rescue JSON::ParserError
data/lib/sofia/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sofia
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sofia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - KubaJadrzak