trino-client 1.0.1 → 1.0.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: 9cb14c3d3625802884377caa45324f414112a37a747b9dfe58cc8afe59ad3c39
4
- data.tar.gz: 94d884540286a1b8c37c8c1321b02d3ac499d7783163db436d75aec3c019f07d
3
+ metadata.gz: fd6f8fe49771f84393aac9d14d2184c25c65915e8e219682c222d686f229a40c
4
+ data.tar.gz: 3b17b2ff6dfb6d9e20f9e730fa2c51127a39c0455ffef7f239c13fb1c0e75f62
5
5
  SHA512:
6
- metadata.gz: d7464e63510378e1d59005ddcc82331576a989a26278fcd73e2764e83bf73ed1a16d7fe65b0a1acd73d702fb96bb5b7e085ac520501335c200ced4a2685bff24
7
- data.tar.gz: 738b756d272a5f3040d3ffbf53c542f7d35d9cf5e50c1227f7b1c3aeeedf902d93b028c691b35671f0696d88d46fc5d092b935af3036e7f7f969be7ca85e343e
6
+ metadata.gz: 53f7ebdcb51e1d90a4006ca29847827f213fc714bc4561d4cf992ca3296122dc0aa625c7301a597999ac91be6cb9de54192b6c13524650baece9da416dba4160
7
+ data.tar.gz: 9cf5f0e74f443aee676e63deac7cb41fedf68cadfa2415d7babfc948b237327c566958a4e560d12bdb705efbafda4614c3f237883c27097e1db92f871c551399
data/ChangeLog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  trino-client-ruby
2
2
  ====
3
+ ## 1.0.2
4
+ - Merge pull request [#75](https://github.com/treasure-data/trino-client-ruby/issues/75) from evgeniy-b/1-0-1-fixes [[4cdd21f](https://github.com/treasure-data/trino-client-ruby/commit/4cdd21f)]
5
+ - Faraday basic auth deprecation fix [[5c20266](https://github.com/treasure-data/trino-client-ruby/commit/5c20266)]
6
+ - Gem::Specification#has_rdoc deprecation fix [[baaec53](https://github.com/treasure-data/trino-client-ruby/commit/baaec53)]
7
+ - Convert model_version to string to use gsub() [[7118ad5](https://github.com/treasure-data/trino-client-ruby/commit/7118ad5)]
8
+ - Fix model version check (operator priority) [[31c22f3](https://github.com/treasure-data/trino-client-ruby/commit/31c22f3)]
9
+
3
10
  ## 1.0.1
4
11
  - Merge pull request [#73](https://github.com/treasure-data/trino-client-ruby/issues/73) from pedrombl/update-faraday [[2a6482c](https://github.com/treasure-data/trino-client-ruby/commit/2a6482c)]
5
12
  - Merge pull request [#74](https://github.com/treasure-data/trino-client-ruby/issues/74) from takezoe/alias-gem [[6829f5b](https://github.com/treasure-data/trino-client-ruby/commit/6829f5b)]
@@ -75,7 +75,7 @@ module Trino::Client
75
75
 
76
76
  faraday = Faraday.new(faraday_options) do |faraday|
77
77
  if options[:user] && options[:password]
78
- faraday.basic_auth(options[:user], options[:password])
78
+ faraday.request(:basic_auth, options[:user], options[:password])
79
79
  end
80
80
  if options[:follow_redirect]
81
81
  faraday.use FaradayMiddleware::FollowRedirects
@@ -123,7 +123,7 @@ module Trino::Client
123
123
 
124
124
  def self.optional_headers(options)
125
125
  usePrestoHeader = false
126
- if v = options[:model_version] && v < 351
126
+ if options[:model_version] && options[:model_version] < 351
127
127
  usePrestoHeader = true
128
128
  end
129
129
 
@@ -34,7 +34,7 @@ module Trino::Client
34
34
  @state = :running
35
35
  @retry_timeout = options[:retry_timeout] || 120
36
36
  if model_version = @options[:model_version]
37
- @models = ModelVersions.const_get("V#{model_version.gsub(".", "_")}")
37
+ @models = ModelVersions.const_get("V#{model_version.to_s.gsub(".", "_")}")
38
38
  else
39
39
  @models = Models
40
40
  end
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Trino
17
17
  module Client
18
- VERSION = "1.0.1"
18
+ VERSION = "1.0.2"
19
19
  end
20
20
  end
data/trino-client.gemspec CHANGED
@@ -15,7 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ["lib"]
18
- gem.has_rdoc = false
19
18
 
20
19
  gem.required_ruby_version = ">= 1.9.1"
21
20
 
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: 1.0.1
4
+ version: 1.0.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: 2021-11-25 00:00:00.000000000 Z
11
+ date: 2021-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday