daddy 0.2.9 → 0.2.10
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 +4 -4
- data/lib/daddy/utils/config.rb +5 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6e47a734958080769243fa6f7568874d703eee1
|
|
4
|
+
data.tar.gz: 65a8f0194bcca0a76756e36b50470b7cd758960e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8811f04d3abb88552002b02f6e26e5de09ed3ef914fbe7be0b60ceaad4feeb96709139727aa8750ea48b68249bdeddfcc0eea9a97447f61ec97080828c784411
|
|
7
|
+
data.tar.gz: 5c8b22bfebe3dbcafbb583408582729219870bcd03473d074102963655c2b2084b0afa1e66523f84732c274f42e14d8b80abb9c09ee510178a4de57bc5886d12
|
data/lib/daddy/utils/config.rb
CHANGED
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
module Daddy
|
|
4
4
|
module Utils
|
|
5
5
|
|
|
6
|
-
class Config
|
|
6
|
+
class Config
|
|
7
7
|
|
|
8
8
|
def initialize(yaml_path_or_hash = nil)
|
|
9
9
|
if yaml_path_or_hash.is_a?(Hash)
|
|
10
|
-
@hash =
|
|
10
|
+
@hash = yaml_path_or_hash
|
|
11
|
+
elsif yaml_path_or_hash and File.exist?(yaml_path_or_hash)
|
|
12
|
+
@hash = YAML.load_file(yaml_path_or_hash)
|
|
11
13
|
else
|
|
12
|
-
|
|
13
|
-
@hash = YAML.load_file(yaml_path_or_hash)
|
|
14
|
-
else
|
|
15
|
-
@hash = {}
|
|
16
|
-
end
|
|
14
|
+
@hash = {}
|
|
17
15
|
end
|
|
18
16
|
end
|
|
19
17
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daddy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ichy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capybara
|