yaml_extend 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/Rakefile +2 -2
- data/bin/console +4 -4
- data/bin/yaml_extend +1 -1
- data/lib/yaml_extend/version.rb +1 -1
- data/lib/yaml_extend.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cac1687c14e63b23826c42d9cfbad143d1c09dc8762c8b51c89594b3fce3522
|
4
|
+
data.tar.gz: 0b4407c0c285dc6e50039e9b0d94a28fe8cc90eee519d8ed6d2b5033916d0fa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c999a919e51339cf69d66352771540b922f35df93ae2b0e876b51efe5c585f247fc07bae527ae208b1baf5a83dbb7dfb30268298d002470e7405d6084fb30263
|
7
|
+
data.tar.gz: 9c64f6781a7622a2edb186f9f0736dfd4698c916562e8e274b2dca12ae00a7b3ad169c34b3adc3cc47a9416d2b3be2c34601a308d4561ad968ca41a180216e83
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ If you are just doing administration without knowing ruby, you can also just use
|
|
15
15
|
* [Common information](#common-information)
|
16
16
|
* [Installation](#installation)
|
17
17
|
* [Usage](#usage)
|
18
|
-
* [Command line](#command-line)
|
18
|
+
* [Command line](#command-line-usage)
|
19
19
|
* [Documentation](#documentation)
|
20
20
|
* [Contributing](#contributing)
|
21
21
|
|
@@ -63,12 +63,12 @@ gem 'yaml_extend'
|
|
63
63
|
|
64
64
|
And then execute:
|
65
65
|
|
66
|
-
|
66
|
+
bundle install
|
67
67
|
|
68
68
|
### Command line
|
69
69
|
If you just want to use the command line then run
|
70
70
|
|
71
|
-
|
71
|
+
gem install yaml_extend
|
72
72
|
|
73
73
|
|
74
74
|
|
@@ -90,7 +90,9 @@ Given the following both files are defined:
|
|
90
90
|
extends: 'super.yml'
|
91
91
|
data:
|
92
92
|
name: 'Mr. Superman'
|
93
|
-
age: 134
|
93
|
+
age: 134
|
94
|
+
# using ERB templating with ruby code
|
95
|
+
foo: '<%= 'bar' %>'
|
94
96
|
favorites:
|
95
97
|
- 'Raspberrys'
|
96
98
|
```
|
@@ -117,6 +119,7 @@ the returned YAML value results in
|
|
117
119
|
data:
|
118
120
|
name: 'Mr. Superman'
|
119
121
|
age: 134
|
122
|
+
foo: 'bar'
|
120
123
|
power: 2000
|
121
124
|
favorites:
|
122
125
|
- 'Bananas'
|
@@ -180,7 +183,7 @@ config = YAML.ext_load_file 'custom2.yml', ['options','extend_file']
|
|
180
183
|
|
181
184
|
|
182
185
|
|
183
|
-
<a name="command-line"></a>
|
186
|
+
<a name="command-line-usage"></a>
|
184
187
|
## Command line
|
185
188
|
|
186
189
|
`yaml_extend` is also available on the command line after installation.
|
@@ -198,6 +201,7 @@ Usually you might want to put the result into resulting YAML file. So just use t
|
|
198
201
|
yaml_extend path/to/my/yaml_file.yml > combined_yaml.yml
|
199
202
|
```
|
200
203
|
|
204
|
+
Default options are used, custom options are not yet supported as parameters.
|
201
205
|
|
202
206
|
|
203
207
|
<a name="documentation"></a>
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
|
3
|
+
require 'bundler/setup'
|
4
|
+
require_relative '../lib/yaml_extend'
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
8
8
|
|
9
9
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require
|
10
|
+
# require 'pry'
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'irb'
|
14
14
|
IRB.start(__FILE__)
|
data/bin/yaml_extend
CHANGED
data/lib/yaml_extend/version.rb
CHANGED
data/lib/yaml_extend.rb
CHANGED
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: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthäus Beyrle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deep_merge
|