clickhouse-activerecord 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69f9c33fc05b5f546d5dee119568fb0cf7526f5a
4
- data.tar.gz: 16ed8eba8a672c1b19e014dbd9b07e4e7d0dc0c0
3
+ metadata.gz: a62437ebce5fafd239daf41a6d83aea137fbd02a
4
+ data.tar.gz: 1af618f104ee85ded1fc71a5dd28893ef34f5925
5
5
  SHA512:
6
- metadata.gz: 15cf1658014e69203b6e23065b3397d735e3d940038c916e52de58e44955a0957476dd774d00c2a04f48898e56ba2039331f418bb4fc9a71c4924bed74c16e44
7
- data.tar.gz: d878045baff7b0ee29fe805e886d87f61fb88e1bf693bb80a788d608ab061a588afe075d96d11e72392ea6a2ef7cc4131d5c432966233b2310c31efade4453ef
6
+ metadata.gz: b94de9c7bc6c2d9a09841dc14ae95a9602781818f7ea21c2a65d99213c7797d45437fcf6ef82d8e3a8fc9626236d3cad32593fc0f06cffe7be21d7571984ceca
7
+ data.tar.gz: a1afba5dacfde680fce68a398447c1470ab852892e77fc54c277ea372203168723ca5789d6b7b0d1ab5a11c441459a3ed6e26ec2865bb36e3d14002ab69baacb
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'clickhouse-activerecord'
8
- spec.version = '0.2.1'
8
+ spec.version = '0.2.2'
9
9
  spec.authors = ['Sergey Odintsov']
10
10
  spec.email = ['nixx.dj@gmail.com']
11
11
 
@@ -129,7 +129,7 @@ module ActiveRecord
129
129
 
130
130
  # Queries the database and returns the results in an Array-like object
131
131
  def query(sql, _name = nil)
132
- res = @connection.get("/?#{@config.merge(query: "#{sql} FORMAT JSONCompact").to_param}")
132
+ res = @connection.post("/?#{@config.to_param}", "#{sql} FORMAT JSONCompact")
133
133
  raise ActiveRecord::ActiveRecordError, "Response code: #{res.code}:\n#{res.body}" unless res.code.to_i == 200
134
134
  JSON.parse res.body
135
135
  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.2.1
4
+ version: 0.2.2
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-03-28 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler