config_hound 1.4.1 → 1.4.2

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: 0cfd974d966eb7d1c9f04dd8f9edc4c93687ee5b
4
- data.tar.gz: c5ac8cacee145b40f3d75646c2b76a380ca3ad05
3
+ metadata.gz: 67a3b97b5e40deb8ed9509031898e66a2de9577d
4
+ data.tar.gz: 53db1854e4cf25048107062b23718de22b15083d
5
5
  SHA512:
6
- metadata.gz: c91839e5f6a24d050d0d41779535dfce74c550e49f0b910ce5c09e257553654293040421d9b077933ce5de639b829a345e9ae6115a8ee70aad509c3a45b6f7f4
7
- data.tar.gz: 592c003b526b260403b47432f52b8128a9255d031e49a13ac832321160d1381c2b5086659495f60ea2977459a2a65a383c04e6bd3a2a87bb1d88fdab97f83fa7
6
+ metadata.gz: f9db6a68b39dda85488488ab959acd9b962ef61510d6a4e1b182e21aa16b48c30540c46ce61df4c6b80cb8a8710fff4a54c76679e3adea50d4ba03da90baf291
7
+ data.tar.gz: 5ca8f26c807be682d782c2969c174ce5ca664fafd820fe4ea348b04dac4abf50edb2e3553f415e77d8bb6846d029bf327aad08be96e1db73263728ff160c6f20
@@ -16,7 +16,7 @@ module ConfigHound
16
16
 
17
17
  def parse_yaml(raw)
18
18
  require "yaml"
19
- YAML.safe_load(raw)
19
+ YAML.safe_load(raw, [], [], true)
20
20
  end
21
21
 
22
22
  alias :parse_yml :parse_yaml
@@ -1,3 +1,3 @@
1
1
  module ConfigHound
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
3
3
  end
@@ -20,6 +20,20 @@ describe ConfigHound, "formats" do
20
20
  )
21
21
  end
22
22
 
23
+ given_resource "config-with-aliases.yml", %{
24
+ foo: &foo
25
+ bar: 1
26
+ baz:
27
+ <<: *foo
28
+ }
29
+
30
+ it "loads YAML with aliases" do
31
+ expect(load("config-with-aliases.yml")).to eq(
32
+ "foo" => { "bar" => 1 },
33
+ "baz" => { "bar" => 1 }
34
+ )
35
+ end
36
+
23
37
  given_resource "config.json", %{
24
38
  {
25
39
  "foo": 1,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_hound
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-15 00:00:00.000000000 Z
11
+ date: 2017-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dig_rb