terminal-shop 3.8.6 → 3.8.8

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: 23016a54b68479b8c18e5e6ca5f3b4d406f2325b13bdcc45961f598bdd89d044
4
- data.tar.gz: 70847be82c560254f11b262179ad912c362fbc3cbf0520073dd9153e343adfd0
3
+ metadata.gz: '09fe7fbacfd77da9b4c739227241f4e9e8331016e708eddd2d77fed59d2c2140'
4
+ data.tar.gz: 8156a863676ba3724e62a92ee49a4dd58034746ca99ee143c810228b3f7e8087
5
5
  SHA512:
6
- metadata.gz: 1a12a63e5a30e0649682fd1ebb942d1486cfb1ebc6eb49519d3011f0b3ba2c34092a31ac8f1b362513d8a702bbe1dfe1a2d2a4bcb49826c97ae8581611d47b73
7
- data.tar.gz: 497d0a13f98f1306c9997abcd5334484d339158d5e8361de7ba1da6c75a98a86305499b94e39668b15210bbba430ab204c4f71fca3b9c66baa631668a47e4364
6
+ metadata.gz: 4f4497844d84e0507224abd340aa74e0ad23eec3118da052caf20a7366d6b1247fabe1fc993d9adfcb225e5c0c585341448f848acc7cba7931a2c083d06ac050
7
+ data.tar.gz: c0dd90dd71e9e54b0215f002bfdbeea6fcda64cf263f27940b74822096576a672a4d5d1a5f6a18dad5784768d1b9848c31625cb3d6a3b9492aae17c6f06167d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.8.8 (2025-07-29)
4
+
5
+ Full Changelog: [v3.8.7...v3.8.8](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.8.7...v3.8.8)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **internal:** ensure sorbet test always runs serially ([930be27](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/930be27b01e695ce028f13e29c538f5ace851cef))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **ci:** only run for pushes and fork pull requests ([793774d](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/793774dabec34277b8a5906958f4fe88919bdeaa))
15
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([816b2e8](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/816b2e81eb4275597b54b53d9a8a2803d106712c))
16
+ * **internal:** codegen related update ([1cbc702](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/1cbc702862c19b950259123dd40832aa6c7ca288))
17
+ * update contribute.md ([09724c1](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/09724c11fb4132e226eeda713288c04845e5061a))
18
+
19
+ ## 3.8.7 (2025-06-28)
20
+
21
+ Full Changelog: [v3.8.6...v3.8.7](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.8.6...v3.8.7)
22
+
23
+ ### Bug Fixes
24
+
25
+ * sorbet type annotation on client's `environ` settings ([644ab1c](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/644ab1c82711603dd0b93521aa1d025fd446ce47))
26
+
27
+
28
+ ### Chores
29
+
30
+ * **internal:** codegen related update ([1391c7f](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/1391c7f943ab85c1abf4f5bda9d1ab7f468b8f12))
31
+
3
32
  ## 3.8.6 (2025-06-27)
4
33
 
5
34
  Full Changelog: [v3.8.5...v3.8.6](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.8.5...v3.8.6)
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 "terminal-shop", "~> 3.8.6"
20
+ gem "terminal-shop", "~> 3.8.8"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -474,6 +474,7 @@ module TerminalShop
474
474
  self.class.validate!(req)
475
475
  model = req.fetch(:model) { TerminalShop::Internal::Type::Unknown }
476
476
  opts = req[:options].to_h
477
+ unwrap = req[:unwrap]
477
478
  TerminalShop::RequestOptions.validate!(opts)
478
479
  request = build_request(req.except(:options), opts)
479
480
  url = request.fetch(:url)
@@ -490,11 +491,18 @@ module TerminalShop
490
491
  decoded = TerminalShop::Internal::Util.decode_content(response, stream: stream)
491
492
  case req
492
493
  in {stream: Class => st}
493
- st.new(model: model, url: url, status: status, response: response, stream: decoded)
494
+ st.new(
495
+ model: model,
496
+ url: url,
497
+ status: status,
498
+ response: response,
499
+ unwrap: unwrap,
500
+ stream: decoded
501
+ )
494
502
  in {page: Class => page}
495
503
  page.new(client: self, req: req, headers: response, page_data: decoded)
496
504
  else
497
- unwrapped = TerminalShop::Internal::Util.dig(decoded, req[:unwrap])
505
+ unwrapped = TerminalShop::Internal::Util.dig(decoded, unwrap)
498
506
  TerminalShop::Internal::Type::Converter.coerce(model, unwrapped)
499
507
  end
500
508
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TerminalShop
4
- VERSION = "3.8.6"
4
+ VERSION = "3.8.8"
5
5
  end
@@ -68,7 +68,7 @@ module TerminalShop
68
68
  params(
69
69
  bearer_token: T.nilable(String),
70
70
  app_id: T.nilable(String),
71
- environment: NilClass,
71
+ environment: T.nilable(T.any(Symbol, String)),
72
72
  base_url: T.nilable(String),
73
73
  max_retries: Integer,
74
74
  timeout: Float,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-shop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.6
4
+ version: 3.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terminal
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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool