config_layers 0.1.0 → 0.1.1

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: c3f2439ed377f78c7280ee7eb27b2d6b077688a5
4
- data.tar.gz: e4ddb0c54bdbfd14a249e209dabfba7aaa87cdab
3
+ metadata.gz: ba7a432fca427d87b73206a452f4cad5e646de09
4
+ data.tar.gz: 86ec483949c57c2c33a5cd5f13c6ddf3904e7f91
5
5
  SHA512:
6
- metadata.gz: 82c7d7d882993984abe7d452df09753e87d9f63b6d68a1f12351658ea25f774e32b44fe15edf9503710d907a2d39da6d79df1da62425ee6bdac6722e8640af34
7
- data.tar.gz: 88de4f1b5081874d8da6dbb19627f5343952b059fc5c732d3283bac3eed3a8fee1e03bfc228de641a2212cd37ce66b6ab1264d6309eaf30778b1aea2756eef4d
6
+ metadata.gz: 788f88c57145a06f88637d15bc71bb8f21a507921233c9ce52c2a1e6abf84956ed50c2e956311cba38a52a001301a609302df0c8c30cded68376d83547548f02
7
+ data.tar.gz: 196d113fb3f9b70e2a9023be54e1c6ecce4a7077fc5564a66b30dc87fe7cf98c172e3248c0fc3663e75bdd9122b71f3a6b4592bace9039377eeff5cc5b8dd50b
@@ -6,6 +6,7 @@ require 'config_layers/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "config_layers"
8
8
  spec.version = ConfigLayers::VERSION
9
+ spec.date = ConfigLayers::DATE
9
10
  spec.authors = ["Christophe Larsonneur"]
10
11
  spec.email = ["clarsonneur@gmail.com"]
11
12
 
@@ -1,4 +1,5 @@
1
1
  # Config Layers
2
2
  module ConfigLayers
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
+ DATE = '2015-04-21'
4
5
  end
@@ -285,7 +285,11 @@ module PRC
285
285
 
286
286
  fail 'Config filename not set.' if @filename.nil?
287
287
 
288
- @data = YAML.load_file(File.expand_path(@filename))
288
+ data = YAML.load_file(File.expand_path(@filename))
289
+
290
+ return false unless data
291
+
292
+ @data = data
289
293
 
290
294
  if @data.key?(:file_version)
291
295
  @version = @data[:file_version]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_layers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christophe Larsonneur
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: subhash