extended_yaml 0.1.1 → 0.2.0

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: b0a13910aac060ea32e2ff09ffbcc33ef5e772e69699c6d0073715ebcb5f1f78
4
- data.tar.gz: 6cf463213f5d101227b0c837dd7317b24619d20b2e9fd22188d96c84b0167c75
3
+ metadata.gz: df0999d146e785a7c0debc4cb23efe6389120a3fe39e93de690dd939881f0bc8
4
+ data.tar.gz: 78caa00e3f4bcf72f4d3330df8dd52db158c12fd393695b8c16814c3c1c7d34a
5
5
  SHA512:
6
- metadata.gz: 290431c92d5fd8fd2daa5995fcbfd41a7f78c4a43a7585dd372c9e0bd00464da65503af27929fcdd0b4b28ee3eea2d70579a77084e06511109f9567bcddebf1f
7
- data.tar.gz: 4d175288fabf5f65755f1df99a3f758cd3ff283d283d7be5bf9ac289dc490191a8996bcfb5d258efa6c62d52af495f563366e74d2b5c3895dcff344d41d397f1
6
+ metadata.gz: f02a0dbce52f18a7e4b5d2d5c13e6917a981d0dcb932f8cdf417e72205971d5e000affdda06d394973662359438e4bd5d6a2775a30a70be21346bbe4c9d361af
7
+ data.tar.gz: 4a0895c01faefd1bac66e9cb913518d56fa1fadbc2a243ab12e1ea8716f23e1ba8621d895f0795f610d8cad18c6421f0aac5030357169f67c25af8a4b0a8bfac
data/README.md CHANGED
@@ -46,14 +46,14 @@ settings:
46
46
  host: example.com
47
47
  ```
48
48
 
49
- We can now load the extended YAML file likw this:
49
+ We can now load the extended YAML file like this:
50
50
 
51
51
  ```ruby
52
52
  # Load an extended YAML
53
53
  require 'extended_yaml'
54
54
 
55
55
  p ExtendedYAML.load 'examples/simple.yml'
56
- #=> {"settings"=>{"host"=>"example.com", "port"=>80}}
56
+ #=> {"settings"=>{"host"=>"localhost", "port"=>80}}
57
57
  ```
58
58
 
59
59
  Notes
@@ -78,4 +78,4 @@ See the [examples/master.yml](examples/master.yml) file for additional
78
78
  information.
79
79
 
80
80
 
81
- [1]: https://github.com/magynhard/yaml_extend
81
+ [1]: https://github.com/magynhard/yaml_extend
@@ -47,7 +47,7 @@ private
47
47
  extra_files = expand_file_list extra_files
48
48
 
49
49
  extra_files.each do |path|
50
- data.deep_merge! self.class.new(path).result
50
+ data = self.class.new(path, key: key).result.deep_merge data
51
51
  end
52
52
 
53
53
  data
@@ -1,3 +1,3 @@
1
1
  class ExtendedYAML
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
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.1.1
4
+ version: 0.2.0
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: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2020-01-16 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