bricolage 5.9.6 → 5.9.7

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: 9905f46f89b86160ac6075a3c3f1f17c1d2df765
4
- data.tar.gz: 0f0cbb87d71873ee799edba4201a5d49f34d9e82
3
+ metadata.gz: c19aa7e310f6f40ab0b9ce66b1782a81e82f5001
4
+ data.tar.gz: d5c3b3c822fb8f987ca49ef6f2b0e7091c194064
5
5
  SHA512:
6
- metadata.gz: 755cc0f36123b24a461b3dc7b553604817c588fd4d25f1584eafbfcdd075a2185a1ed3e3020587315f7b5ad8b443746e171f09356ef1cfe316af080f731f6871
7
- data.tar.gz: 41dce6356cb69bb7ca8d8c19da87d4c9278aadb754bf82a2445bad3c23f24a403478a67db5b2fcb38ead654841fc9ed3830a1bcfe8eface885d904ce966284eb
6
+ metadata.gz: 28d0ffd735a81cbc9d48ea66f468567d7825809bf89c229c0310f7540feb6084157832d000fb0562ebe5d4ee3ec240156d2b3bedad7386904af3d1c7f6668ed6
7
+ data.tar.gz: 19cae6930b0717ac2efed5bc37644ed29b5c9b019abd7a04586b254457eb12d1b7267ca3f0b3887f6ac0f36dc90ffaf3b3ee370d054aad62272a41e097defa44
@@ -12,6 +12,7 @@ JobClass.define('my-migrate') {
12
12
  params.add DestFileParam.new('s3-file', 'PATH', 'Temporary S3 file path.')
13
13
  params.add DataSourceParam.new('s3', 's3-ds', 'Temporary file storage.')
14
14
  params.add OptionalBoolParam.new('override', 'If true, overwrite s3 target file. Otherwise causes error.')
15
+ params.add OptionalBoolParam.new('remove-tmp', 'Removes temporary local files after S3-PUT is succeeded.')
15
16
 
16
17
  # Load
17
18
  params.add DestTableParam.new(optional: false)
@@ -60,6 +61,11 @@ JobClass.define('my-migrate') {
60
61
  script.task(params['s3-ds']) {|task|
61
62
  task.put params['tmp-file'], params['s3-file'], check_args: false
62
63
  }
64
+ if params['remove-tmp']
65
+ script.task(params.file_ds) {|task|
66
+ task.remove params['tmp-file']
67
+ }
68
+ end
63
69
  end
64
70
 
65
71
  # Load
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.9.6'
3
+ VERSION = '5.9.7'
4
4
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- bricolage (5.9.2)
4
+ bricolage (5.9.6)
5
5
  aws-sdk (< 2)
6
6
  mysql2
7
7
  pg
@@ -10,9 +10,9 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- aws-sdk (1.64.0)
14
- aws-sdk-v1 (= 1.64.0)
15
- aws-sdk-v1 (1.64.0)
13
+ aws-sdk (1.66.0)
14
+ aws-sdk-v1 (= 1.66.0)
15
+ aws-sdk-v1 (1.66.0)
16
16
  json (~> 1.4)
17
17
  nokogiri (>= 1.4.4)
18
18
  fluent-logger (0.4.10)
@@ -20,25 +20,26 @@ GEM
20
20
  yajl-ruby (~> 1.0)
21
21
  hirb (0.7.3)
22
22
  httpclient (2.5.3.3)
23
- json (1.8.2)
23
+ json (1.8.3)
24
24
  mini_portile (0.6.2)
25
- msgpack (0.5.12)
26
- mysql2 (0.3.18)
25
+ msgpack (0.5.11)
26
+ mysql2 (0.4.0)
27
27
  nokogiri (1.6.6.2)
28
28
  mini_portile (~> 0.6.0)
29
29
  parallel (0.6.5)
30
- pg (0.18.2)
31
- rubyzip (0.9.9)
32
- td (0.11.10)
30
+ pg (0.18.3)
31
+ rubyzip (1.1.7)
32
+ td (0.12.0)
33
33
  hirb (>= 0.4.5)
34
- msgpack (>= 0.4.4, < 0.6.0, != 0.5.3, != 0.5.2, != 0.5.1, != 0.5.0)
34
+ msgpack (>= 0.4.4, < 0.5.12, != 0.5.3, != 0.5.2, != 0.5.1, != 0.5.0)
35
35
  parallel (~> 0.6.1)
36
- rubyzip (~> 0.9.9)
37
- td-client (~> 0.8.70)
36
+ rubyzip (~> 1.1.7)
37
+ td-client (~> 0.8.75)
38
38
  td-logger (~> 0.3.21)
39
39
  yajl-ruby (~> 1.1)
40
- td-client (0.8.70)
41
- httpclient (>= 2.4.0, < 2.6.0)
40
+ zip-zip (~> 0.3)
41
+ td-client (0.8.75)
42
+ httpclient (>= 2.5.2, < 2.6.0)
42
43
  json (>= 1.7.6)
43
44
  msgpack (>= 0.4.4, < 0.6.0, != 0.5.3, != 0.5.2, != 0.5.1, != 0.5.0)
44
45
  td-logger (0.3.24)
@@ -46,6 +47,8 @@ GEM
46
47
  msgpack (>= 0.4.4, < 0.6.0, != 0.5.3, != 0.5.2, != 0.5.1, != 0.5.0)
47
48
  td-client (~> 0.8.66)
48
49
  yajl-ruby (1.2.1)
50
+ zip-zip (0.3)
51
+ rubyzip (>= 1.0.0)
49
52
 
50
53
  PLATFORMS
51
54
  ruby
@@ -54,4 +57,4 @@ DEPENDENCIES
54
57
  bricolage!
55
58
 
56
59
  BUNDLED WITH
57
- 1.10.2
60
+ 1.10.6
@@ -1,27 +1,27 @@
1
1
  sql: &redshift_parameters
2
2
  type: psql
3
- host: <%= ENV['RSPROXYHOST'] ? 'localhost' : (ENV['RSHOST'] || 'cookpad-dwh-301.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com') %>
3
+ host: <%= ENV['RSPROXYHOST'] ? 'localhost' : (ENV['RSHOST'] || 'cookpad-dwh-401.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com') %>
4
4
  port: <%= ENV['RSPROXYPORT'] || ENV['RSPORT'] || 5439 %>
5
5
  database: production
6
- username: tabemirudev
6
+ username: <%= ENV['RSUSER'] || 'tabemirudev' %>
7
7
  pgpass: <%= user_home_relative_path '.pgpass' %>
8
8
  encoding: utf8
9
9
 
10
- sql_dev:
11
- <<: *redshift_parameters
12
-
13
- sql_prod:
14
- <<: *redshift_parameters
15
- username: tabemiru_batch
16
-
17
- sql_app:
18
- type: psql
19
- host: localhost #cookpad-dwh-301.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com
20
- port: 5445
21
- database: production
22
- username: tabemiru_batch
23
- pgpass: <%= user_home_relative_path '.pgpass' %>
24
- encoding: utf8
10
+ #sql_dev:
11
+ # <<: *redshift_parameters
12
+ #
13
+ #sql_prod:
14
+ # <<: *redshift_parameters
15
+ # username: tabemiru_batch
16
+
17
+ #sql_app:
18
+ # type: psql
19
+ # host: localhost #cookpad-dwh-401.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com
20
+ # port: 5445
21
+ # database: production
22
+ # username: tabemiru_batch
23
+ # pgpass: <%= user_home_relative_path '.pgpass' %>
24
+ # encoding: utf8
25
25
 
26
26
  sql_app2:
27
27
  type: psql
@@ -53,8 +53,10 @@ s3:
53
53
 
54
54
  mysql:
55
55
  type: mysql
56
- host: db-main-slave-free-001
56
+ #host: db-main-slave-free-001
57
+ host: 127.0.0.1
58
+ port: 9011
57
59
  database: main
58
60
  username: work_readonly
59
- password: <%= password 'mysql_local_work_readonly' %>
61
+ password: <%= password 'mysql_shared_work_readonly' %>
60
62
  encoding: utf8
@@ -1,2 +1,4 @@
1
1
  td_tabemiru: "121/c1376bb5e3972fc4a4efc942c1df100f7bc156e0"
2
+ mysql_shared_work_readonly: "s0uL/M@9r1"
3
+ mysql_shared_ckpd_readonly: "no3lnar;"
2
4
  mysql_local_work_readonly: "ckpdtest"
@@ -0,0 +1,3 @@
1
+ data_dir: /tmp/bricolagedev
2
+ test_schema: aamine
3
+ test_group: aamine
@@ -0,0 +1,32 @@
1
+ class: my-migrate
2
+ src-ds: mysql
3
+ src-tables:
4
+ search_backends: main.search_backends
5
+ tmp-file: $data_dir/search_backends.json.gz
6
+
7
+ s3-ds: s3
8
+ s3-file: /search_backends/search_backends.json.gz
9
+ override: true
10
+ remove-tmp: true
11
+
12
+ dest-ds: sql
13
+ dest-table: $test_schema.search_backends
14
+ table-def: search_backends.ct
15
+ options:
16
+ statupdate: false
17
+ compupdate: false
18
+ #maxerror: 10
19
+ ## string
20
+ #acceptinvchars: " "
21
+ emptyasnull: true
22
+ #trimblanks: true
23
+ #truncatecolumns: true
24
+ ## datetime
25
+ #acceptanydate: true
26
+ #dateformat: "auto"
27
+ #timeformat: "auto"
28
+ vacuum-sort: true
29
+ analyze: true
30
+ grant:
31
+ privilege: select
32
+ to: "$test_group"
@@ -0,0 +1,13 @@
1
+ --dest-table: search_backends
2
+
3
+ create table $dest_table
4
+ ( id int
5
+ , role varchar(10)
6
+ , group_id smallint
7
+ , index_type varchar(32)
8
+ , config_key varchar(32)
9
+ , updated_at timestamp
10
+ )
11
+ distkey (id)
12
+ sortkey (id)
13
+ ;
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.6
4
+ version: 5.9.7
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-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -164,6 +164,7 @@ files:
164
164
  - test/home/Gemfile.lock
165
165
  - test/home/config/development/database.yml
166
166
  - test/home/config/development/password.yml
167
+ - test/home/config/development/variable.yml
167
168
  - test/home/data/20141002-1355_00.txt
168
169
  - test/home/data/20141002-1355_01.txt
169
170
  - test/home/data/20141002-1355_02.txt
@@ -172,8 +173,10 @@ files:
172
173
  - test/home/subsys/d.ct
173
174
  - test/home/subsys/load_test.ct
174
175
  - test/home/subsys/load_test.job
176
+ - test/home/subsys/migrate.job
175
177
  - test/home/subsys/raw-vacuum.sql.job
176
178
  - test/home/subsys/rebuild.sql.job
179
+ - test/home/subsys/search_backends.ct
177
180
  - test/home/subsys/separated.job
178
181
  - test/home/subsys/separated.sql
179
182
  - test/home/subsys/unified.jobnet
@@ -203,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
206
  version: '0'
204
207
  requirements: []
205
208
  rubyforge_project:
206
- rubygems_version: 2.4.5
209
+ rubygems_version: 2.4.5.1
207
210
  signing_key:
208
211
  specification_version: 4
209
212
  summary: SQL batch framework