bricolage 5.28.0 → 5.28.1

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: a3d6d789d6f3c437f1e3e9df962f92db5c7aac168952d633b72be38023d875c1
4
- data.tar.gz: adbca861a3b9f811a22338422167f8945ba3d3894bfde294875ccb22c38e1a80
3
+ metadata.gz: 02cd3cdb2d65b2d74f5f1c2a59afa40cae3ee0ba439f7dad10328ce2f59327be
4
+ data.tar.gz: b849c08932d338e64b6fcd815b02280ba2032488db5681ef1b9a60edb758d5a3
5
5
  SHA512:
6
- metadata.gz: 88a618757a3747efc8e846bb217c382044348b56f64e7f02c67f0e9e64c08fe56534ed4b282542a6639b07417dad40ac4c0a0afe78b14a273944c12d15ec1abf
7
- data.tar.gz: a2ee05a0200bd069ff057b98d2bac2640d2dc9f2a984f90f50f844ebab07097961877038c3a7627f8d2adf641ca5b75c24ede6c5f024e959980782e8b7ebc63e
6
+ metadata.gz: 7d1d85abad9d1a5eac78c30aa0bf8225cea5af3f8f7d2a53ae5640ef44765c023ca2dc02357d4d847be810d52be54e07742e57a1c45ee1027d7efb3a4327ea9b
7
+ data.tar.gz: 9adf944eb2605b6a3c5f2980fd04c7a9a8a0493657a644e348138f424f59f22afb549fc607c716175af10306b18ad98d38477173c7238705cd902554303caeed
data/RELEASE.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Bricolage Release Note
2
2
 
3
+ ## version 5.28.1
4
+
5
+ - [new] new environment BRICOLAGE_DISABLE_QUEUE to disable jobnet queue.
6
+ - [fix] Do not hide true ParameterError thrown by datasource.yml processing.
7
+
3
8
  ## version 5.28.0
4
9
 
5
10
  - [new] bricolage command now accepts .rb.job, .py.job, .sh.job as a script-embedded job.
@@ -4,6 +4,8 @@ require 'bricolage/exception'
4
4
 
5
5
  module Bricolage
6
6
 
7
+ class DataSourceFileNotExist < ParameterError; end
8
+
7
9
  class DataSourceFactory
8
10
  DATA_SOURCE_FILE_NAME_1 = 'datasource.yml'
9
11
  DATA_SOURCE_FILE_NAME_2 = 'database.yml'
@@ -14,7 +16,7 @@ module Bricolage
14
16
  loader.load_passwords(PASSWORD_FILE_NAME)
15
17
  begin
16
18
  return loader.load(DATA_SOURCE_FILE_NAME_1)
17
- rescue ParameterError
19
+ rescue DataSourceFileNotExist
18
20
  return loader.load(DATA_SOURCE_FILE_NAME_2)
19
21
  end
20
22
  end
@@ -38,7 +40,7 @@ module Bricolage
38
40
 
39
41
  def load(basename)
40
42
  yml_path = @context.config_pathes(basename).detect(&:exist?)
41
- raise ParameterError, "database.yml does not exist" unless yml_path
43
+ raise DataSourceFileNotExist, "database.yml does not exist" unless yml_path
42
44
  @config_dir = yml_path.parent
43
45
  DataSourceFactory.new(load_yaml(yml_path), @context, @logger)
44
46
  end
@@ -236,6 +236,9 @@ module Bricolage
236
236
  if ENV['BRICOLAGE_ENABLE_QUEUE']
237
237
  env['enable-queue'] = OptionValue.new('env BRICOLAGE_ENABLE_QUEUE', true)
238
238
  end
239
+ if ENV['BRICOLAGE_DISABLE_QUEUE']
240
+ env['enable-queue'] = OptionValue.new('env BRICOLAGE_DISABLE_QUEUE', false)
241
+ end
239
242
  if path = ENV['BRICOLAGE_QUEUE_PATH']
240
243
  env['queue-path'] = OptionValue.new('env BRICOLAGE_QUEUE_PATH', path)
241
244
  end
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.28.0'
3
+ VERSION = '5.28.1'
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.28.0
4
+ version: 5.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg