onebusaway-sdk 1.0.9 → 1.0.11

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: f0da03fd73aacef89f8b847f4ac04c81161552a6b6a09467c62c1b33f6d4500e
4
- data.tar.gz: f95248ab95283da44e327c7302ce0657a86771b100c9e251a315d70a61fdb969
3
+ metadata.gz: b491b43523c04dc8afe88602d5463c04fef52d0ae1720b9512ece8b31ac02361
4
+ data.tar.gz: d64fb32161714d3170bfcd16ebffd649f6a9cc3b5dc7fb37ce40b37bbde22e81
5
5
  SHA512:
6
- metadata.gz: ddeddfc4d3632e8cd9df91fa3c2b9e1f7b34ed4f71f94a2e52b9b5e212955ffa5382fd0ff7df3adcdff0c3ae04555e0570ed469b787870d135be3d1f2eec03a6
7
- data.tar.gz: 8a652d8214cf2fd0f7a20c89e3c1bdd9f14f39f3695bab655ee7293f172ee379076371d709907f0245a6f0149eca63c5a21cccc85c97aafe43a32814d8c853fb
6
+ metadata.gz: 3a641000406182420b5e9bbabbb42d0bd2e62557c14363c169ed05c21df84a6ca91bb00faed386d6e9b5372f517491bd11bedb9163a90a83d5dcca326547fe6e
7
+ data.tar.gz: b1af1566c8da91c01e469914057240b39bb7c45f3a33cf06933e2e2d8097ad8e3e0019b7298524f9af6a3b310a61ce3f442eae308f57b2969d78acd25533f923
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.11 (2025-07-05)
4
+
5
+ Full Changelog: [v1.0.10...v1.0.11](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.10...v1.0.11)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** version bump ([894dcf1](https://github.com/OneBusAway/ruby-sdk/commit/894dcf12f6a7834f07e828a78e61c59ff8390799))
10
+
11
+ ## 1.0.10 (2025-07-01)
12
+
13
+ Full Changelog: [v1.0.9...v1.0.10](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.9...v1.0.10)
14
+
15
+ ### Chores
16
+
17
+ * **ci:** only run for pushes and fork pull requests ([64a0591](https://github.com/OneBusAway/ruby-sdk/commit/64a0591f91cc98b55b583d81727ae067c0c1d1c2))
18
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([2710480](https://github.com/OneBusAway/ruby-sdk/commit/27104809a931e4c3e99cb3cc5949c531816e5b87))
19
+ * **internal:** version bump ([a8f4163](https://github.com/OneBusAway/ruby-sdk/commit/a8f416393445b3b824740a5159b5c35aa455048e))
20
+
3
21
  ## 1.0.9 (2025-06-27)
4
22
 
5
23
  Full Changelog: [v1.0.8...v1.0.9](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.8...v1.0.9)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "onebusaway-sdk", "~> 1.0.9"
20
+ gem "onebusaway-sdk", "~> 1.0.11"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -481,6 +481,7 @@ module OnebusawaySDK
481
481
  self.class.validate!(req)
482
482
  model = req.fetch(:model) { OnebusawaySDK::Internal::Type::Unknown }
483
483
  opts = req[:options].to_h
484
+ unwrap = req[:unwrap]
484
485
  OnebusawaySDK::RequestOptions.validate!(opts)
485
486
  request = build_request(req.except(:options), opts)
486
487
  url = request.fetch(:url)
@@ -497,11 +498,18 @@ module OnebusawaySDK
497
498
  decoded = OnebusawaySDK::Internal::Util.decode_content(response, stream: stream)
498
499
  case req
499
500
  in {stream: Class => st}
500
- st.new(model: model, url: url, status: status, response: response, stream: decoded)
501
+ st.new(
502
+ model: model,
503
+ url: url,
504
+ status: status,
505
+ response: response,
506
+ unwrap: unwrap,
507
+ stream: decoded
508
+ )
501
509
  in {page: Class => page}
502
510
  page.new(client: self, req: req, headers: response, page_data: decoded)
503
511
  else
504
- unwrapped = OnebusawaySDK::Internal::Util.dig(decoded, req[:unwrap])
512
+ unwrapped = OnebusawaySDK::Internal::Util.dig(decoded, unwrap)
505
513
  OnebusawaySDK::Internal::Type::Converter.coerce(model, unwrapped)
506
514
  end
507
515
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnebusawaySDK
4
- VERSION = "1.0.9"
4
+ VERSION = "1.0.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebusaway-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onebusaway SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-27 00:00:00.000000000 Z
11
+ date: 2025-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool