embulk-input-google_analytics 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +5 -5
- data/Rakefile +0 -1
- data/embulk-input-google_analytics.gemspec +7 -4
- data/lib/embulk/input/google_analytics/client.rb +0 -4
- metadata +38 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eea056ceeddbfd441fd63830d0dd80d1f145094
|
4
|
+
data.tar.gz: e40d6249b25c5752c10f107f3ea0259f24b8c859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 569b256dc6577da275bf8c4be9806d7310c7fff1cd7dfbf24cced151b79e828335b566b4fcea96603c650cd7b09584d38438081d68e287c36a6744b5e80fb0f6
|
7
|
+
data.tar.gz: 7f235dc9a9ea8749261e36315aac61edc864a89c45ff90974b2184aebe14e6a0b75b20127cd23c8a31b8af4cb11953a6c9d9e5a42054c6f176ac826944f44dec
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.1.24 - 2020-07-14
|
2
|
+
Upgrade version of gems to be compatible with other google input plugins [#46](https://github.com/treasure-data/embulk-input-google_analytics/pull/46)
|
3
|
+
Release version 0.1.24 https://github.com/treasure-data/embulk-input-google_analytics/commit/3aef789a672227ae3ad9b58235091d34c96a4b67
|
4
|
+
|
1
5
|
## 0.1.23 - 2019-10-24
|
2
6
|
Lock signet and activesupport by less than or equal locked version [#45](https://github.com/treasure-data/embulk-input-google_analytics/pull/45)
|
3
7
|
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Embulk input plugin for Google Analytics reports.
|
|
23
23
|
- **retry_initial_wait_sec**: Wait seconds for exponential backoff initial value (integer, default: 2)
|
24
24
|
|
25
25
|
### **New update from verions 0.1.18**
|
26
|
-
Started from version 0.1.18, the Plugin also supports User Account Authentication along with Service Account Authentication see: [OAuth 2.0 for Server-side Web Application](https://developers.google.com/identity/protocols/OAuth2WebServer). Extra optional configuration keys were added and the **json_key_content** is made optional
|
26
|
+
Started from version 0.1.18, the Plugin also supports User Account Authentication along with Service Account Authentication see: [OAuth 2.0 for Server-side Web Application](https://developers.google.com/identity/protocols/OAuth2WebServer). Extra optional configuration keys were added and the **json_key_content** is made optional
|
27
27
|
- **client_id**: client_id for application (string, optional)
|
28
28
|
- **client_secret**: client_secret for application (string, optional)
|
29
29
|
- **refresh_token**: the refresh_token obtained during exchange authentication code (string, optional)
|
@@ -45,13 +45,13 @@ You need a service account on Google.
|
|
45
45
|
select a project.</li>
|
46
46
|
<li>Click <b>Create service account</b>.</li>
|
47
47
|
<li>
|
48
|
-
|
48
|
+
|
49
49
|
In the <b>Create service account</b> window, type a name for the service
|
50
50
|
account, and select <b>Furnish a new private key</b>. If you want to
|
51
51
|
<a href="https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority">grant
|
52
52
|
Google Apps domain-wide authority</a> to the service account, also select
|
53
53
|
<b>Enable Google Apps Domain-wide Delegation</b>.
|
54
|
-
|
54
|
+
|
55
55
|
Then click <b>Create</b>.</li>
|
56
56
|
</ol>
|
57
57
|
From: <https://developers.google.com/identity/protocols/OAuth2ServiceAccount>
|
@@ -89,7 +89,7 @@ in:
|
|
89
89
|
}
|
90
90
|
view_id: 123111111
|
91
91
|
time_series: "ga:dateHour" # hourly basis
|
92
|
-
|
92
|
+
|
93
93
|
# https://developers.google.com/analytics/devguides/reporting/core/dimsmets
|
94
94
|
dimensions:
|
95
95
|
- "ga:browser"
|
@@ -123,5 +123,5 @@ in:
|
|
123
123
|
## Build
|
124
124
|
|
125
125
|
```
|
126
|
-
$ rake
|
126
|
+
$ rake build
|
127
127
|
```
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-input-google_analytics"
|
4
|
-
spec.version = "0.1.
|
4
|
+
spec.version = "0.1.24"
|
5
5
|
spec.authors = ["uu59"]
|
6
6
|
spec.summary = "Google Analytics input plugin for Embulk"
|
7
7
|
spec.description = "Loads records from Google Analytics."
|
@@ -14,12 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.require_paths = ["lib"]
|
15
15
|
|
16
16
|
spec.add_dependency "httpclient"
|
17
|
-
spec.add_dependency "google-api-client", "0.
|
17
|
+
spec.add_dependency "google-api-client", [">= 0.11", "< 0.33.0"]
|
18
18
|
# signet version > 11.0 requires Ruby version >= 2.4
|
19
19
|
# activesupport version > 5.2.3 requires Ruby version >= 2.5
|
20
20
|
# Current embulk version 0.9.19 runs under jRuby 9.1.x (which is compatible with Ruby 2.3)
|
21
21
|
# So decide to lock these gem versions to prevent incompatible Ruby version
|
22
|
-
spec.add_dependency "signet", "
|
22
|
+
spec.add_dependency "signet", ['~> 0.7', "< 0.11.0"]
|
23
23
|
spec.add_dependency "activesupport", "<= 5.2.3" # for Time.zone.parse, Time.zone.now
|
24
24
|
|
25
25
|
spec.add_dependency "perfect_retry", "~> 0.5"
|
@@ -29,7 +29,10 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rake', ['>= 10.0']
|
30
30
|
spec.add_development_dependency 'test-unit', ['< 3.2']
|
31
31
|
spec.add_development_dependency 'test-unit-rr'
|
32
|
-
|
32
|
+
# Lock simple cov and simplecov-html to prevent downloaded newer version which require ruby >= 2.4
|
33
|
+
# Current embulk version 0.9.19 runs under jRuby 9.1.x (which is compatible with Ruby 2.3)
|
34
|
+
spec.add_development_dependency 'simplecov', ['<= 0.12.0']
|
35
|
+
spec.add_development_dependency 'simplecov-html', ['<= 0.12.0']
|
33
36
|
spec.add_development_dependency "codeclimate-test-reporter"
|
34
37
|
spec.add_development_dependency "pry"
|
35
38
|
spec.add_development_dependency "gem_release_helper", "~> 1.0"
|
@@ -3,10 +3,6 @@ require "active_support/core_ext/time"
|
|
3
3
|
require "google/apis/analyticsreporting_v4"
|
4
4
|
require "google/apis/analytics_v3"
|
5
5
|
|
6
|
-
# Avoid such error:
|
7
|
-
# PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
|
8
|
-
Google::Apis::ClientOptions.default.use_net_http = true
|
9
|
-
|
10
6
|
module Embulk
|
11
7
|
module Input
|
12
8
|
module GoogleAnalytics
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-google_analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uu59
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -27,21 +27,30 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.11'
|
33
|
+
- - "<"
|
31
34
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
35
|
+
version: 0.33.0
|
33
36
|
name: google-api-client
|
34
37
|
prerelease: false
|
35
38
|
type: :runtime
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- -
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
43
|
+
version: '0.11'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.33.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
43
49
|
requirements:
|
44
|
-
- - "
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.7'
|
53
|
+
- - "<"
|
45
54
|
- !ruby/object:Gem::Version
|
46
55
|
version: 0.11.0
|
47
56
|
name: signet
|
@@ -49,7 +58,10 @@ dependencies:
|
|
49
58
|
type: :runtime
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
|
-
- - "
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.7'
|
64
|
+
- - "<"
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: 0.11.0
|
55
67
|
- !ruby/object:Gem::Dependency
|
@@ -153,17 +165,31 @@ dependencies:
|
|
153
165
|
- !ruby/object:Gem::Dependency
|
154
166
|
requirement: !ruby/object:Gem::Requirement
|
155
167
|
requirements:
|
156
|
-
- - "
|
168
|
+
- - "<="
|
157
169
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
170
|
+
version: 0.12.0
|
159
171
|
name: simplecov
|
160
172
|
prerelease: false
|
161
173
|
type: :development
|
162
174
|
version_requirements: !ruby/object:Gem::Requirement
|
163
175
|
requirements:
|
164
|
-
- - "
|
176
|
+
- - "<="
|
165
177
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
178
|
+
version: 0.12.0
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
requirement: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - "<="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: 0.12.0
|
185
|
+
name: simplecov-html
|
186
|
+
prerelease: false
|
187
|
+
type: :development
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "<="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.12.0
|
167
193
|
- !ruby/object:Gem::Dependency
|
168
194
|
requirement: !ruby/object:Gem::Requirement
|
169
195
|
requirements:
|