bricolage 6.0.0beta6 → 6.0.0beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE.md +7 -0
- data/bricolage.gemspec +1 -1
- data/jobclass/unload.rb +1 -1
- data/lib/bricolage/configloader.rb +5 -1
- data/lib/bricolage/jobfile.rb +1 -1
- data/lib/bricolage/psqldatasource.rb +4 -0
- data/lib/bricolage/version.rb +1 -1
- data/schema/Gemfile +1 -1
- data/schema/Gemfile.lock +13 -13
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef43e23cf027382323db0fed6c6b4265571e4d1c88e44c95119fe71146394df2
|
4
|
+
data.tar.gz: 75d044569f5305a26bd17d977e18bb6ff0275e37f6c3227c0bcca5bdef0990f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69b3daa09d4bb3043e88ea4538c372ca638cdbda8a3a45e4bd3e49253e3cdaa62d089603b31de3d43bd508e9da82e68cbe3db64b3f305fa624c59a5ffd33ab30
|
7
|
+
data.tar.gz: adc15a875db0d084310b48869fa7dcd637e5f9366660f440f044a925df708d364d3e3bdc0c65726b267fdbcddf1b79c32ee59a4bb38362f00cec690dc3542b9f
|
data/RELEASE.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Bricolage Release Note
|
2
2
|
|
3
|
+
## version 6.0.0 beta 7
|
4
|
+
|
5
|
+
- [new] Add Parquet and JSON to unload formats.
|
6
|
+
- [new] Supports Ruby 3.1 and 3.2.
|
7
|
+
- [fix] Update gems for security updates.
|
8
|
+
- [fix] If a .rb.job file does not contain shebang line (#!), it wrongly fails to parse parameter block.
|
9
|
+
|
3
10
|
## version 6.0.0 beta 6
|
4
11
|
|
5
12
|
- [new] Now you can refer job file local variables from job parameters.
|
data/bricolage.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_path = 'lib'
|
18
18
|
|
19
19
|
s.required_ruby_version = '>= 2.4.0'
|
20
|
-
s.add_dependency 'pg', '~> 1.2.3'
|
20
|
+
s.add_dependency 'pg', '~> 1.2', '>= 1.2.3'
|
21
21
|
s.add_dependency 'aws-sdk-s3', '~> 1.64'
|
22
22
|
s.add_dependency 'aws-sdk-sns', '~> 1.23'
|
23
23
|
s.add_dependency 'nokogiri' # aws-sdk-core requires this
|
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 csv), 'Data file format.', default: 'tsv')
|
10
|
+
params.add EnumParam.new('format', %w(tsv csv parquet json), '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) })
|
@@ -42,7 +42,11 @@ module Bricolage
|
|
42
42
|
private
|
43
43
|
|
44
44
|
def parse_yaml(text, path)
|
45
|
-
YAML.
|
45
|
+
if Gem::Version.new(YAML::VERSION) >= Gem::Version.new("4.0.0")
|
46
|
+
YAML.load(text, aliases: true)
|
47
|
+
else
|
48
|
+
YAML.load(text)
|
49
|
+
end
|
46
50
|
rescue => err
|
47
51
|
raise ParameterError, "#{path}: config file syntax error: #{err.message}"
|
48
52
|
end
|
data/lib/bricolage/jobfile.rb
CHANGED
data/lib/bricolage/version.rb
CHANGED
data/schema/Gemfile
CHANGED
data/schema/Gemfile.lock
CHANGED
@@ -1,36 +1,36 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (6.0.
|
5
|
-
activesupport (= 6.0.
|
6
|
-
activerecord (6.0.
|
7
|
-
activemodel (= 6.0.
|
8
|
-
activesupport (= 6.0.
|
9
|
-
activesupport (6.0.
|
4
|
+
activemodel (6.0.6.1)
|
5
|
+
activesupport (= 6.0.6.1)
|
6
|
+
activerecord (6.0.6.1)
|
7
|
+
activemodel (= 6.0.6.1)
|
8
|
+
activesupport (= 6.0.6.1)
|
9
|
+
activesupport (6.0.6.1)
|
10
10
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
11
|
i18n (>= 0.7, < 2)
|
12
12
|
minitest (~> 5.1)
|
13
13
|
tzinfo (~> 1.1)
|
14
14
|
zeitwerk (~> 2.2, >= 2.2.2)
|
15
|
-
concurrent-ruby (1.
|
16
|
-
diffy (3.4.
|
17
|
-
i18n (1.
|
15
|
+
concurrent-ruby (1.2.0)
|
16
|
+
diffy (3.4.2)
|
17
|
+
i18n (1.12.0)
|
18
18
|
concurrent-ruby (~> 1.0)
|
19
|
-
minitest (5.
|
19
|
+
minitest (5.17.0)
|
20
20
|
pg (1.2.3)
|
21
21
|
ridgepole (0.9.2)
|
22
22
|
activerecord (>= 5.1, < 6.2)
|
23
23
|
diffy
|
24
24
|
thread_safe (0.3.6)
|
25
|
-
tzinfo (1.2.
|
25
|
+
tzinfo (1.2.11)
|
26
26
|
thread_safe (~> 0.1)
|
27
|
-
zeitwerk (2.
|
27
|
+
zeitwerk (2.6.6)
|
28
28
|
|
29
29
|
PLATFORMS
|
30
30
|
ruby
|
31
31
|
|
32
32
|
DEPENDENCIES
|
33
|
-
activerecord (~> 6.0.
|
33
|
+
activerecord (~> 6.0.6)
|
34
34
|
pg
|
35
35
|
ridgepole
|
36
36
|
|
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricolage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.0beta7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.2'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 1.2.3
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.2'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 1.2.3
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -225,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
231
|
- !ruby/object:Gem::Version
|
226
232
|
version: 1.3.1
|
227
233
|
requirements: []
|
228
|
-
rubygems_version: 3.2.
|
234
|
+
rubygems_version: 3.2.33
|
229
235
|
signing_key:
|
230
236
|
specification_version: 4
|
231
237
|
summary: SQL Batch Framework
|