activeinsights 0.3.2 → 0.3.3

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: 7688455ff2b9d8559c34b1ccc49c45c97c8614d84804ecb023cff48f84d6d377
4
- data.tar.gz: b85987b97b44ffc28ca19fe39c94277a5691e89096367ab79c9ae9a76f216a68
3
+ metadata.gz: 84c15d655869c212ddd97854b4cf385873d9745d0fcab2c5483b0c68c8b78836
4
+ data.tar.gz: 2b746db99134c6e4fb97201f7de350f35d98b2ebeea46497906a4b010f62360d
5
5
  SHA512:
6
- metadata.gz: ff708ca0e904e3f7f6ea4b46d2a3b39b08c7e5aa4af0fa63abd5245e32d5b28b5f6ee1e4ffe412c30e0bb43721ffe52932024083e6632211e4ac2d0fa08d77e8
7
- data.tar.gz: 8801288b6d0790beb7e37c0597ee86da476e53b676f371b8bd99604ac28a7c9039e9738abd48ebdd1ff92151bde984ad52c4d155e86eb43ac593e8457c5c0fbb
6
+ metadata.gz: 0f8f6afaa6032ba3aff5d34a972dd4a9c78adf9dfa76f3791a671aa6798a764ad03df41529aa129526eb9fddb7819bb0f558b20552a769f9189e170c1aa5324a
7
+ data.tar.gz: 7740a575a4f4c5b23e61701e844abaeae1376c4a721fbdcd36b1f5c583d7a278286b4aad11c720557519d18c1529bbce1640d8236cacc5797c0fccd2fd3d70d0
@@ -22,7 +22,9 @@ module ActiveInsights
22
22
  group("strftime('%Y-%m-%d %H:%M:00 UTC', " \
23
23
  "'#{table_name}'.'started_at')")
24
24
  when "Mysql2", "Mysql2Spatial", "Mysql2Rgeo", "Trilogy"
25
- group("CONVERT_TZ(DATE_FORMAT(`#{table_name}`.`started_at`" \
25
+ group("CONVERT_TZ(DATE_FORMAT(`#{table_name.split('.').map do |arg|
26
+ "`#{arg}`"
27
+ end.join('.')}`.`started_at`" \
26
28
  ", '%Y-%m-%d %H:%i:00'), 'Etc/UTC', '+00:00')")
27
29
  when "PostgreSQL"
28
30
  group("DATE_TRUNC('minute', \"#{table_name}\"." \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveInsights
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeinsights
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza