clickhouse-activerecord 0.1.7 → 0.1.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
  SHA1:
3
- metadata.gz: 8e80f08b4bab8451df04097e2b93b4a169586f09
4
- data.tar.gz: b9951b51f407e6ee7053a64dc357941ead020502
3
+ metadata.gz: 25a2248a31a1c80f4ef545ae26f48a3365fc033b
4
+ data.tar.gz: 4e622f79b93f29e49c0e7ed5c0922320c492537b
5
5
  SHA512:
6
- metadata.gz: 506cf869493afa718ed43f3d80e86b15e8db3113b522d7e7c7719ba6bd5979e6d439980b1b6e3bd9fc03509de61c8e8f32998079416d0a46971efc37a0e15392
7
- data.tar.gz: ac86bdb9661ef825e725fd12831e971d97a15375da5c0bbbc3bd6ee38997cb59fcd0b4a3fcd22570a8769720a6c342d2630061d111f297ab0a87535cf414b59e
6
+ metadata.gz: ed33a8660e182277c87072ed7f4f060279c75baa2ec4ad21ac6aac310ace27822f99c9c43f25f98d2b9d8a120fe9aaf2248cd00319cdf6f115cf8a57d15a65e7
7
+ data.tar.gz: 63e90d889e17024db6fb23e5017fc62d7daa5bcdcdbb26384f9d769e7294ae2dd242046b16815e6566ff3390e8feb970f613d357785308fcc2c21a427c8a2cf7
@@ -122,6 +122,10 @@ module ActiveRecord
122
122
  case sql_type
123
123
  when 'Nullable(String)'
124
124
  255
125
+ when /Nullable\(U?Int(8|16)\)/
126
+ 4
127
+ when /Nullable\(U?Int(32|64)\)/
128
+ 8
125
129
  else
126
130
  super
127
131
  end
@@ -134,11 +138,11 @@ module ActiveRecord
134
138
  register_class_with_limit m, 'Uint8', Type::UnsignedInteger
135
139
  register_class_with_limit m, 'Date', Clickhouse::OID::Date
136
140
  register_class_with_limit m, 'DateTime', Clickhouse::OID::DateTime
137
- m.alias_type 'UInt16', 'uint8'
141
+ m.alias_type 'UInt16', 'uint4'
138
142
  m.alias_type 'UInt32', 'uint8'
139
143
  m.register_type 'UInt64', Clickhouse::OID::BigInteger.new
140
- m.alias_type 'Int8', 'int8'
141
- m.alias_type 'Int16', 'int8'
144
+ m.alias_type 'Int8', 'int4'
145
+ m.alias_type 'Int16', 'int4'
142
146
  m.alias_type 'Int32', 'int8'
143
147
  m.alias_type 'Int64', 'UInt64'
144
148
  end
@@ -1,3 +1,3 @@
1
1
  module ClickhouseActiverecord
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clickhouse-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Odintsov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,3 +130,4 @@ signing_key:
130
130
  specification_version: 4
131
131
  summary: ClickHouse ActiveRecord
132
132
  test_files: []
133
+ has_rdoc: