terminal-shop 2.1.1 → 2.1.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: 54c0b0033036302e9ea998b80699f3a8947a0438aa0354013d3f43830b5b29a9
4
- data.tar.gz: 545054c9b181d799dc8c1f0a420a095149d156b0dc789af5dd7c729247b3010d
3
+ metadata.gz: e9bf917ec73c7cb09ab4763ed8c0413cffd0412def901e7a707aea888d0aac13
4
+ data.tar.gz: f475711c01405690ab9454431ae01ce45b02524c71639fba6cd37968692913f4
5
5
  SHA512:
6
- metadata.gz: 6506991e3b923b599db1c2872edb5301d461f35f2bb1efd018472f6b318b1d06a2f5a577a05e76693eb1639de8262d8fd564c87e7ef186eb08f9c8d2a3010556
7
- data.tar.gz: 7c7e72acd2d2de78683b47a85e6ab89e471d2ad51d005355fae9adc1f699c774fb5f06f5993473e6a203c0bbbb5ca6bda264ac2cd5127546ccd90d1cc04aec21
6
+ metadata.gz: 20b336aae8fb897c04a6be94c49b4739ce933aeed033e025a69b2bc15674697fd85546adddff1f8ab2d2baf2d0d1784ad2d313dfb3f36c2bbd6fe42defbbb2c2
7
+ data.tar.gz: 17fb0ad07044975fa2ee8a847c0e6ca8ed4df7c1d08cbc7557d7e6a6d728dfbb01047706bbb483539ccfab33ae035cf9efbcd611510e4f9ce81bda1c389e6a72
data/README.md CHANGED
@@ -15,7 +15,7 @@ The underlying REST API documentation can be found on [terminal.shop](https://te
15
15
  To use this gem, install via Bundler by adding the following to your application's `Gemfile`:
16
16
 
17
17
  ```ruby
18
- gem "terminal-shop", "~> 2.1.0"
18
+ gem "terminal-shop", "~> 2.1.1"
19
19
  ```
20
20
 
21
21
  To fetch an initial copy of the gem:
@@ -117,7 +117,7 @@ Due to limitations with the Sorbet type system, where a method otherwise can tak
117
117
  Please follow Sorbet's [setup guides](https://sorbet.org/docs/adopting) for best experience.
118
118
 
119
119
  ```ruby
120
- model = ProductListParams.new
120
+ model = TerminalShop::Models::ProductListParams.new
121
121
 
122
122
  terminal.product.list(**model)
123
123
  ```
@@ -65,7 +65,7 @@ module TerminalShop
65
65
  def delete(id, params = {})
66
66
  @client.request(
67
67
  method: :delete,
68
- path: ["address/%0s", id],
68
+ path: ["address/%1$s", id],
69
69
  model: TerminalShop::Models::AddressDeleteResponse,
70
70
  options: params[:request_options]
71
71
  )
@@ -83,7 +83,7 @@ module TerminalShop
83
83
  def get(id, params = {})
84
84
  @client.request(
85
85
  method: :get,
86
- path: ["address/%0s", id],
86
+ path: ["address/%1$s", id],
87
87
  model: TerminalShop::Models::AddressGetResponse,
88
88
  options: params[:request_options]
89
89
  )
@@ -53,7 +53,7 @@ module TerminalShop
53
53
  def delete(id, params = {})
54
54
  @client.request(
55
55
  method: :delete,
56
- path: ["app/%0s", id],
56
+ path: ["app/%1$s", id],
57
57
  model: TerminalShop::Models::AppDeleteResponse,
58
58
  options: params[:request_options]
59
59
  )
@@ -71,7 +71,7 @@ module TerminalShop
71
71
  def get(id, params = {})
72
72
  @client.request(
73
73
  method: :get,
74
- path: ["app/%0s", id],
74
+ path: ["app/%1$s", id],
75
75
  model: TerminalShop::Models::AppGetResponse,
76
76
  options: params[:request_options]
77
77
  )
@@ -52,7 +52,7 @@ module TerminalShop
52
52
  def delete(id, params = {})
53
53
  @client.request(
54
54
  method: :delete,
55
- path: ["card/%0s", id],
55
+ path: ["card/%1$s", id],
56
56
  model: TerminalShop::Models::CardDeleteResponse,
57
57
  options: params[:request_options]
58
58
  )
@@ -87,7 +87,7 @@ module TerminalShop
87
87
  def get(id, params = {})
88
88
  @client.request(
89
89
  method: :get,
90
- path: ["card/%0s", id],
90
+ path: ["card/%1$s", id],
91
91
  model: TerminalShop::Models::CardGetResponse,
92
92
  options: params[:request_options]
93
93
  )
@@ -55,7 +55,7 @@ module TerminalShop
55
55
  def get(id, params = {})
56
56
  @client.request(
57
57
  method: :get,
58
- path: ["order/%0s", id],
58
+ path: ["order/%1$s", id],
59
59
  model: TerminalShop::Models::OrderGetResponse,
60
60
  options: params[:request_options]
61
61
  )
@@ -31,7 +31,7 @@ module TerminalShop
31
31
  def get(id, params = {})
32
32
  @client.request(
33
33
  method: :get,
34
- path: ["product/%0s", id],
34
+ path: ["product/%1$s", id],
35
35
  model: TerminalShop::Models::ProductGetResponse,
36
36
  options: params[:request_options]
37
37
  )
@@ -63,7 +63,7 @@ module TerminalShop
63
63
  def delete(id, params = {})
64
64
  @client.request(
65
65
  method: :delete,
66
- path: ["subscription/%0s", id],
66
+ path: ["subscription/%1$s", id],
67
67
  model: TerminalShop::Models::SubscriptionDeleteResponse,
68
68
  options: params[:request_options]
69
69
  )
@@ -81,7 +81,7 @@ module TerminalShop
81
81
  def get(id, params = {})
82
82
  @client.request(
83
83
  method: :get,
84
- path: ["subscription/%0s", id],
84
+ path: ["subscription/%1$s", id],
85
85
  model: TerminalShop::Models::SubscriptionGetResponse,
86
86
  options: params[:request_options]
87
87
  )
@@ -47,7 +47,7 @@ module TerminalShop
47
47
  def delete(id, params = {})
48
48
  @client.request(
49
49
  method: :delete,
50
- path: ["token/%0s", id],
50
+ path: ["token/%1$s", id],
51
51
  model: TerminalShop::Models::TokenDeleteResponse,
52
52
  options: params[:request_options]
53
53
  )
@@ -65,7 +65,7 @@ module TerminalShop
65
65
  def get(id, params = {})
66
66
  @client.request(
67
67
  method: :get,
68
- path: ["token/%0s", id],
68
+ path: ["token/%1$s", id],
69
69
  model: TerminalShop::Models::TokenGetResponse,
70
70
  options: params[:request_options]
71
71
  )
@@ -253,9 +253,9 @@ module TerminalShop
253
253
  path
254
254
  in []
255
255
  ""
256
- in [String, *interpolations]
256
+ in [String => p, *interpolations]
257
257
  encoded = interpolations.map { ERB::Util.url_encode(_1) }
258
- path.first % encoded
258
+ format(p, *encoded)
259
259
  end
260
260
  end
261
261
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TerminalShop
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
 
3
3
  module TerminalShop
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module TerminalShop
2
- VERSION: "2.1.0"
2
+ VERSION: "2.1.1"
3
3
  end
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: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terminal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-01 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool