activecube 0.1.36 → 0.1.37

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
  SHA256:
3
- metadata.gz: 46b2458b82a94dbf5b5cad2134992c42713602500fe0062cd0647ab7702ef450
4
- data.tar.gz: 78c2224aaa1418a4e9fcdbcc9c8253b564b8d4d8d442cf520553f0f6d140b403
3
+ metadata.gz: 259cc692bdf919f12e969df5bb9527627e5a6d8776d2a0e9e87dfcd6be31eb3a
4
+ data.tar.gz: 441797734d3dd76ace51754bbeedf2bb12a28faa69047a53c798603c6af203bc
5
5
  SHA512:
6
- metadata.gz: '09c37c867e32c63576d40b782d7f18bdce1458d96fa61d5e284364194ea1c7c9642c9b7208f91e4f549d4ef6404243d433b928e030f170080572f6cc0f25cbdf'
7
- data.tar.gz: 2bb0f6538d30b0313740682132156930bcc91b4d99c14409027e1356e3283d287348ebb568fe80b93a903482c5d0cfe808aeefe6aafee39c36ca0958f2bd39d2
6
+ metadata.gz: 5db00ce826c957c7dcc79e1a642b98519d5691520221c91bbb736ef741895fc97fb9608173482daf4845545ced42a1012030f16d6055323af47be7d4ffab70e7
7
+ data.tar.gz: 139443eca675eea3125b3e357a6dd707698d45f026f14b801442f52ee4c98628f6b9f4bf74b889209c5e3c6d31c1a1e5753a6052d8d1bf8604b1dec21fd5aaa2
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- activecube (0.1.35)
12
+ activecube (0.1.36)
13
13
  activerecord (>= 5.2)
14
14
 
15
15
  GEM
@@ -93,10 +93,15 @@ module Activecube::Query
93
93
 
94
94
 
95
95
  def query
96
- sql = to_query.to_sql
96
+ composed_query = to_query
97
97
  connection = @composed.connection
98
- connection = stats ? stats.proxy(connection) : connection
99
- connection.exec_query(sql)
98
+ if connection.respond_to?(:with_statistics)
99
+ connection.with_statistics(stats) do
100
+ connection.exec_query(composed_query.to_sql)
101
+ end
102
+ else
103
+ connection.exec_query(composed_query.to_sql)
104
+ end
100
105
  end
101
106
 
102
107
  def to_query
@@ -1,3 +1,3 @@
1
1
  module Activecube
2
- VERSION = "0.1.36"
2
+ VERSION = "0.1.37"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activecube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey Studnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord