bricolage 5.12.2 → 5.12.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: f57ff4a77ff05d8dbb1cc8a03fb9020ed562335e
4
- data.tar.gz: 99d6f93e864332b4973e2e324005a7de94037077
3
+ metadata.gz: 247e0b7b78e35324997d2ae53ddb4b346817c6f5
4
+ data.tar.gz: 3d3e8a97e0802a507fa71c6117d5626854cc77ff
5
5
  SHA512:
6
- metadata.gz: c3c9a5849fc136edc766c972e83049759df124cdd55da9bbcf035b5ce0aa68293438796395fed7ebd6e5061942de46447ebacca99d889cc79a5c4e7e8e3bc5d9
7
- data.tar.gz: 3c791a1fedafb290306516c202516a3b817379e0652e8894cf621de87c1af746ecd9d6d2e4569ae6b663a606d5f82a9d1a5375d15194cd21ddca8f11d7393098
6
+ metadata.gz: 2aecb3e9be927e1914ad12ea86b438c6ba2e5d876368e4ea0befdaf69f640be5e92e298b117554b1681250d9dc1fae38c66fa6282cfd9756dbb4760368bc0b6b
7
+ data.tar.gz: 510d226a01d49707bed15859bf6d1593efe6a3b4058089e4ba693824b6bef3410852f0bcabd7a162657c463b1293da92a9185c128c2f802ef8fee0832b6f6fa9
@@ -7,6 +7,7 @@ JobClass.define('my-migrate') {
7
7
  params.add DataSourceParam.new('mysql', 'src-ds', 'Source data source.')
8
8
  params.add DestFileParam.new('tmp-file', 'PATH', 'Temporary local file path.')
9
9
  params.add OptionalBoolParam.new('sqldump', 'If true, use sqldump command to dump, only on available.', default: true)
10
+ params.add SQLFileParam.new(optional: true)
10
11
 
11
12
  # Put
12
13
  params.add DestFileParam.new('s3-file', 'PATH', 'Temporary S3 file path.')
@@ -99,6 +100,7 @@ JobClass.define('my-migrate') {
99
100
  }
100
101
 
101
102
  def sql_statement(params)
103
+ return params['sql-file'] if params['sql-file']
102
104
  srcs = params['src-tables']
103
105
  raise ParameterError, "src-tables must be singleton when no sql-file is given" unless srcs.size == 1
104
106
  src_table_var = srcs.keys.first
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.12.2'
3
+ VERSION = '5.12.3'
4
4
  end
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- bricolage (5.12.2)
4
+ bricolage (5.12.3)
5
5
  aws-sdk (< 2)
6
6
  mysql2
7
7
  pg
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.12.2
4
+ version: 5.12.3
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-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg