click_house 1.5.0 → 1.6.0
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/.github/workflows/main.yml +2 -2
- data/.rubocop.yml +17 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +40 -26
- data/click_house.gemspec +2 -2
- data/docker-compose.yml +1 -1
- data/lib/click_house/connection.rb +1 -1
- data/lib/click_house/type/float_type.rb +1 -1
- data/lib/click_house/type/integer_type.rb +1 -1
- data/lib/click_house/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 402590e2de7189b46fca70711b33bf8428ccbc677d8d98ad4205b470bcf5eeb4
|
|
4
|
+
data.tar.gz: b3a33602650115c46c638347b993d118921e7254a2ed9f20bdb92ad30c50a05a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d71565e61efb57711463fa3b4071d418ad8136656d64e3de15fbb7f4b48134ab284e9b2dc13b0dcbdf77dd9bee19aa4757593b0dee98480ac6cd64cc4e85a5f
|
|
7
|
+
data.tar.gz: c2d45bd01a211acfb8be077d38ac93807c191c95a3a6fe2a6ac63a7a097b5c599351f0c6282b86d533eff2dd59d2820c0f824ffd975d0cd6692636eb0bb31e48
|
data/.github/workflows/main.yml
CHANGED
|
@@ -8,13 +8,13 @@ jobs:
|
|
|
8
8
|
|
|
9
9
|
services:
|
|
10
10
|
clickhouse:
|
|
11
|
-
image: yandex/clickhouse-server:
|
|
11
|
+
image: yandex/clickhouse-server:22.1
|
|
12
12
|
ports:
|
|
13
13
|
- 8123:8123
|
|
14
14
|
|
|
15
15
|
strategy:
|
|
16
16
|
matrix:
|
|
17
|
-
ruby-version: [3.0, 2.7, 2.6
|
|
17
|
+
ruby-version: [3.1, 3.0, 2.7, 2.6]
|
|
18
18
|
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v2
|
data/.rubocop.yml
CHANGED
|
@@ -50,6 +50,8 @@ Performance/RedundantEqualityComparisonBlock:
|
|
|
50
50
|
Enabled: true
|
|
51
51
|
Performance/RedundantSplitRegexpArgument:
|
|
52
52
|
Enabled: true
|
|
53
|
+
Performance/MapCompact:
|
|
54
|
+
Enabled: true
|
|
53
55
|
|
|
54
56
|
# ============================== Metrics ============================
|
|
55
57
|
Metrics/ClassLength:
|
|
@@ -73,6 +75,8 @@ Naming/MethodParameterName:
|
|
|
73
75
|
Enabled: false
|
|
74
76
|
Naming/AccessorMethodName:
|
|
75
77
|
Enabled: false
|
|
78
|
+
Naming/InclusiveLanguage:
|
|
79
|
+
Enabled: true
|
|
76
80
|
|
|
77
81
|
# ============================== Layout =============================
|
|
78
82
|
Layout/LineLength:
|
|
@@ -111,7 +115,7 @@ Layout/SpaceAroundMethodCallOperator:
|
|
|
111
115
|
Enabled: true
|
|
112
116
|
Layout/SpaceBeforeBrackets:
|
|
113
117
|
Enabled: true
|
|
114
|
-
|
|
118
|
+
Layout/LineEndStringConcatenationIndentation:
|
|
115
119
|
Enabled: true
|
|
116
120
|
|
|
117
121
|
# ============================== Style ==============================
|
|
@@ -235,6 +239,14 @@ Style/HashConversion:
|
|
|
235
239
|
Enabled: true
|
|
236
240
|
Style/Documentation:
|
|
237
241
|
Enabled: false
|
|
242
|
+
Style/InPatternThen:
|
|
243
|
+
Enabled: true
|
|
244
|
+
Style/MultilineInPatternThen:
|
|
245
|
+
Enabled: true
|
|
246
|
+
Style/QuotedSymbols:
|
|
247
|
+
Enabled: true
|
|
248
|
+
Style/StringChars:
|
|
249
|
+
Enabled: true
|
|
238
250
|
|
|
239
251
|
# ============================== Lint ==============================
|
|
240
252
|
Lint/DuplicateMethods:
|
|
@@ -319,3 +331,7 @@ Lint/SymbolConversion:
|
|
|
319
331
|
Enabled: true
|
|
320
332
|
Lint/TripleQuotes:
|
|
321
333
|
Enabled: true
|
|
334
|
+
Lint/AmbiguousAssignment:
|
|
335
|
+
Enabled: true
|
|
336
|
+
Lint/EmptyInPattern:
|
|
337
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 1.6.0
|
|
2
|
+
* [PR](https://github.com/shlima/click_house/pull/19) handle value returned as nil in float and integer types (case of Aggregate Function Combinators)
|
|
3
|
+
* [PR](https://github.com/shlima/click_house/pull/18) Fix Faraday deprecation
|
|
4
|
+
|
|
1
5
|
# 1.5.0
|
|
2
6
|
* add support for 'WITH TOTALS' modifier in response
|
|
3
7
|
* send SQL in GET request's body [#12](https://github.com/shlima/click_house/pull/12)
|
data/Gemfile.lock
CHANGED
|
@@ -2,7 +2,7 @@ PATH
|
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
4
|
click_house (1.5.0)
|
|
5
|
-
faraday
|
|
5
|
+
faraday (>= 1.7)
|
|
6
6
|
faraday_middleware
|
|
7
7
|
|
|
8
8
|
GEM
|
|
@@ -10,60 +10,74 @@ GEM
|
|
|
10
10
|
specs:
|
|
11
11
|
ast (2.4.2)
|
|
12
12
|
coderay (1.1.3)
|
|
13
|
-
diff-lcs (1.
|
|
14
|
-
faraday (1.
|
|
13
|
+
diff-lcs (1.5.0)
|
|
14
|
+
faraday (1.9.3)
|
|
15
|
+
faraday-em_http (~> 1.0)
|
|
16
|
+
faraday-em_synchrony (~> 1.0)
|
|
15
17
|
faraday-excon (~> 1.1)
|
|
18
|
+
faraday-httpclient (~> 1.0)
|
|
19
|
+
faraday-multipart (~> 1.0)
|
|
16
20
|
faraday-net_http (~> 1.0)
|
|
17
|
-
faraday-net_http_persistent (~> 1.
|
|
18
|
-
|
|
21
|
+
faraday-net_http_persistent (~> 1.0)
|
|
22
|
+
faraday-patron (~> 1.0)
|
|
23
|
+
faraday-rack (~> 1.0)
|
|
24
|
+
faraday-retry (~> 1.0)
|
|
19
25
|
ruby2_keywords (>= 0.0.4)
|
|
26
|
+
faraday-em_http (1.0.0)
|
|
27
|
+
faraday-em_synchrony (1.0.0)
|
|
20
28
|
faraday-excon (1.1.0)
|
|
29
|
+
faraday-httpclient (1.0.1)
|
|
30
|
+
faraday-multipart (1.0.3)
|
|
31
|
+
multipart-post (>= 1.2, < 3)
|
|
21
32
|
faraday-net_http (1.0.1)
|
|
22
|
-
faraday-net_http_persistent (1.
|
|
23
|
-
|
|
33
|
+
faraday-net_http_persistent (1.2.0)
|
|
34
|
+
faraday-patron (1.0.0)
|
|
35
|
+
faraday-rack (1.0.0)
|
|
36
|
+
faraday-retry (1.0.3)
|
|
37
|
+
faraday_middleware (1.2.0)
|
|
24
38
|
faraday (~> 1.0)
|
|
25
39
|
method_source (1.0.0)
|
|
26
40
|
multipart-post (2.1.1)
|
|
27
|
-
parallel (1.
|
|
28
|
-
parser (3.
|
|
41
|
+
parallel (1.21.0)
|
|
42
|
+
parser (3.1.0.0)
|
|
29
43
|
ast (~> 2.4.1)
|
|
30
|
-
pry (0.14.
|
|
44
|
+
pry (0.14.1)
|
|
31
45
|
coderay (~> 1.1)
|
|
32
46
|
method_source (~> 1.0)
|
|
33
|
-
rainbow (3.
|
|
34
|
-
rake (13.0.
|
|
35
|
-
regexp_parser (2.
|
|
36
|
-
rexml (3.2.
|
|
47
|
+
rainbow (3.1.1)
|
|
48
|
+
rake (13.0.6)
|
|
49
|
+
regexp_parser (2.2.0)
|
|
50
|
+
rexml (3.2.5)
|
|
37
51
|
rspec (3.10.0)
|
|
38
52
|
rspec-core (~> 3.10.0)
|
|
39
53
|
rspec-expectations (~> 3.10.0)
|
|
40
54
|
rspec-mocks (~> 3.10.0)
|
|
41
55
|
rspec-core (3.10.1)
|
|
42
56
|
rspec-support (~> 3.10.0)
|
|
43
|
-
rspec-expectations (3.10.
|
|
57
|
+
rspec-expectations (3.10.2)
|
|
44
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
59
|
rspec-support (~> 3.10.0)
|
|
46
60
|
rspec-mocks (3.10.2)
|
|
47
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
48
62
|
rspec-support (~> 3.10.0)
|
|
49
|
-
rspec-support (3.10.
|
|
50
|
-
rubocop (1.
|
|
63
|
+
rspec-support (3.10.3)
|
|
64
|
+
rubocop (1.25.0)
|
|
51
65
|
parallel (~> 1.10)
|
|
52
|
-
parser (>= 3.
|
|
66
|
+
parser (>= 3.1.0.0)
|
|
53
67
|
rainbow (>= 2.2.2, < 4.0)
|
|
54
68
|
regexp_parser (>= 1.8, < 3.0)
|
|
55
69
|
rexml
|
|
56
|
-
rubocop-ast (>= 1.
|
|
70
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
|
57
71
|
ruby-progressbar (~> 1.7)
|
|
58
72
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
59
|
-
rubocop-ast (1.
|
|
60
|
-
parser (>=
|
|
61
|
-
rubocop-performance (1.
|
|
62
|
-
rubocop (>=
|
|
73
|
+
rubocop-ast (1.15.1)
|
|
74
|
+
parser (>= 3.0.1.1)
|
|
75
|
+
rubocop-performance (1.13.2)
|
|
76
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
63
77
|
rubocop-ast (>= 0.4.0)
|
|
64
78
|
ruby-progressbar (1.11.0)
|
|
65
|
-
ruby2_keywords (0.0.
|
|
66
|
-
unicode-display_width (2.
|
|
79
|
+
ruby2_keywords (0.0.5)
|
|
80
|
+
unicode-display_width (2.1.0)
|
|
67
81
|
|
|
68
82
|
PLATFORMS
|
|
69
83
|
ruby
|
|
@@ -78,4 +92,4 @@ DEPENDENCIES
|
|
|
78
92
|
rubocop-performance
|
|
79
93
|
|
|
80
94
|
BUNDLED WITH
|
|
81
|
-
2.
|
|
95
|
+
2.3.3
|
data/click_house.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.summary = 'Modern Ruby database driver for ClickHouse'
|
|
11
11
|
spec.description = 'Yandex ClickHouse database interface for Ruby'
|
|
12
12
|
spec.homepage = 'https://github.com/shlima/click_house'
|
|
13
|
-
spec.required_ruby_version = '>= 2.
|
|
13
|
+
spec.required_ruby_version = '>= 2.6.0'
|
|
14
14
|
|
|
15
15
|
# Specify which files should be added to the gem when it is released.
|
|
16
16
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
22
|
spec.require_paths = ['lib']
|
|
23
23
|
|
|
24
|
-
spec.add_dependency 'faraday'
|
|
24
|
+
spec.add_dependency 'faraday', '>= 1.7'
|
|
25
25
|
spec.add_dependency 'faraday_middleware'
|
|
26
26
|
spec.add_development_dependency 'bundler'
|
|
27
27
|
spec.add_development_dependency 'rake'
|
data/docker-compose.yml
CHANGED
|
@@ -52,7 +52,7 @@ module ClickHouse
|
|
|
52
52
|
conn.options.open_timeout = config.open_timeout
|
|
53
53
|
conn.headers = config.headers
|
|
54
54
|
conn.ssl.verify = config.ssl_verify
|
|
55
|
-
conn.basic_auth
|
|
55
|
+
conn.request(:basic_auth, config.username, config.password) if config.auth?
|
|
56
56
|
conn.response Middleware::Logging, logger: config.logger!
|
|
57
57
|
conn.response Middleware::RaiseError
|
|
58
58
|
conn.response :json, content_type: %r{application/json}
|
data/lib/click_house/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: click_house
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aliaksandr Shylau
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '1.7'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '1.7'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: faraday_middleware
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -203,14 +203,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
203
203
|
requirements:
|
|
204
204
|
- - ">="
|
|
205
205
|
- !ruby/object:Gem::Version
|
|
206
|
-
version: 2.
|
|
206
|
+
version: 2.6.0
|
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
|
209
209
|
- - ">="
|
|
210
210
|
- !ruby/object:Gem::Version
|
|
211
211
|
version: '0'
|
|
212
212
|
requirements: []
|
|
213
|
-
rubygems_version: 3.
|
|
213
|
+
rubygems_version: 3.3.3
|
|
214
214
|
signing_key:
|
|
215
215
|
specification_version: 4
|
|
216
216
|
summary: Modern Ruby database driver for ClickHouse
|