orb-billing 1.2.1 → 1.2.2

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: 1fdd3792dd2f4b216b055214e10a34fba8e05e175fefa5106dc44423f55a26c2
4
- data.tar.gz: f6cbbc5b1f5d5c9629275a8b6e86379df399524b22b34626c19dd466525eb88c
3
+ metadata.gz: afcbe006d15f1b5df99ac209c4f62fbe5497f76d9b8159d009d7ae2a9c16bfe2
4
+ data.tar.gz: 65861f26b1f2a5e7dd8d76f01ec8cf6ea1271a4c39ae4066c89b2fe964f5f189
5
5
  SHA512:
6
- metadata.gz: 073b20f1d91023f3850ed382ce91810d5e17a4a162f676a52f060194ebd1380d07545f382cc34889cc4d1552c9b72b54b52fe1d0af76fd3148cef00642c06762
7
- data.tar.gz: 847e9bdfe877b9473458c0098ae615318b9e045dc5c6c33915fc5627023852402f760d5324e2f8ca4caaf66beda9d6a7b16f950029606f6a7d37708a839a1cf4
6
+ metadata.gz: 399451209f44f09ff418fadc8fe5d439acb89406722bec28b6087a16d0808f2b0d1f76b5f1ae188d9ea1ca681be671af2949ef238cb2b8fdf2cbd917f3cac385
7
+ data.tar.gz: a586a8b941ee21c4a25349c0d696ff5ce5b32545c8b9bb8db02737a9f71b72721b94329e79bac01e74eec62261de4d69d68584035ec84ed67f8980f0bde17a05
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.2 (2025-06-30)
4
+
5
+ Full Changelog: [v1.2.1...v1.2.2](https://github.com/orbcorp/orb-ruby/compare/v1.2.1...v1.2.2)
6
+
7
+ ### Chores
8
+
9
+ * **ci:** only run for pushes and fork pull requests ([c6f7b50](https://github.com/orbcorp/orb-ruby/commit/c6f7b5036f4a214647af2fa2854d2a6eaf52c128))
10
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([d713b5f](https://github.com/orbcorp/orb-ruby/commit/d713b5f3442bb9842f109ae0cb76e70fdc52506c))
11
+ * **internal:** version bump ([0b13270](https://github.com/orbcorp/orb-ruby/commit/0b132708d6e1294f44e026b249846721e08de2af))
12
+
3
13
  ## 1.2.1 (2025-06-26)
4
14
 
5
15
  Full Changelog: [v1.2.0...v1.2.1](https://github.com/orbcorp/orb-ruby/compare/v1.2.0...v1.2.1)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.2.1"
18
+ gem "orb-billing", "~> 1.2.2"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -468,6 +468,7 @@ module Orb
468
468
  self.class.validate!(req)
469
469
  model = req.fetch(:model) { Orb::Internal::Type::Unknown }
470
470
  opts = req[:options].to_h
471
+ unwrap = req[:unwrap]
471
472
  Orb::RequestOptions.validate!(opts)
472
473
  request = build_request(req.except(:options), opts)
473
474
  url = request.fetch(:url)
@@ -484,11 +485,18 @@ module Orb
484
485
  decoded = Orb::Internal::Util.decode_content(response, stream: stream)
485
486
  case req
486
487
  in {stream: Class => st}
487
- st.new(model: model, url: url, status: status, response: response, stream: decoded)
488
+ st.new(
489
+ model: model,
490
+ url: url,
491
+ status: status,
492
+ response: response,
493
+ unwrap: unwrap,
494
+ stream: decoded
495
+ )
488
496
  in {page: Class => page}
489
497
  page.new(client: self, req: req, headers: response, page_data: decoded)
490
498
  else
491
- unwrapped = Orb::Internal::Util.dig(decoded, req[:unwrap])
499
+ unwrapped = Orb::Internal::Util.dig(decoded, unwrap)
492
500
  Orb::Internal::Type::Converter.coerce(model, unwrapped)
493
501
  end
494
502
  end
data/lib/orb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orb
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orb-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-26 00:00:00.000000000 Z
11
+ date: 2025-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool