trino-client 2.2.1 → 2.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: a44518a87285ae0051f9543aa73cb869a5d34c355adea490ee43107a88476e56
4
- data.tar.gz: 28a0d53b23d0a74a165e1c83d5c9cfbe87fe926d885c0f5eb8161d7c39c1fa8d
3
+ metadata.gz: 43cef8b0e4d066cb1621453d85cd356d0403ce64f261c4a87b1d2dd1b3a89088
4
+ data.tar.gz: a398c82885cd706560f5aa5dd8bb3ddd285e6af5d380741505be205e24c8dcc1
5
5
  SHA512:
6
- metadata.gz: 39630d06e5b300f764c1b861a488c63bbe7c465eee0dc0d8b1979904194429a33c2685a67e47c4c81904fd39e604aa4ed2e4ec93263594f872b924061ad543e3
7
- data.tar.gz: 77c635eed6243bdb7eaccace39a2aee3e22fe8c0654b514644f1acb7d374fb365de7c4920daa72e1a647aa3b4406388ab6b59ef5900f5e4d7807053dc081c2c1
6
+ metadata.gz: 1fdced777c13761f88f53a12b8232a7b7aa5bf45511bf9e1035c3a8c22067389e5054383849926b10616985a1926d921b8b5dccf0e2ee06a48f6991c50abb790
7
+ data.tar.gz: 57b8fd77d3e3909fc620ebb0e0aeb367d04ad6dd5a382230a4dd98b586381c1b9ef9ff0866e830fbeb1b3b2d1fa20f704abf145500c65f404bb36a8cbcad3da7
data/ChangeLog.md CHANGED
@@ -1,5 +1,10 @@
1
1
  trino-client-ruby
2
2
  ====
3
+ ## 2.2.2
4
+ - Close StatementClient when hitting client-side timeout ([#136](https://github.com/treasure-data/trino-client-ruby/issues/136)) [[b3261b1](https://github.com/treasure-data/trino-client-ruby/commit/b3261b1)]
5
+ - Tune Ruby versions in CI / Drop ruby 2.7, 3.0 and 3.1 supports ([#135](https://github.com/treasure-data/trino-client-ruby/issues/135)) [[da87c84](https://github.com/treasure-data/trino-client-ruby/commit/da87c84)]
6
+ - Update standard requirement from ~> 1.30.1 to ~> 1.35.0 ([#132](https://github.com/treasure-data/trino-client-ruby/issues/132)) [[4f05141](https://github.com/treasure-data/trino-client-ruby/commit/4f05141)]
7
+
3
8
  ## 2.2.1
4
9
  - fix: Retry GET against 502, 503 responses ([#129](https://github.com/treasure-data/trino-client-ruby/issues/129)) [[80f342d](https://github.com/treasure-data/trino-client-ruby/commit/80f342d)]
5
10
  - Update CODEOWNERS ([#127](https://github.com/treasure-data/trino-client-ruby/issues/127)) [[bad4b34](https://github.com/treasure-data/trino-client-ruby/commit/bad4b34)]
@@ -72,7 +72,7 @@ module Trino::Client
72
72
  end
73
73
  end
74
74
 
75
- def self.new(*args)
76
- Client.new(*args)
75
+ def self.new(...)
76
+ Client.new(...)
77
77
  end
78
78
  end
@@ -233,6 +233,7 @@ module Trino::Client
233
233
  elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - @started_at
234
234
 
235
235
  if @query_timeout && elapsed > @query_timeout
236
+ close
236
237
  raise_timeout_error!
237
238
  end
238
239
 
@@ -240,6 +241,7 @@ module Trino::Client
240
241
  elapsed > @plan_timeout
241
242
  # @results is not set (even first faraday_get_with_retry isn't called yet) or
242
243
  # result from Trino doesn't include result schema. Query planning isn't done yet.
244
+ close
243
245
  raise_timeout_error!
244
246
  end
245
247
  end
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Trino
17
17
  module Client
18
- VERSION = "2.2.1"
18
+ VERSION = "2.2.2"
19
19
  end
20
20
  end
data/trino-client.gemspec CHANGED
@@ -15,18 +15,22 @@ Gem::Specification.new do |gem|
15
15
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
16
16
  gem.require_paths = ["lib"]
17
17
 
18
- gem.required_ruby_version = ">= 2.7.0"
18
+ gem.required_ruby_version = ">= 3.2.0"
19
19
 
20
20
  gem.add_dependency "faraday", ">= 1", "< 3"
21
21
  gem.add_dependency "faraday-gzip", ">= 1"
22
22
  gem.add_dependency "faraday-follow_redirects", ">= 0.3"
23
23
  gem.add_dependency "msgpack", [">= 1.5.1"]
24
24
 
25
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4")
26
+ gem.add_dependency("base64")
27
+ end
28
+
25
29
  gem.add_development_dependency "rake", [">= 0.9.2", "< 14.0"]
26
30
  gem.add_development_dependency "rspec", "~> 3.13.0"
27
31
  gem.add_development_dependency "webmock", ["~> 3.0"]
28
32
  gem.add_development_dependency "addressable", "~> 2.8.1" # 2.5.0 doesn't support Ruby 1.9.3
29
33
  gem.add_development_dependency "simplecov", "~> 0.22.0"
30
- gem.add_development_dependency "standard", "~> 1.30.1"
34
+ gem.add_development_dependency "standard", "~> 1.35.0"
31
35
  gem.add_development_dependency "psych", "~> 3"
32
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trino-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2025-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -154,14 +154,14 @@ dependencies:
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: 1.30.1
157
+ version: 1.35.0
158
158
  type: :development
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - "~>"
163
163
  - !ruby/object:Gem::Version
164
- version: 1.30.1
164
+ version: 1.35.0
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: psych
167
167
  requirement: !ruby/object:Gem::Requirement
@@ -218,14 +218,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - ">="
220
220
  - !ruby/object:Gem::Version
221
- version: 2.7.0
221
+ version: 3.2.0
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  requirements:
224
224
  - - ">="
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  requirements: []
228
- rubygems_version: 3.3.7
228
+ rubygems_version: 3.1.6
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Trino client library