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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1e443de1393667d61dfc7dbabbcf862766d64991b0ac0c9aaa29f9ab44d5f98
4
- data.tar.gz: e94d135a613c50b21aa9e9f91c67d383222d3383843b1edbfa12a7575fc09ecd
3
+ metadata.gz: 585053bbca2711362dde0579853b07716b1e8b5f60443a0060d49b348cf787f3
4
+ data.tar.gz: 4d200b10dda8d3b22314cfc3b8b0edc92990ed1b9c38fd7b2d6cadc231aa2f6e
5
5
  SHA512:
6
- metadata.gz: 430315aa8a05fb701c2ea587c9f921e372290d26aa86710930f537f6251fcfd0805d7e499a16f0046cf3fb613196d486d02ba9f7c44f6c90d57b4d47c388ccf2
7
- data.tar.gz: 5b8d4fa04a11ae96f9eec3c5719e719f6ba70a52b92e68c66b5f0442d380e1041d7d0a4193f81a897cad70e700bd6824f50daf3a42fd9689982cd007e4037e4a
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.1...HEAD
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
@@ -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
- csv << ["Totals"] + if report.totals? && !report.dimensions?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GAAPI
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
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.2
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-06 00:00:00.000000000 Z
12
+ date: 2018-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chandler