extended_yaml 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extended_yaml.rb +2 -2
- data/lib/extended_yaml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f36ed85802c3bb788659d45ef182cd3a40664d43f29b2285ca17955a525ae03
|
4
|
+
data.tar.gz: d334a1abc47232192414485fb73cf95d73a83c168c22913f7916729ac36dc887
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19a1af65ec6ae2f0a58980ecf6f868d38469bc56915ec74edf39232c85a8b91fa85968bca12f9e16ae87a05df188e6fc86d9df0e79517c7655bd27898661207a
|
7
|
+
data.tar.gz: 77713b0363df711e32b8a8619d91d9c20ee40c96d27c66649a7e9ff3adc76ec4db65239b0b2cd341443ea3623f655b96583f07ba6262a132322573183f4bc960
|
data/lib/extended_yaml.rb
CHANGED
@@ -17,10 +17,10 @@ class ExtendedYAML
|
|
17
17
|
@file, @key = file, key
|
18
18
|
end
|
19
19
|
|
20
|
-
# @return [Hash, Array] the parsed YAML
|
20
|
+
# @return [Hash, Array, nil] the parsed YAML
|
21
21
|
def result
|
22
22
|
data = ::YAML.load evaluate
|
23
|
-
resolve_extends
|
23
|
+
data ? resolve_extends(data) : nil
|
24
24
|
end
|
25
25
|
|
26
26
|
# @return [String] the YAML string, with evaluated and ERB
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extended_yaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Load YAML files that deep merge other YAML files
|
14
14
|
email: db@dannyben.com
|