gaapi 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/gaapi/response.rb +2 -1
- 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: 585053bbca2711362dde0579853b07716b1e8b5f60443a0060d49b348cf787f3
|
4
|
+
data.tar.gz: 4d200b10dda8d3b22314cfc3b8b0edc92990ed1b9c38fd7b2d6cadc231aa2f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f3262f52f469928c1d233742179b894531fa005e4bf7c19ae51ce0c6f55c9313486d00865935a52282300a469a4dad2c4523d86d0acd6e566c2833582f448e0
|
7
|
+
data.tar.gz: d1f7b1722c569713746245719e521d803021860c641c77f0b7746d929b4dc27d006aedecf957bee0c274873054fec4d7a954ffa0a9e3e6db7953e4f04ad1a41b
|
data/CHANGELOG.md
CHANGED
@@ -12,6 +12,12 @@
|
|
12
12
|
|
13
13
|
* Your contribution here!
|
14
14
|
|
15
|
+
## [0.4.3][](2018-11-28)
|
16
|
+
|
17
|
+
### Bugfixes
|
18
|
+
|
19
|
+
* [#7] Fix CSV output when no totals requested in GA query.
|
20
|
+
|
15
21
|
## [0.4.2][](2018-11-06)
|
16
22
|
|
17
23
|
### Bugfixes
|
@@ -78,6 +84,8 @@
|
|
78
84
|
|
79
85
|
* N/A.
|
80
86
|
|
81
|
-
[Pending Release]: https://github.com/weenhanceit/gaapi/compare/v0.4.
|
87
|
+
[Pending Release]: https://github.com/weenhanceit/gaapi/compare/v0.4.3...HEAD
|
88
|
+
[0.4.3]: https://github.com/weenhanceit/gaapi/compare/v0.4.2...v0.4.3
|
89
|
+
[0.4.2]: https://github.com/weenhanceit/gaapi/compare/v0.4.1...v0.4.2
|
82
90
|
[0.4.1]: https://github.com/weenhanceit/gaapi/compare/v0.4.0...v0.4.1
|
83
91
|
[0.4.0]: https://github.com/weenhanceit/gaapi/compare/v0.3.0...v0.4.0
|
data/lib/gaapi/response.rb
CHANGED
@@ -32,7 +32,8 @@ module GAAPI
|
|
32
32
|
totals_column = report.totals? && !report.dimensions? ? [nil] : []
|
33
33
|
csv << totals_column + report.headers
|
34
34
|
report.rows.each { |row| csv << totals_column + row.to_a }
|
35
|
-
|
35
|
+
next unless report.totals? # Rubocop did this. Not sure I like it.
|
36
|
+
csv << ["Totals"] + if !report.dimensions?
|
36
37
|
report.totals
|
37
38
|
else
|
38
39
|
report.totals[1..-1]
|
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.3
|
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-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chandler
|