gaapi 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/gaapi/row.rb +8 -4
- data/lib/gaapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1e443de1393667d61dfc7dbabbcf862766d64991b0ac0c9aaa29f9ab44d5f98
|
4
|
+
data.tar.gz: e94d135a613c50b21aa9e9f91c67d383222d3383843b1edbfa12a7575fc09ecd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430315aa8a05fb701c2ea587c9f921e372290d26aa86710930f537f6251fcfd0805d7e499a16f0046cf3fb613196d486d02ba9f7c44f6c90d57b4d47c388ccf2
|
7
|
+
data.tar.gz: 5b8d4fa04a11ae96f9eec3c5719e719f6ba70a52b92e68c66b5f0442d380e1041d7d0a4193f81a897cad70e700bd6824f50daf3a42fd9689982cd007e4037e4a
|
data/CHANGELOG.md
CHANGED
data/lib/gaapi/row.rb
CHANGED
@@ -70,11 +70,15 @@ module GAAPI
|
|
70
70
|
# TODO: Do this better.
|
71
71
|
metrics[i].to_f
|
72
72
|
when "TIME"
|
73
|
+
# Google documentation claims to following:
|
73
74
|
# TIME Time metric in HH:MM:SS format.
|
74
|
-
#
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
# It also says it's seconds, and that's what I see in real results.
|
76
|
+
# So comment out the following:
|
77
|
+
# (metrics[i][0..1].to_i +
|
78
|
+
# metrics[i][3..4].to_i * 60 +
|
79
|
+
# metrics[i][6..7].to_i * 24 * 60)
|
80
|
+
# Simply make it a float.
|
81
|
+
metrics[i].to_f
|
78
82
|
else
|
79
83
|
# METRIC_TYPE_UNSPECIFIED Metric type is unspecified.
|
80
84
|
metric[i]
|
data/lib/gaapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gaapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Larry Reid
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-11-
|
12
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chandler
|