barruun 0.1.3 → 0.1.4

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: 7b73f5132f4f102758647778bf997f63b20fc9d9ad74e457360942ea61e295f2
4
- data.tar.gz: e19e636776ea39587f8bd3e7d9f7d7a54f6b9e0094ed24d9888bb839994a2d57
3
+ metadata.gz: 2b0b9a2fc5b72870179cb35d5c1da70d56253c8ee97df145bf85eac801635b84
4
+ data.tar.gz: 7dafcd4ecb497036a3f44d10f334f41f9a5208acb6643268b1abd49e162b412d
5
5
  SHA512:
6
- metadata.gz: a7ed19aa91be3d2ef8b234151dce95886a58363211ac4d3461ca327548cfe90ce9e2227769dd3eef874429872f07b7ea02bc2bd3f31328bd84d89b545b787707
7
- data.tar.gz: 546fbfbaf25958d53d7d8c2023d215b05440ed898b58a0eb20c720a3b2f99f1bc38299e5db32489368d290c0610d2f7ce71b7d399ffce6c68b3f071adb1be3c9
6
+ metadata.gz: 7733b651373aed0fc762023acded6e7fcb08dd520ef417798446fcb17ea85a87bcbeea2b5b4661b05382852b9758cdd0dfde42ec3dcbf47a58bc2c3fe7ef71fe
7
+ data.tar.gz: dee542b26955853f065da1977e27d6df4aa609e8f8b5d17d5829d1fdba51e0a3e7bdbbcbae15a112756afe8d773ce65cc6a2186483d03a7a25a143b8c1320f8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- barruun (0.1.3)
4
+ barruun (0.1.4)
5
5
  active_hash
6
6
  thor (~> 1.1)
7
7
 
@@ -9,11 +9,10 @@ module Barruun
9
9
 
10
10
  def initialize(file_path, config_klass = Object.const_get("#{self.class.name.gsub("Managers", "Configurations")}"))
11
11
  @file_path = file_path
12
- begin
13
- @config = config_klass.new(YAML.load_file(file_path))
14
- rescue
12
+ if !File.exists?(@file_path)
15
13
  raise self.class::ConfigFileLoadError, "Error loading config file: #{file_path}"
16
14
  end
15
+ @config = config_klass.new(YAML.load_file(file_path))
17
16
  end
18
17
 
19
18
  def call
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Barruun
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barruun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cc-kawakami