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 +4 -4
- data/app/models/active_insights/record.rb +3 -1
- data/lib/active_insights/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84c15d655869c212ddd97854b4cf385873d9745d0fcab2c5483b0c68c8b78836
|
4
|
+
data.tar.gz: 2b746db99134c6e4fb97201f7de350f35d98b2ebeea46497906a4b010f62360d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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}\"." \
|