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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0914cccbcf5b4f4cb35cc2b5a3bb7fbb10ed6841b32da74b06e71711502a334
4
- data.tar.gz: 1f82f69edfc7dcdb6a686802572b0a75236ad32203916754c89dfb598c281457
3
+ metadata.gz: a1e443de1393667d61dfc7dbabbcf862766d64991b0ac0c9aaa29f9ab44d5f98
4
+ data.tar.gz: e94d135a613c50b21aa9e9f91c67d383222d3383843b1edbfa12a7575fc09ecd
5
5
  SHA512:
6
- metadata.gz: 69a7cddacdc469a00868f72360d65daf18d6f3be811954935a1508f6ac065911267211682bbbfe640a2a8d0a8dd123f66671be0485430922f47abadcea9556a8
7
- data.tar.gz: 61bb45745f7d30ea713911e27b1410f8657b27606a189d1faca2e530c17725980612530a9f33f7bb45a076b765d896313d524c125b0edf886edbbfc99cd5e8ad
6
+ metadata.gz: 430315aa8a05fb701c2ea587c9f921e372290d26aa86710930f537f6251fcfd0805d7e499a16f0046cf3fb613196d486d02ba9f7c44f6c90d57b4d47c388ccf2
7
+ data.tar.gz: 5b8d4fa04a11ae96f9eec3c5719e719f6ba70a52b92e68c66b5f0442d380e1041d7d0a4193f81a897cad70e700bd6824f50daf3a42fd9689982cd007e4037e4a
@@ -12,6 +12,12 @@
12
12
 
13
13
  * Your contribution here!
14
14
 
15
+ ## [0.4.2][](2018-11-06)
16
+
17
+ ### Bugfixes
18
+
19
+ * [#6] Correct the conversion of TIME metrics.
20
+
15
21
  ## [0.4.1][](2018-10-31)
16
22
 
17
23
  ### Bugfixes
@@ -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
- # Time in fraction of a day.
75
- (metrics[i][0..1].to_i +
76
- metrics[i][3..4].to_i * 60 +
77
- metrics[i][6..7].to_i * 24 * 60) / 86_400
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GAAPI
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
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.1
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-01 00:00:00.000000000 Z
12
+ date: 2018-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chandler