embulk-input-google_analytics 0.1.13 → 0.1.14

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
  SHA1:
3
- metadata.gz: 4c1608db16bb48a4978e48708aca23d4846125ea
4
- data.tar.gz: dd94cc151188181dbcadeb3b90ca1f20956f52ea
3
+ metadata.gz: 50dbb45a40d2ba30337b53953a09d03e18ab852a
4
+ data.tar.gz: 128c122ef03e9af445dfdde8b4d52a467a940881
5
5
  SHA512:
6
- metadata.gz: fe605f2a9af29587bb97dbee7a343aab9d6a9723a823cabce481a531f71e11760891e2991ddd1f3f92d7ce5146d60ddd730a989ab59903e093b6b408081956c9
7
- data.tar.gz: 058c0d0bb2d27c0adf828a971ce47ab8202a38fc0a779839461571619f126e56c51ef8d6538d617e4c57f3aeef2d3cc112305adffe1a8428614435fc78dcc274
6
+ metadata.gz: 190ed6b59331eff1d4de19e541e7d2e334f8829b03c2710046ea2dae811a8fda1f394a14c16533a5c2982f414361f9ed36cfbac18221b5047a0e5f2c98a3e285
7
+ data.tar.gz: 94eae01d0980ec8f91b328daaa4a681287489b81db31313b5dfc5c7e4aa3ae569c68a0aeda7a171b30af496df90f645d752c9a32d768afe9226b7045ebb7241d
@@ -1,3 +1,7 @@
1
+ ## 0.1.14 - 2017-06-27
2
+
3
+ * Fixed version of google-api-client [#26](https://github.com/treasure-data/embulk-input-google_analytics/pull/26)
4
+
1
5
  ## 0.1.13 - 2017-03-28
2
6
  * Fixed bug `last_record_time` in `preview` mode [#20](https://github.com/treasure-data/embulk-input-google_analytics/pull/20)
3
7
 
data/README.md CHANGED
@@ -11,7 +11,7 @@ Embulk input plugin for Google Analytics reports.
11
11
  ## Configuration
12
12
 
13
13
  - **json_key_content**: See example config.
14
- - **view_id**: View ID for target data. You can find it on [Google Analytics page (you need a permission to access Admin page](https://lucidpress.zendesk.com/hc/en-us/articles/207335356-Find-your-Google-Analytics-Tracking-ID-View-ID) (string, required)
14
+ - **view_id**: View ID for target data. See [Get View ID](#get-view-id) (string, required)
15
15
  - **time_series**: Only `ga:dateHour` or `ga:date` (string, required)
16
16
  - **dimensions**: Target dimensions (array, default: `[]` )
17
17
  - **metrics**: Target metrics (array, default: `[]` )
@@ -22,6 +22,14 @@ Embulk input plugin for Google Analytics reports.
22
22
  - **retry_limit**: Try to retry this times (integer, default: 5)
23
23
  - **retry_initial_wait_sec**: Wait seconds for exponential backoff initial value (integer, default: 2)
24
24
 
25
+ ### Get View ID
26
+
27
+ 1. Go to the [Google Analytics sign in page](https://analytics.google.com/analytics/) and sign in.
28
+ 1. Click "Admin" tab at left below
29
+ 1. Select the "Property" using the drop-down menu below ‘Property’.
30
+ 1. Select ‘View Settings’ beneath ‘View’.
31
+ 1. The View ID for the selected property is listed first under ‘Basic Settings
32
+
25
33
  ### About `json_key_content` option.
26
34
 
27
35
  You need a service account on Google.
@@ -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.13"
4
+ spec.version = "0.1.14"
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,7 +14,7 @@ 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.9"
17
+ spec.add_dependency "google-api-client", "0.10.1"
18
18
  spec.add_dependency "signet"
19
19
  spec.add_dependency "activesupport" # for Time.zone.parse, Time.zone.now
20
20
  spec.add_dependency "perfect_retry", "~> 0.5"
@@ -52,14 +52,12 @@ module Embulk
52
52
  met = metrics.zip(row[:metrics].first[:values]).to_h
53
53
  format_row = dim.merge(met)
54
54
  raw_time = format_row[task["time_series"]]
55
- Embulk.logger.info "#{raw_time}"
56
55
  optimize_value_by_query_limit?(raw_time)
57
56
  next if too_early_data?(raw_time)
58
57
  format_row[task["time_series"]] = time_parse_with_profile_timezone(raw_time)
59
58
  format_row["view_id"] = view_id
60
59
  block.call format_row
61
60
  end
62
- Embulk.logger.info "still here"
63
61
 
64
62
  break if preview?
65
63
 
metadata CHANGED
@@ -1,211 +1,211 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-google_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-28 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: httpclient
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - ">="
17
18
  - !ruby/object:Gem::Version
18
19
  version: '0'
19
- name: httpclient
20
- prerelease: false
21
- type: :runtime
22
20
  version_requirements: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - ">="
25
23
  - !ruby/object:Gem::Version
26
24
  version: '0'
25
+ prerelease: false
26
+ type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
+ name: google-api-client
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - "~>"
31
+ - - '='
31
32
  - !ruby/object:Gem::Version
32
- version: '0.9'
33
- name: google-api-client
34
- prerelease: false
35
- type: :runtime
33
+ version: 0.10.1
36
34
  version_requirements: !ruby/object:Gem::Requirement
37
35
  requirements:
38
- - - "~>"
36
+ - - '='
39
37
  - !ruby/object:Gem::Version
40
- version: '0.9'
38
+ version: 0.10.1
39
+ prerelease: false
40
+ type: :runtime
41
41
  - !ruby/object:Gem::Dependency
42
+ name: signet
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
- name: signet
48
- prerelease: false
49
- type: :runtime
50
48
  version_requirements: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - ">="
53
51
  - !ruby/object:Gem::Version
54
52
  version: '0'
53
+ prerelease: false
54
+ type: :runtime
55
55
  - !ruby/object:Gem::Dependency
56
+ name: activesupport
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - ">="
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: activesupport
62
- prerelease: false
63
- type: :runtime
64
62
  version_requirements: !ruby/object:Gem::Requirement
65
63
  requirements:
66
64
  - - ">="
67
65
  - !ruby/object:Gem::Version
68
66
  version: '0'
67
+ prerelease: false
68
+ type: :runtime
69
69
  - !ruby/object:Gem::Dependency
70
+ name: perfect_retry
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - "~>"
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0.5'
75
- name: perfect_retry
76
- prerelease: false
77
- type: :runtime
78
76
  version_requirements: !ruby/object:Gem::Requirement
79
77
  requirements:
80
78
  - - "~>"
81
79
  - !ruby/object:Gem::Version
82
80
  version: '0.5'
81
+ prerelease: false
82
+ type: :runtime
83
83
  - !ruby/object:Gem::Dependency
84
+ name: embulk
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
87
  - - ">="
87
88
  - !ruby/object:Gem::Version
88
89
  version: 0.8.9
89
- name: embulk
90
- prerelease: false
91
- type: :development
92
90
  version_requirements: !ruby/object:Gem::Requirement
93
91
  requirements:
94
92
  - - ">="
95
93
  - !ruby/object:Gem::Version
96
94
  version: 0.8.9
95
+ prerelease: false
96
+ type: :development
97
97
  - !ruby/object:Gem::Dependency
98
+ name: bundler
98
99
  requirement: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - ">="
101
102
  - !ruby/object:Gem::Version
102
103
  version: 1.10.6
103
- name: bundler
104
- prerelease: false
105
- type: :development
106
104
  version_requirements: !ruby/object:Gem::Requirement
107
105
  requirements:
108
106
  - - ">="
109
107
  - !ruby/object:Gem::Version
110
108
  version: 1.10.6
109
+ prerelease: false
110
+ type: :development
111
111
  - !ruby/object:Gem::Dependency
112
+ name: rake
112
113
  requirement: !ruby/object:Gem::Requirement
113
114
  requirements:
114
115
  - - ">="
115
116
  - !ruby/object:Gem::Version
116
117
  version: '10.0'
117
- name: rake
118
- prerelease: false
119
- type: :development
120
118
  version_requirements: !ruby/object:Gem::Requirement
121
119
  requirements:
122
120
  - - ">="
123
121
  - !ruby/object:Gem::Version
124
122
  version: '10.0'
123
+ prerelease: false
124
+ type: :development
125
125
  - !ruby/object:Gem::Dependency
126
+ name: test-unit
126
127
  requirement: !ruby/object:Gem::Requirement
127
128
  requirements:
128
129
  - - ">="
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
- name: test-unit
132
- prerelease: false
133
- type: :development
134
132
  version_requirements: !ruby/object:Gem::Requirement
135
133
  requirements:
136
134
  - - ">="
137
135
  - !ruby/object:Gem::Version
138
136
  version: '0'
137
+ prerelease: false
138
+ type: :development
139
139
  - !ruby/object:Gem::Dependency
140
+ name: test-unit-rr
140
141
  requirement: !ruby/object:Gem::Requirement
141
142
  requirements:
142
143
  - - ">="
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0'
145
- name: test-unit-rr
146
- prerelease: false
147
- type: :development
148
146
  version_requirements: !ruby/object:Gem::Requirement
149
147
  requirements:
150
148
  - - ">="
151
149
  - !ruby/object:Gem::Version
152
150
  version: '0'
151
+ prerelease: false
152
+ type: :development
153
153
  - !ruby/object:Gem::Dependency
154
+ name: simplecov
154
155
  requirement: !ruby/object:Gem::Requirement
155
156
  requirements:
156
157
  - - ">="
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
159
- name: simplecov
160
- prerelease: false
161
- type: :development
162
160
  version_requirements: !ruby/object:Gem::Requirement
163
161
  requirements:
164
162
  - - ">="
165
163
  - !ruby/object:Gem::Version
166
164
  version: '0'
165
+ prerelease: false
166
+ type: :development
167
167
  - !ruby/object:Gem::Dependency
168
+ name: codeclimate-test-reporter
168
169
  requirement: !ruby/object:Gem::Requirement
169
170
  requirements:
170
171
  - - ">="
171
172
  - !ruby/object:Gem::Version
172
173
  version: '0'
173
- name: codeclimate-test-reporter
174
- prerelease: false
175
- type: :development
176
174
  version_requirements: !ruby/object:Gem::Requirement
177
175
  requirements:
178
176
  - - ">="
179
177
  - !ruby/object:Gem::Version
180
178
  version: '0'
179
+ prerelease: false
180
+ type: :development
181
181
  - !ruby/object:Gem::Dependency
182
+ name: pry
182
183
  requirement: !ruby/object:Gem::Requirement
183
184
  requirements:
184
185
  - - ">="
185
186
  - !ruby/object:Gem::Version
186
187
  version: '0'
187
- name: pry
188
- prerelease: false
189
- type: :development
190
188
  version_requirements: !ruby/object:Gem::Requirement
191
189
  requirements:
192
190
  - - ">="
193
191
  - !ruby/object:Gem::Version
194
192
  version: '0'
193
+ prerelease: false
194
+ type: :development
195
195
  - !ruby/object:Gem::Dependency
196
+ name: gem_release_helper
196
197
  requirement: !ruby/object:Gem::Requirement
197
198
  requirements:
198
199
  - - "~>"
199
200
  - !ruby/object:Gem::Version
200
201
  version: '1.0'
201
- name: gem_release_helper
202
- prerelease: false
203
- type: :development
204
202
  version_requirements: !ruby/object:Gem::Requirement
205
203
  requirements:
206
204
  - - "~>"
207
205
  - !ruby/object:Gem::Version
208
206
  version: '1.0'
207
+ prerelease: false
208
+ type: :development
209
209
  description: Loads records from Google Analytics.
210
210
  email:
211
211
  - k@uu59.org
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.6.4
256
+ rubygems_version: 2.6.6
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: Google Analytics input plugin for Embulk