embulk-input-zendesk 0.2.7 → 0.2.8

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: 3d1102bce0d8a2464284659c4349277604022de6
4
- data.tar.gz: 44688236a95097808b51dfaa2528c87ba3230f6f
3
+ metadata.gz: d42980e49e3a8c59c1e3acb8f4a07826bf43c9fe
4
+ data.tar.gz: 9778438abe30c426dc1f26f2a25e860b83048d6e
5
5
  SHA512:
6
- metadata.gz: 9ee108f8f523bbc57ef69d4f943d51fa2ad1c18db75e91d8433b5a01178bc1f037a45f43db4334f7e0ca3cb8ed350e9d89180f769340eef53e0668a4b86bd81b
7
- data.tar.gz: f3ac93d20e468e462a622ece7c2287935c9011739064935aaeccd899b3629aebc91258ee6363d8b1ca111b918a7202484cd21c78b71f4aa412159accd56f62cc
6
+ metadata.gz: b1017ac48fa66deff29cb0336ceaa591c457b6ba981ed63dd7136aff99aa4f3b6f412055d61dc113560574ae3cd2e51710a8f07b55bbb599e7301bd5319a0188
7
+ data.tar.gz: 63048888d00de3dc6d1f00c600498ce50f7da65c16f57055fe6ca16cb7b14a787790c69598895ec8fcee04df85bf8e43b2d269ad3af56cced6cf60df754da6bf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.8 - 2017-07-28
2
+ * [fixed] Raise `DataError` instead of `TempError` after giving up for `TempError` [#40](https://github.com/treasure-data/embulk-input-zendesk/pull/40)
3
+ * [enhancement] Only rescue `TempError` when executing thread pool, only create/shutdown pool once during retry, move retry to inside of `execute_thread_pool`
4
+
1
5
  ## 0.2.7 - 2017-07-19
2
6
  * [fixed] Ensure thread pool is shutdown [#38](https://github.com/treasure-data/embulk-input-zendesk/pull/38)
3
7
  * [enhancement] Add retry for temporary error: missing required key from JSON response
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-zendesk"
4
- spec.version = "0.2.7"
4
+ spec.version = "0.2.8"
5
5
  spec.authors = ["uu59", "muga", "sakama"]
6
6
  spec.summary = "Zendesk input plugin for Embulk"
7
7
  spec.description = "Loads records from Zendesk."
@@ -154,6 +154,7 @@ module Embulk
154
154
 
155
155
  begin
156
156
  data = JSON.parse(response.body)
157
+ raise "Invalid data format: #{key} must be array" unless data.key?(key) && data[key].is_a?(Array)
157
158
  rescue => e
158
159
  raise Embulk::DataError.new(e)
159
160
  end
@@ -599,7 +599,7 @@ module Embulk
599
599
  assert_equal(true, @pool.shutdown?)
600
600
  end
601
601
 
602
- test "should shutdown pool - with TempError (retry)" do
602
+ test "should shutdown pool - retry TempError and raise DataError" do
603
603
  response = [
604
604
  "HTTP/1.1 200",
605
605
  "Content-Type: application/json",
@@ -608,7 +608,7 @@ module Embulk
608
608
  ].join("\r\n")
609
609
  @httpclient.test_loopback_http_response << response
610
610
  @httpclient.test_loopback_http_response << response # retry 1
611
- assert_raise(TempError) do
611
+ assert_raise(DataError) do
612
612
  client.tickets(false)
613
613
  end
614
614
  assert_equal(true, @pool.shutdown?)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-zendesk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
@@ -10,190 +10,190 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-07-27 00:00:00.000000000 Z
13
+ date: 2019-01-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: perfect_retry
17
- version_requirements: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: '0.5'
22
16
  requirement: !ruby/object:Gem::Requirement
23
17
  requirements:
24
18
  - - "~>"
25
19
  - !ruby/object:Gem::Version
26
20
  version: '0.5'
21
+ name: perfect_retry
27
22
  prerelease: false
28
23
  type: :runtime
29
- - !ruby/object:Gem::Dependency
30
- name: httpclient
31
24
  version_requirements: !ruby/object:Gem::Requirement
32
25
  requirements:
33
- - - ">="
26
+ - - "~>"
34
27
  - !ruby/object:Gem::Version
35
- version: '0'
28
+ version: '0.5'
29
+ - !ruby/object:Gem::Dependency
36
30
  requirement: !ruby/object:Gem::Requirement
37
31
  requirements:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
34
  version: '0'
35
+ name: httpclient
41
36
  prerelease: false
42
37
  type: :runtime
43
- - !ruby/object:Gem::Dependency
44
- name: concurrent-ruby
45
38
  version_requirements: !ruby/object:Gem::Requirement
46
39
  requirements:
47
40
  - - ">="
48
41
  - !ruby/object:Gem::Version
49
42
  version: '0'
43
+ - !ruby/object:Gem::Dependency
50
44
  requirement: !ruby/object:Gem::Requirement
51
45
  requirements:
52
46
  - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
49
+ name: concurrent-ruby
55
50
  prerelease: false
56
51
  type: :runtime
57
- - !ruby/object:Gem::Dependency
58
- name: embulk
59
52
  version_requirements: !ruby/object:Gem::Requirement
60
53
  requirements:
61
- - - "~>"
54
+ - - ">="
62
55
  - !ruby/object:Gem::Version
63
- version: 0.8.1
56
+ version: '0'
57
+ - !ruby/object:Gem::Dependency
64
58
  requirement: !ruby/object:Gem::Requirement
65
59
  requirements:
66
60
  - - "~>"
67
61
  - !ruby/object:Gem::Version
68
62
  version: 0.8.1
63
+ name: embulk
69
64
  prerelease: false
70
65
  type: :development
71
- - !ruby/object:Gem::Dependency
72
- name: bundler
73
66
  version_requirements: !ruby/object:Gem::Requirement
74
67
  requirements:
75
68
  - - "~>"
76
69
  - !ruby/object:Gem::Version
77
- version: '1.0'
70
+ version: 0.8.1
71
+ - !ruby/object:Gem::Dependency
78
72
  requirement: !ruby/object:Gem::Requirement
79
73
  requirements:
80
74
  - - "~>"
81
75
  - !ruby/object:Gem::Version
82
76
  version: '1.0'
77
+ name: bundler
83
78
  prerelease: false
84
79
  type: :development
85
- - !ruby/object:Gem::Dependency
86
- name: rake
87
80
  version_requirements: !ruby/object:Gem::Requirement
88
81
  requirements:
89
- - - ">="
82
+ - - "~>"
90
83
  - !ruby/object:Gem::Version
91
- version: '10.0'
84
+ version: '1.0'
85
+ - !ruby/object:Gem::Dependency
92
86
  requirement: !ruby/object:Gem::Requirement
93
87
  requirements:
94
88
  - - ">="
95
89
  - !ruby/object:Gem::Version
96
90
  version: '10.0'
91
+ name: rake
97
92
  prerelease: false
98
93
  type: :development
99
- - !ruby/object:Gem::Dependency
100
- name: pry
101
94
  version_requirements: !ruby/object:Gem::Requirement
102
95
  requirements:
103
96
  - - ">="
104
97
  - !ruby/object:Gem::Version
105
- version: '0'
98
+ version: '10.0'
99
+ - !ruby/object:Gem::Dependency
106
100
  requirement: !ruby/object:Gem::Requirement
107
101
  requirements:
108
102
  - - ">="
109
103
  - !ruby/object:Gem::Version
110
104
  version: '0'
105
+ name: pry
111
106
  prerelease: false
112
107
  type: :development
113
- - !ruby/object:Gem::Dependency
114
- name: test-unit
115
108
  version_requirements: !ruby/object:Gem::Requirement
116
109
  requirements:
117
- - - "~>"
110
+ - - ">="
118
111
  - !ruby/object:Gem::Version
119
- version: 3.1.5
112
+ version: '0'
113
+ - !ruby/object:Gem::Dependency
120
114
  requirement: !ruby/object:Gem::Requirement
121
115
  requirements:
122
116
  - - "~>"
123
117
  - !ruby/object:Gem::Version
124
118
  version: 3.1.5
119
+ name: test-unit
125
120
  prerelease: false
126
121
  type: :development
127
- - !ruby/object:Gem::Dependency
128
- name: test-unit-rr
129
122
  version_requirements: !ruby/object:Gem::Requirement
130
123
  requirements:
131
- - - ">="
124
+ - - "~>"
132
125
  - !ruby/object:Gem::Version
133
- version: '0'
126
+ version: 3.1.5
127
+ - !ruby/object:Gem::Dependency
134
128
  requirement: !ruby/object:Gem::Requirement
135
129
  requirements:
136
130
  - - ">="
137
131
  - !ruby/object:Gem::Version
138
132
  version: '0'
133
+ name: test-unit-rr
139
134
  prerelease: false
140
135
  type: :development
141
- - !ruby/object:Gem::Dependency
142
- name: rr
143
136
  version_requirements: !ruby/object:Gem::Requirement
144
137
  requirements:
145
- - - "~>"
138
+ - - ">="
146
139
  - !ruby/object:Gem::Version
147
- version: 1.1.2
140
+ version: '0'
141
+ - !ruby/object:Gem::Dependency
148
142
  requirement: !ruby/object:Gem::Requirement
149
143
  requirements:
150
144
  - - "~>"
151
145
  - !ruby/object:Gem::Version
152
146
  version: 1.1.2
147
+ name: rr
153
148
  prerelease: false
154
149
  type: :development
155
- - !ruby/object:Gem::Dependency
156
- name: simplecov
157
150
  version_requirements: !ruby/object:Gem::Requirement
158
151
  requirements:
159
- - - ">="
152
+ - - "~>"
160
153
  - !ruby/object:Gem::Version
161
- version: '0'
154
+ version: 1.1.2
155
+ - !ruby/object:Gem::Dependency
162
156
  requirement: !ruby/object:Gem::Requirement
163
157
  requirements:
164
158
  - - ">="
165
159
  - !ruby/object:Gem::Version
166
160
  version: '0'
161
+ name: simplecov
167
162
  prerelease: false
168
163
  type: :development
169
- - !ruby/object:Gem::Dependency
170
- name: gem_release_helper
171
164
  version_requirements: !ruby/object:Gem::Requirement
172
165
  requirements:
173
- - - "~>"
166
+ - - ">="
174
167
  - !ruby/object:Gem::Version
175
- version: '1.0'
168
+ version: '0'
169
+ - !ruby/object:Gem::Dependency
176
170
  requirement: !ruby/object:Gem::Requirement
177
171
  requirements:
178
172
  - - "~>"
179
173
  - !ruby/object:Gem::Version
180
174
  version: '1.0'
175
+ name: gem_release_helper
181
176
  prerelease: false
182
177
  type: :development
183
- - !ruby/object:Gem::Dependency
184
- name: codeclimate-test-reporter
185
178
  version_requirements: !ruby/object:Gem::Requirement
186
179
  requirements:
187
180
  - - "~>"
188
181
  - !ruby/object:Gem::Version
189
- version: '0.6'
182
+ version: '1.0'
183
+ - !ruby/object:Gem::Dependency
190
184
  requirement: !ruby/object:Gem::Requirement
191
185
  requirements:
192
186
  - - "~>"
193
187
  - !ruby/object:Gem::Version
194
188
  version: '0.6'
189
+ name: codeclimate-test-reporter
195
190
  prerelease: false
196
191
  type: :development
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: '0.6'
197
197
  description: Loads records from Zendesk.
198
198
  email:
199
199
  - k@uu59.org