fedux_org-stdlib 0.6.16 → 0.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2c3b71a8e3e8b1117a160973a006e0728c42e9f
4
- data.tar.gz: 8cca9504a18e135aa08ea7dcadaaaeb8952b3d47
3
+ metadata.gz: e490470f63a363e30265d95d5beb320df9d63a18
4
+ data.tar.gz: abe1d42fd7033d76efd9c5ca565b4a80d2d754f5
5
5
  SHA512:
6
- metadata.gz: d96ccc915c05da077b091874b30445c56770f51c2d36c45760ee979f6cf3ce90308ae6e2c7d8df2b8d4f7f7fa2a18122c559ebe125715c36e0c0a75d74e9b9f0
7
- data.tar.gz: f154e84f76ac77cdc29488488a5ade945746e87afb22df76e6863ce4b67cb3eeedd6c72fcf7f8533e37c7424260423dfc4dfa14a6f33b0ebb0b6a5740e8d62f8
6
+ metadata.gz: c3f7d7415193ff2506e08752f87da72e3f1a806dbe6a1b00dbff7a617b4184c5f7dec8502516b5e88f3e2eca906b64ea3949543ff5ed25d709612914b79a5d53
7
+ data.tar.gz: 9370cc1fdb4aaf831051da0596d28e0407be64ed88645609d23b6001a646a599b482d3ca40b823c5a7aef5a94093eaa1f5bffe6f6c44782e44782627d5349206
@@ -199,7 +199,9 @@ module FeduxOrgStdlib
199
199
  fail Exceptions::ConfigFileNotReadable, JSON.dump(message: e.message, file: file)
200
200
  end
201
201
 
202
- if yaml.respond_to? :[] and !yaml.kind_of? Array
202
+ if yaml.blank?
203
+ @__config = {}
204
+ elsif yaml.respond_to? :[] and !yaml.kind_of? Array
203
205
  yaml = yaml.deep_symbolize_keys
204
206
 
205
207
  yaml_with_known_options = yaml.deep_symbolize_keys.slice(*self.class._known_options)
@@ -209,7 +211,7 @@ module FeduxOrgStdlib
209
211
 
210
212
  @__config = Hash(yaml_with_known_options)
211
213
  else
212
- logger.warn "There seems to be a problem transforming config file \"#{file}\" to a hash using an empty config."
214
+ logger.warn "There seems to be a problem transforming config file \"#{file}\" to a hash, therefor I will use an empty config object."
213
215
  @__config = {}
214
216
  end
215
217
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.6.16'
4
+ VERSION = '0.6.17'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.16
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport