flydata 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +17 -18
- data/Gemfile.lock +68 -71
- data/VERSION +1 -1
- data/flydata.gemspec +58 -59
- data/lib/flydata/command/sync.rb +3 -1
- data/lib/flydata/fluent-plugins/mysql/alter_table_query_handler.rb +12 -13
- data/lib/flydata/fluent-plugins/mysql/binlog_query_dispatcher.rb +2 -1
- data/lib/flydata/fluent-plugins/mysql/binlog_record_handler.rb +7 -3
- data/lib/flydata/fluent-plugins/mysql/ddl_query_handler.rb +22 -0
- data/lib/flydata/parser/mysql/mysql_alter_table.treetop +27 -2
- data/lib/flydata/table_def/redshift_table_def.rb +30 -16
- data/spec/flydata/fluent-plugins/in_mysql_binlog_flydata_spec.rb +8 -9
- data/spec/flydata/parser/mysql/alter_table_parser_spec.rb +54 -0
- data/spec/flydata/table_def/redshift_table_def_spec.rb +130 -0
- metadata +161 -117
metadata
CHANGED
@@ -1,100 +1,118 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flydata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.13
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Koichi Fujikawa
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rest-client
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.6.7
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.6'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 1.6.7
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.6'
|
30
33
|
- !ruby/object:Gem::Dependency
|
31
34
|
name: i18n
|
32
35
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
36
|
requirements:
|
35
|
-
- -
|
37
|
+
- - ">="
|
36
38
|
- !ruby/object:Gem::Version
|
37
39
|
version: 0.6.5
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.6'
|
38
43
|
type: :runtime
|
39
44
|
prerelease: false
|
40
45
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
46
|
requirements:
|
43
|
-
- -
|
47
|
+
- - ">="
|
44
48
|
- !ruby/object:Gem::Version
|
45
49
|
version: 0.6.5
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.6'
|
46
53
|
- !ruby/object:Gem::Dependency
|
47
54
|
name: activesupport
|
48
55
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
56
|
requirements:
|
51
|
-
- -
|
57
|
+
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
53
59
|
version: 4.0.0
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '4.0'
|
54
63
|
type: :runtime
|
55
64
|
prerelease: false
|
56
65
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
66
|
requirements:
|
59
|
-
- -
|
67
|
+
- - ">="
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: 4.0.0
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '4.0'
|
62
73
|
- !ruby/object:Gem::Dependency
|
63
74
|
name: json
|
64
75
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
76
|
requirements:
|
67
|
-
- -
|
77
|
+
- - ">="
|
68
78
|
- !ruby/object:Gem::Version
|
69
79
|
version: 1.8.0
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.8'
|
70
83
|
type: :runtime
|
71
84
|
prerelease: false
|
72
85
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
86
|
requirements:
|
75
|
-
- -
|
87
|
+
- - ">="
|
76
88
|
- !ruby/object:Gem::Version
|
77
89
|
version: 1.8.0
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '1.8'
|
78
93
|
- !ruby/object:Gem::Dependency
|
79
94
|
name: highline
|
80
95
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
96
|
requirements:
|
83
|
-
- -
|
97
|
+
- - ">="
|
84
98
|
- !ruby/object:Gem::Version
|
85
99
|
version: 1.6.19
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.6'
|
86
103
|
type: :runtime
|
87
104
|
prerelease: false
|
88
105
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
106
|
requirements:
|
91
|
-
- -
|
107
|
+
- - ">="
|
92
108
|
- !ruby/object:Gem::Version
|
93
109
|
version: 1.6.19
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '1.6'
|
94
113
|
- !ruby/object:Gem::Dependency
|
95
114
|
name: fluentd
|
96
115
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
116
|
requirements:
|
99
117
|
- - '='
|
100
118
|
- !ruby/object:Gem::Version
|
@@ -102,7 +120,6 @@ dependencies:
|
|
102
120
|
type: :runtime
|
103
121
|
prerelease: false
|
104
122
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
123
|
requirements:
|
107
124
|
- - '='
|
108
125
|
- !ruby/object:Gem::Version
|
@@ -110,227 +127,257 @@ dependencies:
|
|
110
127
|
- !ruby/object:Gem::Dependency
|
111
128
|
name: ruby-binlog
|
112
129
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
130
|
requirements:
|
115
|
-
- -
|
131
|
+
- - ">="
|
116
132
|
- !ruby/object:Gem::Version
|
117
133
|
version: 1.0.1
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '1.0'
|
118
137
|
type: :runtime
|
119
138
|
prerelease: false
|
120
139
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
140
|
requirements:
|
123
|
-
- -
|
141
|
+
- - ">="
|
124
142
|
- !ruby/object:Gem::Version
|
125
143
|
version: 1.0.1
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '1.0'
|
126
147
|
- !ruby/object:Gem::Dependency
|
127
148
|
name: fluent-plugin-mysql-binlog
|
128
149
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
150
|
requirements:
|
131
|
-
- -
|
151
|
+
- - ">="
|
132
152
|
- !ruby/object:Gem::Version
|
133
153
|
version: 0.0.2
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0.0'
|
134
157
|
type: :runtime
|
135
158
|
prerelease: false
|
136
159
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
160
|
requirements:
|
139
|
-
- -
|
161
|
+
- - ">="
|
140
162
|
- !ruby/object:Gem::Version
|
141
163
|
version: 0.0.2
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.0'
|
142
167
|
- !ruby/object:Gem::Dependency
|
143
168
|
name: mysql2
|
144
169
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
170
|
requirements:
|
147
|
-
- -
|
171
|
+
- - ">="
|
148
172
|
- !ruby/object:Gem::Version
|
149
173
|
version: 0.3.11
|
174
|
+
- - "~>"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0.3'
|
150
177
|
type: :runtime
|
151
178
|
prerelease: false
|
152
179
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
180
|
requirements:
|
155
|
-
- -
|
181
|
+
- - ">="
|
156
182
|
- !ruby/object:Gem::Version
|
157
183
|
version: 0.3.11
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0.3'
|
158
187
|
- !ruby/object:Gem::Dependency
|
159
188
|
name: slop
|
160
189
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
190
|
requirements:
|
163
|
-
- -
|
191
|
+
- - ">="
|
164
192
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
193
|
+
version: 3.4.6
|
194
|
+
- - "~>"
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '3.4'
|
166
197
|
type: :runtime
|
167
198
|
prerelease: false
|
168
199
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
200
|
requirements:
|
171
|
-
- -
|
201
|
+
- - ">="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: 3.4.6
|
204
|
+
- - "~>"
|
172
205
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
206
|
+
version: '3.4'
|
174
207
|
- !ruby/object:Gem::Dependency
|
175
208
|
name: treetop
|
176
209
|
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
210
|
requirements:
|
179
|
-
- -
|
211
|
+
- - ">="
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: 1.5.3
|
214
|
+
- - "~>"
|
180
215
|
- !ruby/object:Gem::Version
|
181
|
-
version: '
|
216
|
+
version: '1.5'
|
182
217
|
type: :runtime
|
183
218
|
prerelease: false
|
184
219
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
220
|
requirements:
|
187
|
-
- -
|
221
|
+
- - ">="
|
188
222
|
- !ruby/object:Gem::Version
|
189
|
-
version:
|
190
|
-
-
|
191
|
-
name: bundler
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
|
-
requirements:
|
195
|
-
- - ! '>='
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: '0'
|
198
|
-
type: :development
|
199
|
-
prerelease: false
|
200
|
-
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
|
-
requirements:
|
203
|
-
- - ! '>='
|
223
|
+
version: 1.5.3
|
224
|
+
- - "~>"
|
204
225
|
- !ruby/object:Gem::Version
|
205
|
-
version: '
|
226
|
+
version: '1.5'
|
206
227
|
- !ruby/object:Gem::Dependency
|
207
228
|
name: jeweler
|
208
229
|
requirement: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
230
|
requirements:
|
211
|
-
- -
|
231
|
+
- - ">="
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: 1.8.8
|
234
|
+
- - "~>"
|
212
235
|
- !ruby/object:Gem::Version
|
213
|
-
version: '
|
236
|
+
version: '1.8'
|
214
237
|
type: :development
|
215
238
|
prerelease: false
|
216
239
|
version_requirements: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
240
|
requirements:
|
219
|
-
- -
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 1.8.8
|
244
|
+
- - "~>"
|
220
245
|
- !ruby/object:Gem::Version
|
221
|
-
version: '
|
246
|
+
version: '1.8'
|
222
247
|
- !ruby/object:Gem::Dependency
|
223
248
|
name: rspec
|
224
249
|
requirement: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
250
|
requirements:
|
227
|
-
- - ~>
|
251
|
+
- - "~>"
|
228
252
|
- !ruby/object:Gem::Version
|
229
253
|
version: '3.0'
|
230
254
|
type: :development
|
231
255
|
prerelease: false
|
232
256
|
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
257
|
requirements:
|
235
|
-
- - ~>
|
258
|
+
- - "~>"
|
236
259
|
- !ruby/object:Gem::Version
|
237
260
|
version: '3.0'
|
238
261
|
- !ruby/object:Gem::Dependency
|
239
262
|
name: timecop
|
240
263
|
requirement: !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
264
|
requirements:
|
243
|
-
- -
|
265
|
+
- - ">="
|
244
266
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
267
|
+
version: 0.7.1
|
268
|
+
- - "~>"
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: '0.7'
|
246
271
|
type: :development
|
247
272
|
prerelease: false
|
248
273
|
version_requirements: !ruby/object:Gem::Requirement
|
249
|
-
none: false
|
250
274
|
requirements:
|
251
|
-
- -
|
275
|
+
- - ">="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: 0.7.1
|
278
|
+
- - "~>"
|
252
279
|
- !ruby/object:Gem::Version
|
253
|
-
version: '0'
|
280
|
+
version: '0.7'
|
254
281
|
- !ruby/object:Gem::Dependency
|
255
282
|
name: sqlite3
|
256
283
|
requirement: !ruby/object:Gem::Requirement
|
257
|
-
none: false
|
258
284
|
requirements:
|
259
|
-
- -
|
285
|
+
- - ">="
|
260
286
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
287
|
+
version: 0.1.1
|
288
|
+
- - "~>"
|
289
|
+
- !ruby/object:Gem::Version
|
290
|
+
version: '0.1'
|
262
291
|
type: :development
|
263
292
|
prerelease: false
|
264
293
|
version_requirements: !ruby/object:Gem::Requirement
|
265
|
-
none: false
|
266
294
|
requirements:
|
267
|
-
- -
|
295
|
+
- - ">="
|
296
|
+
- !ruby/object:Gem::Version
|
297
|
+
version: 0.1.1
|
298
|
+
- - "~>"
|
268
299
|
- !ruby/object:Gem::Version
|
269
|
-
version: '0'
|
300
|
+
version: '0.1'
|
270
301
|
- !ruby/object:Gem::Dependency
|
271
302
|
name: ruby-prof
|
272
303
|
requirement: !ruby/object:Gem::Requirement
|
273
|
-
none: false
|
274
304
|
requirements:
|
275
|
-
- -
|
305
|
+
- - ">="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: 0.15.1
|
308
|
+
- - "~>"
|
276
309
|
- !ruby/object:Gem::Version
|
277
|
-
version: '0'
|
310
|
+
version: '0.15'
|
278
311
|
type: :development
|
279
312
|
prerelease: false
|
280
313
|
version_requirements: !ruby/object:Gem::Requirement
|
281
|
-
none: false
|
282
314
|
requirements:
|
283
|
-
- -
|
315
|
+
- - ">="
|
284
316
|
- !ruby/object:Gem::Version
|
285
|
-
version:
|
317
|
+
version: 0.15.1
|
318
|
+
- - "~>"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0.15'
|
286
321
|
- !ruby/object:Gem::Dependency
|
287
322
|
name: activemodel
|
288
323
|
requirement: !ruby/object:Gem::Requirement
|
289
|
-
none: false
|
290
324
|
requirements:
|
291
|
-
- -
|
325
|
+
- - ">="
|
292
326
|
- !ruby/object:Gem::Version
|
293
327
|
version: 4.0.0
|
328
|
+
- - "~>"
|
329
|
+
- !ruby/object:Gem::Version
|
330
|
+
version: '4.0'
|
294
331
|
type: :development
|
295
332
|
prerelease: false
|
296
333
|
version_requirements: !ruby/object:Gem::Requirement
|
297
|
-
none: false
|
298
334
|
requirements:
|
299
|
-
- -
|
335
|
+
- - ">="
|
300
336
|
- !ruby/object:Gem::Version
|
301
337
|
version: 4.0.0
|
338
|
+
- - "~>"
|
339
|
+
- !ruby/object:Gem::Version
|
340
|
+
version: '4.0'
|
302
341
|
- !ruby/object:Gem::Dependency
|
303
342
|
name: activerecord
|
304
343
|
requirement: !ruby/object:Gem::Requirement
|
305
|
-
none: false
|
306
344
|
requirements:
|
307
|
-
- -
|
345
|
+
- - ">="
|
308
346
|
- !ruby/object:Gem::Version
|
309
347
|
version: 4.0.0
|
348
|
+
- - "~>"
|
349
|
+
- !ruby/object:Gem::Version
|
350
|
+
version: '4.0'
|
310
351
|
type: :development
|
311
352
|
prerelease: false
|
312
353
|
version_requirements: !ruby/object:Gem::Requirement
|
313
|
-
none: false
|
314
354
|
requirements:
|
315
|
-
- -
|
355
|
+
- - ">="
|
316
356
|
- !ruby/object:Gem::Version
|
317
357
|
version: 4.0.0
|
358
|
+
- - "~>"
|
359
|
+
- !ruby/object:Gem::Version
|
360
|
+
version: '4.0'
|
318
361
|
- !ruby/object:Gem::Dependency
|
319
362
|
name: protected_attributes
|
320
363
|
requirement: !ruby/object:Gem::Requirement
|
321
|
-
none: false
|
322
364
|
requirements:
|
323
|
-
- -
|
365
|
+
- - ">="
|
324
366
|
- !ruby/object:Gem::Version
|
325
|
-
version:
|
367
|
+
version: 1.0.8
|
368
|
+
- - "~>"
|
369
|
+
- !ruby/object:Gem::Version
|
370
|
+
version: '1.0'
|
326
371
|
type: :development
|
327
372
|
prerelease: false
|
328
373
|
version_requirements: !ruby/object:Gem::Requirement
|
329
|
-
none: false
|
330
374
|
requirements:
|
331
|
-
- -
|
375
|
+
- - ">="
|
376
|
+
- !ruby/object:Gem::Version
|
377
|
+
version: 1.0.8
|
378
|
+
- - "~>"
|
332
379
|
- !ruby/object:Gem::Version
|
333
|
-
version: '0'
|
380
|
+
version: '1.0'
|
334
381
|
description: FlyData Command Line Interface
|
335
382
|
email: sysadmin@flydata.co
|
336
383
|
executables:
|
@@ -339,8 +386,8 @@ executables:
|
|
339
386
|
extensions: []
|
340
387
|
extra_rdoc_files: []
|
341
388
|
files:
|
342
|
-
- .gitignore
|
343
|
-
- .rspec
|
389
|
+
- ".gitignore"
|
390
|
+
- ".rspec"
|
344
391
|
- Gemfile
|
345
392
|
- Gemfile.lock
|
346
393
|
- Rakefile
|
@@ -383,6 +430,7 @@ files:
|
|
383
430
|
- lib/flydata/fluent-plugins/mysql/binlog_record_dispatcher.rb
|
384
431
|
- lib/flydata/fluent-plugins/mysql/binlog_record_handler.rb
|
385
432
|
- lib/flydata/fluent-plugins/mysql/context.rb
|
433
|
+
- lib/flydata/fluent-plugins/mysql/ddl_query_handler.rb
|
386
434
|
- lib/flydata/fluent-plugins/mysql/dml_record_handler.rb
|
387
435
|
- lib/flydata/fluent-plugins/out_forward_ssl.rb
|
388
436
|
- lib/flydata/fluent-plugins/preference.rb
|
@@ -428,29 +476,25 @@ files:
|
|
428
476
|
homepage: http://flydata.co/
|
429
477
|
licenses:
|
430
478
|
- All right reserved.
|
479
|
+
metadata: {}
|
431
480
|
post_install_message:
|
432
481
|
rdoc_options: []
|
433
482
|
require_paths:
|
434
483
|
- lib
|
435
484
|
required_ruby_version: !ruby/object:Gem::Requirement
|
436
|
-
none: false
|
437
485
|
requirements:
|
438
|
-
- -
|
486
|
+
- - ">="
|
439
487
|
- !ruby/object:Gem::Version
|
440
488
|
version: '0'
|
441
|
-
segments:
|
442
|
-
- 0
|
443
|
-
hash: -3606213667158968775
|
444
489
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
445
|
-
none: false
|
446
490
|
requirements:
|
447
|
-
- -
|
491
|
+
- - ">="
|
448
492
|
- !ruby/object:Gem::Version
|
449
493
|
version: '0'
|
450
494
|
requirements: []
|
451
495
|
rubyforge_project:
|
452
|
-
rubygems_version:
|
496
|
+
rubygems_version: 2.2.2
|
453
497
|
signing_key:
|
454
|
-
specification_version:
|
498
|
+
specification_version: 4
|
455
499
|
summary: FlyData CLI
|
456
500
|
test_files: []
|