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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/gaapi/report.rb +3 -3
- 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: 6d654d40878964ac436cdd872024ed2e557d757ef22d6102d6e0cfbd0cc202ee
|
4
|
+
data.tar.gz: d64fd3a60aa2dd9391ec859c6ea98d0612254a88ff0b068b3ffd459dd80f01bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adf8b1429a1d9956534195c4dabf7729630948447903848deec25ac27e8e7bca3c12163344d76733d86f83ab853cebca91e4bac18c5fa01b6d07a13d4ff27c0b
|
7
|
+
data.tar.gz: 64de775d81f3d7fd141449fdb90a4ca4dab601f3ccf080324f97f319b8acc4dee431bd2f6b51e092b88cad481d0a06088ff117fc09e442680080d9d36d307d58
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
data/lib/gaapi/report.rb
CHANGED
@@ -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
|
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.
|
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.5.
|
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-
|
12
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chandler
|