embulk-input-google_spreadsheets 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +13 -0
- data/embulk-input-google_spreadsheets.gemspec +7 -2
- data/lib/embulk/input/google_spreadsheets.rb +10 -0
- data/lib/embulk/input/google_spreadsheets/spreadsheets_url_util.rb +1 -1
- metadata +49 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '08aa843c655789933cc63e2b574c01de768b85fccddbcdc9dbe16a80d289644f'
|
4
|
+
data.tar.gz: 2cd4056f9934dbcb5b6a8d0decd6e1c165e201b9bf4d068efb075ac47d784496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 737d8fe536bafc58597259bda9538e249afac168fa41271e3024e6d0d394dfacf355fc9fc5fdc6561c9e84bb00b8b86305d9b289f6b57db56f7e88d34c6be3de
|
7
|
+
data.tar.gz: 2e39189a0d50840b1fb4378e75bc019fb2aa32d68af658ca856a23fa676b2855b80d86a5bb8b717e410204f2f06b6e87c7f42697fa2751d561f56c06f5c73dbf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
1.1.1 (2019-10-17)
|
2
|
+
==================
|
3
|
+
- Maintenance: Lock signet and google-api-client version (thanks to @hiroyuki-sato)
|
4
|
+
- https://github.com/medjed/embulk-input-google_spreadsheets/pull/14
|
5
|
+
|
1
6
|
1.1.0 (2017-04-18)
|
2
7
|
==================
|
3
8
|
- New Feature: Support `value_render_option` option.
|
data/README.md
CHANGED
@@ -52,6 +52,19 @@ Embulk input plugin to load records from Google Spreadsheets.
|
|
52
52
|
* `minimal` : typecast minimally.
|
53
53
|
|
54
54
|
|
55
|
+
## Prepare JSON file for auth_method: authorized_user
|
56
|
+
|
57
|
+
You may use [example/setup_authorized_user_credentials.rb](example/setup_authorized_user_credentials.rb) to prepare OAuth token.
|
58
|
+
|
59
|
+
Go to GCP console > API Manager > Credentials > Create 'OAuth Client ID'. Get the client id and client secret.
|
60
|
+
|
61
|
+
Run `setup_authorized_user_credentials.rb` to get `refresh_token`.
|
62
|
+
|
63
|
+
```
|
64
|
+
bundle --path vendor/bundle
|
65
|
+
bundle exec ruby example/setup_authorized_user_credentials.rb
|
66
|
+
```
|
67
|
+
|
55
68
|
## Development
|
56
69
|
|
57
70
|
### Run example:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'embulk-input-google_spreadsheets'
|
3
|
-
spec.version = '1.1.
|
3
|
+
spec.version = '1.1.1'
|
4
4
|
spec.authors = %w(Civitaspo yang-xu)
|
5
5
|
spec.summary = 'Google Spreadsheets input plugin for Embulk'
|
6
6
|
spec.description = 'Load records from Google Spreadsheets.'
|
@@ -19,6 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_development_dependency 'test-unit'
|
20
20
|
spec.add_development_dependency 'test-unit-rr'
|
21
21
|
|
22
|
-
|
22
|
+
# TODO
|
23
|
+
# signet 0.12.0 and google-api-client 0.33.0 require >= Ruby 2.4.
|
24
|
+
# Embulk 0.9 use JRuby 9.1.X.Y and It compatible Ruby 2.3.
|
25
|
+
# So, install signet < 0.12 and google-api-client < 0.33.0 explicitly.
|
26
|
+
spec.add_dependency 'signet', '~> 0.7', '< 0.12'
|
27
|
+
spec.add_dependency 'google-api-client', '>= 0.11', '< 0.33'
|
23
28
|
spec.add_dependency 'time_with_zone'
|
24
29
|
end
|
@@ -178,6 +178,16 @@ module Embulk
|
|
178
178
|
|
179
179
|
task_report = {}
|
180
180
|
return task_report
|
181
|
+
|
182
|
+
rescue Google::Apis::Error => e
|
183
|
+
logger.error {
|
184
|
+
m = "Error: #{e.class}"
|
185
|
+
m << ", Message: #{e.message}" if e.message
|
186
|
+
m << ", StatusCode: #{e.status_code}" if e.status_code
|
187
|
+
m << ", Body: #{e.body}" if e.body
|
188
|
+
m
|
189
|
+
}
|
190
|
+
raise e
|
181
191
|
end
|
182
192
|
end
|
183
193
|
end
|
metadata
CHANGED
@@ -1,123 +1,149 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-google_spreadsheets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Civitaspo
|
8
8
|
- yang-xu
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
name: embulk
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
18
|
- - ">="
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 0.8.1
|
20
|
-
name: embulk
|
21
|
-
prerelease: false
|
22
21
|
type: :development
|
22
|
+
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 0.8.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - ">="
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: '0'
|
34
|
-
name: bundler
|
35
|
-
prerelease: false
|
36
35
|
type: :development
|
36
|
+
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
46
|
- - ">="
|
46
47
|
- !ruby/object:Gem::Version
|
47
48
|
version: '0'
|
48
|
-
name: rake
|
49
|
-
prerelease: false
|
50
49
|
type: :development
|
50
|
+
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
+
name: highline
|
57
58
|
requirement: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
60
|
- - ">="
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: '0'
|
62
|
-
name: highline
|
63
|
-
prerelease: false
|
64
63
|
type: :development
|
64
|
+
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
+
name: test-unit
|
71
72
|
requirement: !ruby/object:Gem::Requirement
|
72
73
|
requirements:
|
73
74
|
- - ">="
|
74
75
|
- !ruby/object:Gem::Version
|
75
76
|
version: '0'
|
76
|
-
name: test-unit
|
77
|
-
prerelease: false
|
78
77
|
type: :development
|
78
|
+
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
+
name: test-unit-rr
|
85
86
|
requirement: !ruby/object:Gem::Requirement
|
86
87
|
requirements:
|
87
88
|
- - ">="
|
88
89
|
- !ruby/object:Gem::Version
|
89
90
|
version: '0'
|
90
|
-
name: test-unit-rr
|
91
|
-
prerelease: false
|
92
91
|
type: :development
|
92
|
+
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
+
name: signet
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.7'
|
105
|
+
- - "<"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0.12'
|
108
|
+
type: :runtime
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0.7'
|
115
|
+
- - "<"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.12'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: google-api-client
|
99
120
|
requirement: !ruby/object:Gem::Requirement
|
100
121
|
requirements:
|
101
122
|
- - ">="
|
102
123
|
- !ruby/object:Gem::Version
|
103
124
|
version: '0.11'
|
104
|
-
|
105
|
-
|
125
|
+
- - "<"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0.33'
|
106
128
|
type: :runtime
|
129
|
+
prerelease: false
|
107
130
|
version_requirements: !ruby/object:Gem::Requirement
|
108
131
|
requirements:
|
109
132
|
- - ">="
|
110
133
|
- !ruby/object:Gem::Version
|
111
134
|
version: '0.11'
|
135
|
+
- - "<"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0.33'
|
112
138
|
- !ruby/object:Gem::Dependency
|
139
|
+
name: time_with_zone
|
113
140
|
requirement: !ruby/object:Gem::Requirement
|
114
141
|
requirements:
|
115
142
|
- - ">="
|
116
143
|
- !ruby/object:Gem::Version
|
117
144
|
version: '0'
|
118
|
-
name: time_with_zone
|
119
|
-
prerelease: false
|
120
145
|
type: :runtime
|
146
|
+
prerelease: false
|
121
147
|
version_requirements: !ruby/object:Gem::Requirement
|
122
148
|
requirements:
|
123
149
|
- - ">="
|
@@ -185,7 +211,7 @@ homepage: https://github.com/medjed/embulk-input-google_spreadsheets
|
|
185
211
|
licenses:
|
186
212
|
- MIT
|
187
213
|
metadata: {}
|
188
|
-
post_install_message:
|
214
|
+
post_install_message:
|
189
215
|
rdoc_options: []
|
190
216
|
require_paths:
|
191
217
|
- lib
|
@@ -200,9 +226,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
226
|
- !ruby/object:Gem::Version
|
201
227
|
version: '0'
|
202
228
|
requirements: []
|
203
|
-
rubyforge_project:
|
204
|
-
rubygems_version: 2.6
|
205
|
-
signing_key:
|
229
|
+
rubyforge_project:
|
230
|
+
rubygems_version: 2.7.6
|
231
|
+
signing_key:
|
206
232
|
specification_version: 4
|
207
233
|
summary: Google Spreadsheets input plugin for Embulk
|
208
234
|
test_files:
|