click_house 1.3.7 → 1.3.8

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: df0c8b8d3ea01025f4634338790aa3db5921890cceece2b86253f7830e805d82
4
- data.tar.gz: 67fe8393ff9d0f4eadac1126494619d72041e72a6677a85666ca04443d54c649
3
+ metadata.gz: 5c4ca9cca59d1e59aaf5e86ef624928def03e276492c775a15dbf48938716180
4
+ data.tar.gz: 671a7c265806735bd8ce5dec00d7dcc1b8057179a2a74b3e771ff6b7792d2864
5
5
  SHA512:
6
- metadata.gz: 627ab431f8c10dde3b70521d0cfc06910740f4d9975023ab66f830111e7567f5b75c583df5526ae7a330e27b7346ad728ab593b833472b6b9308985f3d0be890
7
- data.tar.gz: 226d194bb976f883a9f34ff6639ff1d79e3684d75a0d0d5c24f367bed65ecfe7938c844b277c481390c1bdffc18d2bc0aa9e5b5cd0077ecdad0dd9969e599574
6
+ metadata.gz: 8c191e44fd27d8b08bbb2be2cca11057421557526596ca05cc8086182bbbb8a31897ccc92c3475221fdcd7a3c8fc6caeab312f4ffbbb7a313a2014d461542c16
7
+ data.tar.gz: cfed5341b0320d362b05023ce48de8400a5078337f52d9adde990eb53465e9e1a15f388ae72ebf3a7335e4a3f1762cbc6c3a0197d3fb00c4f2e42def6a1157f0
@@ -1,3 +1,7 @@
1
+ # 1.3.8
2
+ * fix `DateTime` casting for queries like `ClickHouse.connection.select_value('select NOW()')`
3
+ * fix resulting set console inspection
4
+
1
5
  # 1.3.7
2
6
  * specify required ruby version [#10](https://github.com/shlima/click_house/issues/10)
3
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- click_house (1.3.7)
4
+ click_house (1.3.8)
5
5
  faraday
6
6
  faraday_middleware
7
7
 
@@ -34,7 +34,7 @@ module ClickHouse
34
34
  add_type column, Type::StringType.new
35
35
  end
36
36
 
37
- ['DateTime(%s)'].each do |column|
37
+ %w[DateTime DateTime(%s)].each do |column|
38
38
  add_type column, Type::DateTimeType.new
39
39
  end
40
40
 
@@ -11,7 +11,8 @@ module ClickHouse
11
11
  NULLABLE_TYPE_RE = /#{NULLABLE}\((.+)\)/i.freeze
12
12
 
13
13
  def_delegators :to_a,
14
- :each, :fetch, :length, :count, :size, :first, :last, :[], :to_h
14
+ :inspect, :each, :fetch, :length, :count, :size,
15
+ :first, :last, :[], :to_h
15
16
 
16
17
  attr_reader :meta, :data, :statistics
17
18
 
@@ -72,10 +73,6 @@ module ClickHouse
72
73
  }
73
74
  end
74
75
  end
75
-
76
- def inspect
77
- to_a
78
- end
79
76
  end
80
77
  end
81
78
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClickHouse
4
- VERSION = '1.3.7'
4
+ VERSION = '1.3.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: click_house
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aliaksandr Shylau