embulk-plugin-input-sfdc-event-log-files 0.0.2 → 0.0.3

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: 43908e845d2399bc99212944f707c16ce7f51f35
4
- data.tar.gz: 55f7b6ec6f99b81b247d238998ef1696703f1d1c
3
+ metadata.gz: 184f6efcc9eea847d8a7e3cf727e29f7cc6aa78a
4
+ data.tar.gz: 656f73d9bca6192070839d6ec55aee04f64e2b97
5
5
  SHA512:
6
- metadata.gz: 4ab6af2160bd43ac2bb3899ed193b8bf2db797865cd4598952a474a2081dcb039d1c8e68f1dbbca08270b6b97f359e07a012abbeb4813744123bd3635f1c70f4
7
- data.tar.gz: 634f1435c512457e1a8721498d5425430f225381cc3731bf00ad02f042668343b11a003b279012c6a68a8d86dad04e5011374e37da796732d2916a9317df8da4
6
+ metadata.gz: 06174c525e488afbb73f27f589f1df4798d21c3f84a088a4b4e80b84d204c614cd7e1aa501411f450e732c2333e628f359fdd4e88edc53e16281f845405c6448
7
+ data.tar.gz: 8ec5eb00b1a775626d793f63b8dc07bbbe024d00f3cabb2b8fa19bc30bc64c7ff0733574caeedc0be652b54fe7970df1bc44723c4c25f616086173e7a6605d1e
@@ -20,6 +20,8 @@ module Embulk
20
20
  'last_log_date' => config.param('last_log_date', :string, default: '0001-01-01T00:00:00Z'),
21
21
  'max_retry_times' => config.param('max_retry_times', :integer, default: 2),
22
22
  }
23
+ idx = -1
24
+ schema = config.param('schema', :array).map { |c| idx += 1; Column.new(idx, c['name'], c['type'].to_sym) }
23
25
  threads = config.param('threads', :integer, default: 2)
24
26
  task['client'] = client = HTTPClient.new
25
27
 
@@ -27,7 +29,7 @@ module Embulk
27
29
  oauth(task)
28
30
  task['records'] = query(task)
29
31
 
30
- reports = yield(task, [], threads)
32
+ reports = yield(task, schema, threads)
31
33
 
32
34
  last_log_date_report = reports.max_by { |report|
33
35
  report['last_log_date']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-plugin-input-sfdc-event-log-files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Nakamura