querier 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/querier.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f6095a76853086f43c79e597c28a20917d6b0fbc0899a06e7bf7e8b4e149426
4
- data.tar.gz: cd705a152f12b102461c116c53fcdd3df45d084304e9c68da8b23c038dea5254
3
+ metadata.gz: ee6931c618aea1c0988e7a45c390e81a6e5270472eb2963bbf8db0dfd176a9be
4
+ data.tar.gz: 9bb96c0447914e61a32a4f7efe2c77fbeba1a800829baa2e40f02bdf91733042
5
5
  SHA512:
6
- metadata.gz: 66791bebaf7e2821d53426ae68ed684bd0d76a5a83c7fc3c4130d417c98632cbab8a366bbaf15f4f3bc632a2119be5107b6815ace2fb11fe1a8b3d06a7a056c2
7
- data.tar.gz: af12dd6bf950ae71ed78945258770330fb005bb3f94589dea44f2e6dce99717aca1c73b3424698a44ac589fef3340115c06d7295561dd0fc54992e88305bad95
6
+ metadata.gz: dc2b2fe45f7b0ce58ee79a5000075896d39bca6aae1f7ab356f7f27e0b993a73af1b5339911255c1f37db6d4c9c9df6b25e28636faa80d7384b9095e0ef1a10a
7
+ data.tar.gz: 91c329ad6eb8f3d19cef96d5afaa29fab6651df37e919b2b92da636346dbd2cff4340190be4a236e3a26175acf839e147b342d99d814edeb80e534583e9d5119
data/lib/querier.rb CHANGED
@@ -11,7 +11,8 @@ class Querier
11
11
 
12
12
  def execute
13
13
  @query_execution_count += 1
14
- @execution_cached_result = ActiveRecord::Base.connection.select_all fill_query_params(query_template: @query_template, query_params: @query_params)
14
+ @execution_cached_result = ActiveRecord::Base.connection.select_all(fill_query_params(query_template: @query_template, query_params: @query_params))
15
+ @execution_cached_result.map! {|record| record.symbolize_keys!}
15
16
  end
16
17
 
17
18
  def cached_result format: :hash
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: querier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gedean Dias