yaml_master 1.0.0.beta → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yaml_master/version.rb +1 -1
- data/lib/yaml_master/yaml_tree_builder.rb +6 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb0a154bcbcb74fe6f9a31c2fd0a1421ef2efa06
|
4
|
+
data.tar.gz: 1f2e031848a95f68234958b80e68fbcfff1e8db6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1975b6a4eeb3860c01b75b000fd907d4011144b12b70f87c24059091dc866959c9991ecedf79dfb36846a4bc74caf1ccfbb7b79ee353f5e39f7c6c1df591bf26
|
7
|
+
data.tar.gz: e51646544a3c2c937ffd9dbbe50955ffc47568813d9dce2bd5576b5439c967646e2010bb472724369949772e2f6b76d48e59c1605bf09c58178d33f09feba4b2
|
data/lib/yaml_master/version.rb
CHANGED
@@ -23,6 +23,12 @@ class YamlMaster::YAMLTreeBuilder < YAML::TreeBuilder
|
|
23
23
|
s = build_scalar_node(@master_path.to_s)
|
24
24
|
@last.children << s
|
25
25
|
s
|
26
|
+
when "!fullpath"
|
27
|
+
path = Pathname(value)
|
28
|
+
path = path.absolute? ? path : @master_path.dirname.join(path)
|
29
|
+
s = build_scalar_node(path.to_s)
|
30
|
+
@last.children << s
|
31
|
+
s
|
26
32
|
when "!user_home"
|
27
33
|
s = build_scalar_node(ENV["HOME"])
|
28
34
|
@last.children << s
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml_master
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,12 +102,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- - "
|
105
|
+
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.6.
|
110
|
+
rubygems_version: 2.6.13
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Helper of YAML file generation from single master YAML file
|