yaml_extend 0.0.7 → 0.0.8
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/yaml_extend/version.rb +1 -1
- data/lib/yaml_extend.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f1b37a713b8201d50d938d94fe832073c038293
|
4
|
+
data.tar.gz: fc65e098feecb493ef9dd3e19bf2813f20109b0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 457adaa6c6599faa2e2b8c64523ec9d7689019fdb652447ea54353e13d5cede17f57b926694ca3ae742146d6d43cf0a4858af8fecb11898f88d3a76de6ed03d3
|
7
|
+
data.tar.gz: bb878d0906d4233e8091e9f9da89fb7f2310f022534f8c6992559db1846f3f02acbb091c3d1ff1dd14001114ec239f66899fc6374d0030c4a3eb053b5bbd234a
|
data/lib/yaml_extend/version.rb
CHANGED
data/lib/yaml_extend.rb
CHANGED
@@ -17,9 +17,11 @@ module YAML
|
|
17
17
|
#
|
18
18
|
# @param yaml_path [String] the path to the yaml file to be loaded
|
19
19
|
# @param inheritance_key [String] the key used in the yaml file to extend from another YAML file
|
20
|
-
# @param extend_existing_arrays [Boolean]
|
20
|
+
# @param extend_existing_arrays [Boolean] extend existing arrays instead of replacing them
|
21
21
|
# @param config [Hash] a hash to be merged into the result, usually only recursivly called by the method itself
|
22
22
|
#
|
23
|
+
# @return [Hash] the resulting yaml config
|
24
|
+
#
|
23
25
|
def self.ext_load_file(yaml_path, inheritance_key='extends', extend_existing_arrays=true, config = {})
|
24
26
|
total_config ||= {}
|
25
27
|
yaml_path = YAML.make_absolute_path yaml_path
|