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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3521ed653597acc21b56291da2d6d9da902ec64bc2d3f1d23cd01115e55ee5b
4
- data.tar.gz: e8b491f5b356dfaee5415d07528f01bd8fbe754871826e0b7cba47c434a85c6a
3
+ metadata.gz: 8cac1687c14e63b23826c42d9cfbad143d1c09dc8762c8b51c89594b3fce3522
4
+ data.tar.gz: 0b4407c0c285dc6e50039e9b0d94a28fe8cc90eee519d8ed6d2b5033916d0fa2
5
5
  SHA512:
6
- metadata.gz: 86dd20e904e8dcbdb5f6a5250da9b39f39aef36cabef1cfdebc8efbc1f8926ff059586d6478d24d783ca0fc8c258af8098eed765d362934fe3e68e0d9b008cb3
7
- data.tar.gz: 1a1c25d6699a920ae2d834fd2d87fda9bf4bd1e6d6736057ca80237f4aa74b9a1f8621a8ae23e9461b3e2cd857dc6ff2db46b12db604e9eca4d28bd6ba6a29ab
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
- $ bundle install
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
- $ gem install yaml_extend
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
@@ -1,5 +1,5 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
3
 
4
4
  #
5
5
  # run default task to see tasks to build and publish gem
data/bin/console CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "yaml_extend"
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 "pry"
10
+ # require 'pry'
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start(__FILE__)
data/bin/yaml_extend CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'yaml_extend'
3
+ require_relative '../lib/yaml_extend'
4
4
 
5
5
  arg = ARGV[0]
6
6
 
@@ -1,3 +1,3 @@
1
1
  module YamlExtend
2
- VERSION = '1.3.2'.freeze
2
+ VERSION = '1.3.3'.freeze
3
3
  end
data/lib/yaml_extend.rb CHANGED
@@ -1,9 +1,8 @@
1
- require 'yaml_extend/version'
2
-
3
1
  require 'yaml'
4
2
  require 'erb'
5
3
  require 'deep_merge/rails_compat'
6
4
 
5
+ require_relative 'yaml_extend/version'
7
6
  require_relative 'custom_errors/invalid_key_type_error'
8
7
 
9
8
  #
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.2
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: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge