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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df0999d146e785a7c0debc4cb23efe6389120a3fe39e93de690dd939881f0bc8
4
- data.tar.gz: 78caa00e3f4bcf72f4d3330df8dd52db158c12fd393695b8c16814c3c1c7d34a
3
+ metadata.gz: 8f36ed85802c3bb788659d45ef182cd3a40664d43f29b2285ca17955a525ae03
4
+ data.tar.gz: d334a1abc47232192414485fb73cf95d73a83c168c22913f7916729ac36dc887
5
5
  SHA512:
6
- metadata.gz: f02a0dbce52f18a7e4b5d2d5c13e6917a981d0dcb932f8cdf417e72205971d5e000affdda06d394973662359438e4bd5d6a2775a30a70be21346bbe4c9d361af
7
- data.tar.gz: 4a0895c01faefd1bac66e9cb913518d56fa1fadbc2a243ab12e1ea8716f23e1ba8621d895f0795f610d8cad18c6421f0aac5030357169f67c25af8a4b0a8bfac
6
+ metadata.gz: 19a1af65ec6ae2f0a58980ecf6f868d38469bc56915ec74edf39232c85a8b91fa85968bca12f9e16ae87a05df188e6fc86d9df0e79517c7655bd27898661207a
7
+ data.tar.gz: 77713b0363df711e32b8a8619d91d9c20ee40c96d27c66649a7e9ff3adc76ec4db65239b0b2cd341443ea3623f655b96583f07ba6262a132322573183f4bc960
@@ -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 data
23
+ data ? resolve_extends(data) : nil
24
24
  end
25
25
 
26
26
  # @return [String] the YAML string, with evaluated and ERB
@@ -1,3 +1,3 @@
1
1
  class ExtendedYAML
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-16 00:00:00.000000000 Z
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