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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 070d60a6d5c053d57f09ac3b78adbadc0624a221
4
- data.tar.gz: ad225310f64d0f800a4d31134098a901a440942b
3
+ metadata.gz: cb0a154bcbcb74fe6f9a31c2fd0a1421ef2efa06
4
+ data.tar.gz: 1f2e031848a95f68234958b80e68fbcfff1e8db6
5
5
  SHA512:
6
- metadata.gz: bfc70674eb8c9a0208e0c1232cceb98d551089fa1c5184e796a23c6042d4df2ca7a87fb188a48ff8fa888184b0f61699df53839238c7b073fa17e5d271ef88b9
7
- data.tar.gz: 582379f1ee6357a8336c1b0c1c19c7a4554bf865a0c376471d84025de3a1c01efd711a860e779e954baff02e419839ad2c8b751fc28dc73926b2ea97a44a940d
6
+ metadata.gz: 1975b6a4eeb3860c01b75b000fd907d4011144b12b70f87c24059091dc866959c9991ecedf79dfb36846a4bc74caf1ccfbb7b79ee353f5e39f7c6c1df591bf26
7
+ data.tar.gz: e51646544a3c2c937ffd9dbbe50955ffc47568813d9dce2bd5576b5439c967646e2010bb472724369949772e2f6b76d48e59c1605bf09c58178d33f09feba4b2
@@ -1,3 +1,3 @@
1
1
  class YamlMaster
2
- VERSION = "1.0.0.beta"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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.beta
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-09-09 00:00:00.000000000 Z
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: 1.3.1
107
+ version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.6.12
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