gaapi 0.5.0 → 0.5.1

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: c22fc4035ce9aa902bd074f1781e502b26912a8793716ee02076dbfb0a5f5ae8
4
- data.tar.gz: e8b76b26a8d77b4a5529db7f4565d4c33073f88f60cd208c2a3d725d74db43bc
3
+ metadata.gz: 6d654d40878964ac436cdd872024ed2e557d757ef22d6102d6e0cfbd0cc202ee
4
+ data.tar.gz: d64fd3a60aa2dd9391ec859c6ea98d0612254a88ff0b068b3ffd459dd80f01bb
5
5
  SHA512:
6
- metadata.gz: 26335da752592ddedc4483b91a9da1a0bb8e7217971659513fb5eb5bb61f170639359232650f9a203bc3e57d165bb5371050a0f967e7569dd744990c1b4c92d3
7
- data.tar.gz: 137a10c00dcf6fe42ecda4ae13dec4625fe484e7f155d4327b5653b756700f45377028b992bb749c170ad4552e8cfb80ac16bb8544f6a28ef249279dee41397e
6
+ metadata.gz: adf8b1429a1d9956534195c4dabf7729630948447903848deec25ac27e8e7bca3c12163344d76733d86f83ab853cebca91e4bac18c5fa01b6d07a13d4ff27c0b
7
+ data.tar.gz: 64de775d81f3d7fd141449fdb90a4ca4dab601f3ccf080324f97f319b8acc4dee431bd2f6b51e092b88cad481d0a06088ff117fc09e442680080d9d36d307d58
@@ -12,6 +12,12 @@
12
12
 
13
13
  * Your contribution here!
14
14
 
15
+ ## [0.5.1][](2018-12-09)
16
+
17
+ ### Bugfixes
18
+
19
+ * [#9] Handle reports with no rows.
20
+
15
21
  ## [0.5.0][](2018-12-07)
16
22
 
17
23
  ### Breaking changes
@@ -95,7 +101,8 @@
95
101
 
96
102
  * N/A.
97
103
 
98
- [Pending Release]: https://github.com/weenhanceit/gaapi/compare/v0.4.3...HEAD
104
+ [Pending Release]: https://github.com/weenhanceit/gaapi/compare/v0.5.1...HEAD
105
+ [0.5.1]: https://github.com/weenhanceit/gaapi/compare/v0.5.0...v0.5.1
99
106
  [0.5.0]: https://github.com/weenhanceit/gaapi/compare/v0.4.3...v0.5.0
100
107
  [0.4.3]: https://github.com/weenhanceit/gaapi/compare/v0.4.2...v0.4.3
101
108
  [0.4.2]: https://github.com/weenhanceit/gaapi/compare/v0.4.1...v0.4.2
@@ -32,13 +32,13 @@ module GAAPI
32
32
  end
33
33
  # The report as a Ruby Hash, with String keys. It's typically much more
34
34
  # convenient to use the `#rows` method, and the methods on `Row` on each
35
- # instance of the a Row.
35
+ # instance of a Row.
36
36
  attr_reader :report
37
37
 
38
38
  # Return if the data is golden, meaning it won't change if the query is re-run
39
39
  # at a later time. The is a lag between the end of a date period and when
40
40
  # Google Analytics has completely consolidated all the tracking data.
41
- def is_data_golden
41
+ def is_data_golden # rubocop:disable Naming/PredicateName
42
42
  report["data"]["isDataGolden"]
43
43
  end
44
44
 
@@ -61,7 +61,7 @@ module GAAPI
61
61
 
62
62
  # The data rows in the report.
63
63
  def rows
64
- report["data"]["rows"].map { |row| Row.new(self, row) }
64
+ (report["data"]["rows"] || []).map { |row| Row.new(self, row) }
65
65
  end
66
66
 
67
67
  # The totals in the report, if there were any.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GAAPI
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
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.5.0
4
+ version: 0.5.1
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-12-07 00:00:00.000000000 Z
12
+ date: 2018-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chandler