yaml_extend 1.3.1 → 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: 128a6d8e367eb8594d0b2c369cf2312821324ed9692ebacb4c39c0d4ccf127ab
4
- data.tar.gz: f1cdb90f9ce3cd2c736472c601a723f93f8f284e96e34257197e230c5be8de9a
3
+ metadata.gz: 8cac1687c14e63b23826c42d9cfbad143d1c09dc8762c8b51c89594b3fce3522
4
+ data.tar.gz: 0b4407c0c285dc6e50039e9b0d94a28fe8cc90eee519d8ed6d2b5033916d0fa2
5
5
  SHA512:
6
- metadata.gz: 18db51a9171e9f59311891a4dfca7b2a7bf9d8bb0f7575b6de3002c77670b54b5d626fb48a90d03f686a72d726ff756c53f9244221db57ef265115b9198ba577
7
- data.tar.gz: df8821b3f7b180e28ebdcddec5870b1b714de3cce8a39125401d525f65d81ce6904e8024f9e51f6d0323d9515056658fb95b04a8fcadda47b168d7bcdf689e75
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.1'.freeze
2
+ VERSION = '1.3.3'.freeze
3
3
  end
data/lib/yaml_extend.rb CHANGED
@@ -1,8 +1,8 @@
1
- require 'yaml_extend/version'
2
-
3
1
  require 'yaml'
2
+ require 'erb'
4
3
  require 'deep_merge/rails_compat'
5
4
 
5
+ require_relative 'yaml_extend/version'
6
6
  require_relative 'custom_errors/invalid_key_type_error'
7
7
 
8
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.1
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-10-17 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