yaml_extend 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yaml_extend.rb +4 -3
- data/lib/yaml_extend/version.rb +1 -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: ce603e58038175382ccec231f1e2fdda65e9a781
|
4
|
+
data.tar.gz: d2d668f53dd1a597f212d976c1a3f38bb531c95a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb36e38c9650ce52ba240d9c634aeb4dd663e8c13a9e66a409b1c8fe5171aedd8d2ab2399897f8faf1ceb09ba872a346081280bfc69d6f88aff51da4917c5698
|
7
|
+
data.tar.gz: a063559361a024a8eb5bd6abc6d52f290127859031cdb118968557386456d675de696bf1b6708868652f160cfdf90510a122d0e7cce8cbdc04da071fb685d1b7
|
data/lib/yaml_extend.rb
CHANGED
@@ -7,17 +7,18 @@ require 'yaml'
|
|
7
7
|
require 'deep_merge/rails_compat'
|
8
8
|
|
9
9
|
#
|
10
|
-
# Extending the YAML library to allow to inherit from another YAML
|
10
|
+
# Extending the YAML library to allow to inherit from another YAML file(s)
|
11
11
|
#
|
12
12
|
|
13
13
|
module YAML
|
14
14
|
#
|
15
15
|
# Extended variant of the #load_file method by providing the
|
16
|
-
# ability to inherit from other YAML
|
16
|
+
# ability to inherit from other YAML file(s)
|
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
|
20
|
+
# @param extend_existing_arrays [Boolean] Extend existing arrays instead of replacing them
|
21
|
+
# @param config [Hash] a hash to be merged into the result, usually only recursivly called by the method itself
|
21
22
|
#
|
22
23
|
def self.ext_load_file(yaml_path, inheritance_key='extends', extend_existing_arrays=true, config = {})
|
23
24
|
total_config ||= {}
|
data/lib/yaml_extend/version.rb
CHANGED