terminal-shop 3.10.1 → 3.10.3
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 +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +10 -1
- data/lib/terminal_shop/internal/util.rb +7 -2
- data/lib/terminal_shop/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d61df2e114756dbbfb93ea2cdec70392ee37c74f696c443d47c34cd63c48f89c
|
|
4
|
+
data.tar.gz: 3c9fa59e02708b4bc15a1910b6da524afa26b0343af1d2d3205f7fbace177b4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85722eaa616b05214c7bef5e4b3eceb52ea7e0e72b44384651e1cc0d30e6505a30446e56e0ada319150e9b67d701870185ef765b907b0bcfdf91794302188a9c
|
|
7
|
+
data.tar.gz: 9a5c73c0fbfa4b3a6f913b2cb99898e6f4079020f0918af2b88e835f7ecfee0bc999fe288f41ec0e7243df9c6dae0bbf969a683c522a21d7e2e47e4880043c4d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.10.3 (2026-01-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.10.2...v3.10.3](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.10.2...v3.10.3)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **docs:** fix mcp installation instructions for remote servers ([ff86a8f](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/ff86a8f617a44d9df0a24b59d96d1b4fae2404f1))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** codegen related update ([545b7c1](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/545b7c1a4e1c4f201a62ae77952a617337a2a22b))
|
|
15
|
+
* **internal:** update `actions/checkout` version ([ba75639](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/ba75639d09dde2eb118d992692da037bdc8b36fb))
|
|
16
|
+
* move `cgi` into dependencies for ruby 4 ([626c4e6](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/626c4e64fa92d541cd426394b02cf2762a75e5c1))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
* prominently feature MCP server setup in root SDK readmes ([f4d6ff4](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/f4d6ff4c379ad2881ff828fe1fa92b68f2603433))
|
|
22
|
+
|
|
23
|
+
## 3.10.2 (2025-12-19)
|
|
24
|
+
|
|
25
|
+
Full Changelog: [v3.10.1...v3.10.2](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.10.1...v3.10.2)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* issue where json.parse errors when receiving HTTP 204 with nobody ([94aa4f7](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/94aa4f755ac518ba4c7ae4527cb19e2349405988))
|
|
30
|
+
|
|
3
31
|
## 3.10.1 (2025-12-17)
|
|
4
32
|
|
|
5
33
|
Full Changelog: [v3.10.0...v3.10.1](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.10.0...v3.10.1)
|
data/README.md
CHANGED
|
@@ -4,6 +4,15 @@ The Terminal Ruby library provides convenient access to the Terminal REST API fr
|
|
|
4
4
|
|
|
5
5
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
6
6
|
|
|
7
|
+
## MCP Server
|
|
8
|
+
|
|
9
|
+
Use the Terminal MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
|
|
10
|
+
|
|
11
|
+
[](https://cursor.com/en-US/install-mcp?name=%40terminaldotshop%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB0ZXJtaW5hbGRvdHNob3AvbWNwIl0sImVudiI6eyJURVJNSU5BTF9CRUFSRVJfVE9LRU4iOiJNeSBCZWFyZXIgVG9rZW4iLCJURVJNSU5BTF9BUFBfSUQiOiJNeSBBcHAgSUQifX0)
|
|
12
|
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40terminaldotshop%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40terminaldotshop%2Fmcp%22%5D%2C%22env%22%3A%7B%22TERMINAL_BEARER_TOKEN%22%3A%22My%20Bearer%20Token%22%2C%22TERMINAL_APP_ID%22%3A%22My%20App%20ID%22%7D%7D)
|
|
13
|
+
|
|
14
|
+
> Note: You may need to set environment variables in your MCP client.
|
|
15
|
+
|
|
7
16
|
## Documentation
|
|
8
17
|
|
|
9
18
|
Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/terminal-shop).
|
|
@@ -17,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
17
26
|
<!-- x-release-please-start-version -->
|
|
18
27
|
|
|
19
28
|
```ruby
|
|
20
|
-
gem "terminal-shop", "~> 3.10.
|
|
29
|
+
gem "terminal-shop", "~> 3.10.3"
|
|
21
30
|
```
|
|
22
31
|
|
|
23
32
|
<!-- x-release-please-end -->
|
|
@@ -657,7 +657,8 @@ module TerminalShop
|
|
|
657
657
|
def decode_content(headers, stream:, suppress_error: false)
|
|
658
658
|
case (content_type = headers["content-type"])
|
|
659
659
|
in TerminalShop::Internal::Util::JSON_CONTENT
|
|
660
|
-
json = stream.to_a.join
|
|
660
|
+
return nil if (json = stream.to_a.join).empty?
|
|
661
|
+
|
|
661
662
|
begin
|
|
662
663
|
JSON.parse(json, symbolize_names: true)
|
|
663
664
|
rescue JSON::ParserError => e
|
|
@@ -667,7 +668,11 @@ module TerminalShop
|
|
|
667
668
|
in TerminalShop::Internal::Util::JSONL_CONTENT
|
|
668
669
|
lines = decode_lines(stream)
|
|
669
670
|
chain_fused(lines) do |y|
|
|
670
|
-
lines.each
|
|
671
|
+
lines.each do
|
|
672
|
+
next if _1.empty?
|
|
673
|
+
|
|
674
|
+
y << JSON.parse(_1, symbolize_names: true)
|
|
675
|
+
end
|
|
671
676
|
end
|
|
672
677
|
in %r{^text/event-stream}
|
|
673
678
|
lines = decode_lines(stream)
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: terminal-shop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.10.
|
|
4
|
+
version: 3.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Terminal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: cgi
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: connection_pool
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|