yaml_extend 0.2.4 → 0.2.5

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
- SHA256:
3
- metadata.gz: c1e9451593e33ce34c29b421877a77b8311f1b9e12ec5e32f031d191b0e8517a
4
- data.tar.gz: 50d624f0bcc5f0b859e83ce39b8752de9e0fb0a7b74d64327c0af79e008fcba4
2
+ SHA1:
3
+ metadata.gz: bf470b2008a115bd29099864f2906f56f0c2a665
4
+ data.tar.gz: 7fd428b80b59c950cfc9ea26db2db35af2653174
5
5
  SHA512:
6
- metadata.gz: 39f2e58240eda0ef6b12de0631b7d9965b1cd85c36401553dafdc90de7c2a6c57c6f982aaae30c5bf7f7da325e963c12ddcfc787de506569ae70bd8778aec4a3
7
- data.tar.gz: 7012a0c7207557756926bc7a86ed36917717cef25d9eb036633f96293b8f7c58947e7d8eeafa37731b3cd948de014180c23e278e223935d01fac77596c8c5716
6
+ metadata.gz: 2bf43ffb90add13d47f8fd37de9fee408175a3c292d8552fc050155490bb0355acaf8384818eb174a25d29d1967c311dbdc690c161b2ea337e0578342b4530ff
7
+ data.tar.gz: 583ba753e530b4dd5de049448382f6413c7928e03474d295b51a5f20093e5df316192561257bc6ade629fb2fe80fe38e9661cad1c69452b440095d018de424e4
data/README.md CHANGED
@@ -22,11 +22,20 @@ Or install it yourself as:
22
22
 
23
23
  ## Common information
24
24
 
25
- It is possible to build inheritance trees like
25
+ It is possible to build inheritance trees like:
26
26
  ```
27
- default.yml english.yml default.yml german.yml de.yml
28
- \ / \ / |
29
- uk.yml de.yml at.yml
27
+ defaults.yml
28
+ ________\_________
29
+ \ \ \
30
+ dev.yml int.yml prod.yml
31
+ ```
32
+ or like this:
33
+ ```
34
+ default.yml english.yml default.yml german.yml
35
+ \ / \ /
36
+ uk.yml de.yml
37
+ |
38
+ at.yml
30
39
  ```
31
40
 
32
41
  A file can inherit from as many as you want. Trees can be nested as deep as you want.
@@ -71,7 +80,7 @@ data:
71
80
  When you then call #ext_load_file
72
81
 
73
82
  ```ruby
74
- YAML.ext_load_file 'start.yml'
83
+ config = YAML.ext_load_file 'start.yml'
75
84
  ```
76
85
 
77
86
  the returned YAML value results in
@@ -113,14 +122,13 @@ foo: 'bar'
113
122
  ##### 1. Specify by parameter
114
123
  You can specify the key by parameter, this is the way to go if you want to use the different key only once or you use the #ext_load_file method only once in your application.
115
124
  ```ruby
116
- YAML.ext_load_file 'custom1.yml', 'inherit_from'
125
+ config = YAML.ext_load_file 'custom1.yml', 'inherit_from'
117
126
  ```
118
127
  ##### 2. Global configuration of the key
119
128
  You can specify the key by configuration globally. So you only need to set the key once and not as parameter anymore
120
129
  ```ruby
121
130
  YAML.ext_load_key = 'inherit_from'
122
- YAML.ext_load_file 'custom1.yml'
123
- YAML.ext_load_file 'custom2.yml'
131
+ config = YAML.ext_load_file 'custom1.yml'
124
132
  ```
125
133
  ##### Reset the global key
126
134
  To reset the global inheritance key, you can either set it to nil or call the #reset_load_key method.
@@ -139,7 +147,7 @@ foo: 'bar'
139
147
  ```
140
148
 
141
149
  ```ruby
142
- YAML.ext_load_file 'custom2.yml', ['options','extend_file']
150
+ config = YAML.ext_load_file 'custom2.yml', ['options','extend_file']
143
151
  ```
144
152
 
145
153
  ## Documentation
@@ -1,3 +1,3 @@
1
1
  module YamlExtend
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
data/yaml_extend.gemspec CHANGED
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'deep_merge', '~> 1.1'
33
33
 
34
34
  spec.add_development_dependency 'bundler', '>= 1.14'
35
- spec.add_development_dependency 'rake', '~> 10.0'
36
- spec.add_development_dependency 'rspec', '~> 3.0'
35
+ spec.add_development_dependency 'rake', '>= 10.0'
36
+ spec.add_development_dependency 'rspec', '>= 3.0'
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_extend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthäus Beyrle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-28 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  description:
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.7.6
112
+ rubygems_version: 2.6.14.3
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Extends YAML to support file based inheritance