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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d057475396d2f1e47cfccc490ec4ab07467c0056f519abd5a7c9bafdfdb63714
4
- data.tar.gz: 252a0d2c7cb00f1fee102b25eec0b0f0a52919652f2210e2a8c877ec9e532638
3
+ metadata.gz: ef43e23cf027382323db0fed6c6b4265571e4d1c88e44c95119fe71146394df2
4
+ data.tar.gz: 75d044569f5305a26bd17d977e18bb6ff0275e37f6c3227c0bcca5bdef0990f3
5
5
  SHA512:
6
- metadata.gz: 685f46050cb796689a9756387dabad8dcae318e6f7ae342f130d0b470b2375986b36aba65284d3cb516bdf9630aae8372eb47426f314dd233abea50bc087c86b
7
- data.tar.gz: b50a8d23ec9b1df0e0303b0d6dee90a1c896fabb085943557158e61504107b64fbeaadfc15b83931a56db987ad524933281403ef1f0c41f56e2a0e5b7ac8c043
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.load(text)
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
@@ -85,7 +85,7 @@ module Bricolage
85
85
  if first_line.start_with?('#!')
86
86
  yaml_lines = []
87
87
  else
88
- yaml_lines = [first_line]
88
+ yaml_lines = [first_line[1..-1]]
89
89
  end
90
90
  script.each_line do |line|
91
91
  break unless line.start_with?('#')
@@ -457,6 +457,10 @@ module Bricolage
457
457
  %q(delimiter '\t')
458
458
  when 'csv'
459
459
  %q(delimiter ',')
460
+ when 'parquet'
461
+ 'format as parquet'
462
+ when 'json'
463
+ 'format as json'
460
464
  else
461
465
  raise ParameterError, "unsupported format: #{fmt}"
462
466
  end
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '6.0.0beta6'
3
+ VERSION = '6.0.0beta7'
4
4
  end
data/schema/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'ridgepole'
4
- gem 'activerecord', '~> 6.0.0' # activerecord 6.1 did not work with check_constraint
4
+ gem 'activerecord', '~> 6.0.6' # activerecord 6.1 did not work with check_constraint
5
5
  gem 'pg'
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.3.6)
5
- activesupport (= 6.0.3.6)
6
- activerecord (6.0.3.6)
7
- activemodel (= 6.0.3.6)
8
- activesupport (= 6.0.3.6)
9
- activesupport (6.0.3.6)
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.1.8)
16
- diffy (3.4.0)
17
- i18n (1.8.10)
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.14.4)
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.9)
25
+ tzinfo (1.2.11)
26
26
  thread_safe (~> 0.1)
27
- zeitwerk (2.4.2)
27
+ zeitwerk (2.6.6)
28
28
 
29
29
  PLATFORMS
30
30
  ruby
31
31
 
32
32
  DEPENDENCIES
33
- activerecord (~> 6.0.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.0beta6
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: 2021-05-18 00:00:00.000000000 Z
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.3
234
+ rubygems_version: 3.2.33
229
235
  signing_key:
230
236
  specification_version: 4
231
237
  summary: SQL Batch Framework