bsv-sdk 0.23.0 → 0.23.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: 5545794c00575e8bb9ce8ad04e6e156c435a9ed984e43a99db86e85d9d9648cb
4
- data.tar.gz: 197daaa1e748ee650192920494a610d9f5aac6dcc43038eceb73c17991ba67f0
3
+ metadata.gz: ce9ccc589a407c6ad98d92e40b9ac05925f3fbf32cc73aa235b9fd9a35b7ad43
4
+ data.tar.gz: 46992e9ea4f2465c4ca80ad2bb84e2591426610b46d1eea72e11171efdc271bf
5
5
  SHA512:
6
- metadata.gz: 4382cc39a0c07227ba143554943fe66dedb9deaf5b7275ab82731417c4b9150fcfce27dd689b456db374cfdc7d6d4bd7c58238c00219b928332f6b19e0c24041
7
- data.tar.gz: c6549c97011519d2d0ad8b4856df12fcc72311ff1a9800ec19b9e0d97d10355322f3216fb3c52a4c10b11bad3196b8ec01dd901a10e219d9cce3fd6ecd4a5770
6
+ metadata.gz: ac7da8fbd4e5cb9e0385bb3035dc34d44460232afe826b095d19cccc04faece15cd090045c49d7d176f68d7ba98b5a16105812c66ae8ac27d657df8682b8c499
7
+ data.tar.gz: 1b6946dd9762ac777aa8d1fff4392c96e30cfabd5c6b14f3eba7a8997e7ef0f8d5eca86383c131dfb479ce7f6ac94b7049bc50490edde5b0ff6b6994d8392629
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to the `bsv-sdk` gem are documented here.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
6
  and this gem adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.23.1 — 2026-06-06
9
+
10
+ ### Fixed
11
+ - `Protocols::Arcade#parse_broadcast_response`, `Protocols::ARC#parse_single_broadcast_response`,
12
+ and `Protocols::ARC#parse_batch_broadcast_response` now preserve the parsed response body as
13
+ `data:` on non-2xx responses. Previously the body was parsed only to extract an `error_message`,
14
+ then discarded — leaving callers with `data: nil` and no way to read `txStatus` / `extraInfo`
15
+ from synchronous broadcast failures (the terminal-rejection shape). Additive change; the 2xx
16
+ success path and ARC's existing 2xx-REJECTED branch are unchanged. (#793)
17
+
8
18
  ## 0.23.0 — 2026-06-03
9
19
 
10
20
  ### Changed (breaking)
@@ -179,7 +179,8 @@ module BSV
179
179
  return ProtocolResponse.new(
180
180
  response,
181
181
  http_success: false,
182
- error_message: body['detail'] || body['title'] || "HTTP #{code}"
182
+ error_message: body['detail'] || body['title'] || "HTTP #{code}",
183
+ data: body
183
184
  )
184
185
  end
185
186
 
@@ -215,7 +216,8 @@ module BSV
215
216
  return ProtocolResponse.new(
216
217
  response,
217
218
  http_success: false,
218
- error_message: body.is_a?(Hash) ? (body['detail'] || body['title'] || "HTTP #{code}") : "HTTP #{code}"
219
+ error_message: body.is_a?(Hash) ? (body['detail'] || body['title'] || "HTTP #{code}") : "HTTP #{code}",
220
+ data: body.is_a?(Hash) || body.is_a?(Array) ? body : nil
219
221
  )
220
222
  end
221
223
 
@@ -127,7 +127,8 @@ module BSV
127
127
  return ProtocolResponse.new(
128
128
  response,
129
129
  http_success: false,
130
- error_message: body.is_a?(Hash) ? (body['reason'] || body['detail'] || "HTTP #{code}") : "HTTP #{code}"
130
+ error_message: body.is_a?(Hash) ? (body['reason'] || body['detail'] || "HTTP #{code}") : "HTTP #{code}",
131
+ data: body.is_a?(Hash) ? body : nil
131
132
  )
132
133
  end
133
134
 
data/lib/bsv/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BSV
4
- VERSION = '0.23.0'
4
+ VERSION = '0.23.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsv-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Bettison