onebusaway-sdk 1.0.8 → 1.0.10

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: cd6c45e5984494973169c3532e5020a97abe54feb6c2d526f547a4a63557b9b1
4
- data.tar.gz: 592b70cb18d02e8301fa93874d37b27e591c073e00196ed4617d60c04cd2ab6a
3
+ metadata.gz: 3fb7a41f1316f6f61ae9e410b4cbea5714d7d07b18a01f171e61287f971a56db
4
+ data.tar.gz: 0f47183aea0e1ae04fc58b08717b3f00cdf655645cd2f229d9e2bbc1ef514db4
5
5
  SHA512:
6
- metadata.gz: 0f86660ab1a97f514e151d982b8b6134d4edb583e95a6c88216f5274f5c4c769d560683b45b1c56bd4ef8fbbf558b793fecf0ff4534db843fd5bb75fd07d09f8
7
- data.tar.gz: 86de9af710d48f585761fe2d7c886adbc5dc29b1839384174f3127e9f307f9a9f232b34e76fb125cc4be00af80482a5373a78bf21c5f02b1faa68b9ad6124f1c
6
+ metadata.gz: 24ed896c0a07f043f812d30a4846e92a52fd1a8aa5c3f064731c1614b608f38d32b4d6c81286b1fc26184a3329ff9e1e6ddc5cd9f0124bc6a096975b794321d7
7
+ data.tar.gz: bbd124ac5f1c55714c289ecb057b0ade008b47f14754321408dd389b6b19fef5ccf07971a53ce2c70d99b073651321904b56e34608f6fb1b182518a9bc5b0e81
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.10 (2025-07-01)
4
+
5
+ Full Changelog: [v1.0.9...v1.0.10](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.9...v1.0.10)
6
+
7
+ ### Chores
8
+
9
+ * **ci:** only run for pushes and fork pull requests ([64a0591](https://github.com/OneBusAway/ruby-sdk/commit/64a0591f91cc98b55b583d81727ae067c0c1d1c2))
10
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([2710480](https://github.com/OneBusAway/ruby-sdk/commit/27104809a931e4c3e99cb3cc5949c531816e5b87))
11
+ * **internal:** version bump ([a8f4163](https://github.com/OneBusAway/ruby-sdk/commit/a8f416393445b3b824740a5159b5c35aa455048e))
12
+
13
+ ## 1.0.9 (2025-06-27)
14
+
15
+ Full Changelog: [v1.0.8...v1.0.9](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.8...v1.0.9)
16
+
17
+ ### Bug Fixes
18
+
19
+ * **ci:** release-doctor — report correct token name ([9c550bf](https://github.com/OneBusAway/ruby-sdk/commit/9c550bf5cff1eee21ffa66565ee5245e099f6a28))
20
+
21
+
22
+ ### Chores
23
+
24
+ * **internal:** version bump ([0249814](https://github.com/OneBusAway/ruby-sdk/commit/02498140d38148e79738af88f5794f19949127ad))
25
+
3
26
  ## 1.0.8 (2025-06-18)
4
27
 
5
28
  Full Changelog: [v1.0.7...v1.0.8](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.7...v1.0.8)
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.8"
20
+ gem "onebusaway-sdk", "~> 1.0.10"
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.8"
4
+ VERSION = "1.0.10"
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.8
4
+ version: 1.0.10
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-20 00:00:00.000000000 Z
11
+ date: 2025-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool