bricolage 5.9.4 → 5.9.5

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: f6178538ee6f9522da94f6ec5273f58d3f1d24c8
4
- data.tar.gz: c9399075400ce46842b58b10a4761692a970c22d
3
+ metadata.gz: d298c8e43119cf5f27d6df68c346a9eb812a06dd
4
+ data.tar.gz: ac037a2c8679c0d4fc067c62aa3b521a998b2f7d
5
5
  SHA512:
6
- metadata.gz: 6843c00f3ce9ebd77541208d856a150860103ef40aae4cb8af225cd04a031f35af3798b6fd1352f29dbeac1d75c2c264114732e65338ff2019af964e66e2a5a0
7
- data.tar.gz: f3039246c29a45a74db335f50a857adfeaf94e155c81288248c9d5fd937d81e264d130fc567b4cae67895bc73c5b639574b4e7e3d9fc6d7576090b3f68b6f424
6
+ metadata.gz: e7fa32d78ace8ead9816bcccb39d3c804189209ced4f925a32ad462426a2baddaa03b3bbedb7689e66ab0fa8fcc72106cc89146f9202da16856593a97e12c658
7
+ data.tar.gz: 65304d83ab743db4ea90eb30625bee6ee8813c5748eaa158fa26d7a813cd5ee49ba6a4d6d08fa3ffe4edc29d17f56c23e241f6a35d2895182665bf8d26a90f23
data/jobclass/load.rb CHANGED
@@ -6,7 +6,7 @@ JobClass.define('load') {
6
6
  params.add SrcFileParam.new
7
7
  params.add DataSourceParam.new('sql', 'dest-ds', 'Target data source.')
8
8
  params.add DestTableParam.new(optional: false)
9
- params.add EnumParam.new('format', %w(tsv json), 'Data file format.', default: 'tsv')
9
+ params.add EnumParam.new('format', %w(tsv csv json), 'Data file format.', default: 'tsv')
10
10
  params.add StringParam.new('jsonpath', 'PATH', 'jsonpath to specify columns of json format records', optional: true)
11
11
  params.add KeyValuePairsParam.new('options', 'OPTIONS', 'Loader options.',
12
12
  optional: true, default: PSQLLoadOptions.new,
data/jobclass/unload.rb CHANGED
@@ -7,7 +7,7 @@ JobClass.define('unload') {
7
7
  params.add SrcTableParam.new(optional: false)
8
8
  params.add DataSourceParam.new('s3', 'dest-ds', 'Target data source (s3).')
9
9
  params.add DestFileParam.new
10
- params.add EnumParam.new('format', %w(tsv), 'Data file format.', default: 'tsv')
10
+ params.add EnumParam.new('format', %w(tsv csv), 'Data file format.', default: 'tsv')
11
11
  params.add KeyValuePairsParam.new('options', 'OPTIONS', 'Loader options.',
12
12
  optional: true, default: PSQLLoadOptions.new,
13
13
  value_handler: lambda {|value, ctx, vars| PSQLLoadOptions.parse(value) })
@@ -323,6 +323,8 @@ module Bricolage
323
323
  case fmt
324
324
  when 'tsv'
325
325
  %q(delimiter '\t')
326
+ when 'csv'
327
+ %q(delimiter ',')
326
328
  when 'json'
327
329
  jsonpath ? "json \'#{src_ds.url(jsonpath)}\'" : %q(json 'auto')
328
330
  else
@@ -352,6 +354,8 @@ module Bricolage
352
354
  case format
353
355
  when 'tsv'
354
356
  %q(delimiter '\t')
357
+ when 'csv'
358
+ %q(delimiter ',')
355
359
  else
356
360
  raise ParameterError, "unsupported format: #{fmt}"
357
361
  end
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.9.4'
3
+ VERSION = '5.9.5'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricolage
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.9.4
4
+ version: 5.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg