Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dyn-yml +24 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: de8974d835f1c28fe519e9dcad144c6df472418b1722e64c1170024a297463fb
4
- data.tar.gz: 729c42dcf5a03ba6b23230547b48be9a184861fabb0b16445aafde9a2677e7ec
3
+ metadata.gz: 7fb3f2c7f43257295393916babc73a24a01b5be83f2497be40f4d6516fc0a8e3
4
+ data.tar.gz: 8a3d7d4ea1676d9192213b5062a7a25b80c8063c236e10d15378276bf5388ac8
5
5
SHA512:
6
- metadata.gz: 89fa832cd2e117b83373e5b2b40c18cd106034a7235cceceaa3f6c33ac417419814338ca7e8a66b94bfacda69b696a2fd4621cce847008559bd7cdb4614c57a5
7
- data.tar.gz: 1ee53e1c3a5e452c2131591309c6cf2260f2474d8a679ee174b91c2dc957f30bc1c9433972f9ff7ed68e7d98fe6006af4acd1638adc1b7edb0d5aab33ca5e493
6
+ metadata.gz: 925f6d28081d121501344010bdcda7bbe71fbff2d412ed42673952aae9ef0a91bd0f539323316cf324b5f7e30464e71c879bd5f6939070c4290f75ff94b21b59
7
+ data.tar.gz: a5754bd8233d1b94ad5073bf1c69e28d62f7de77176a44b0c3353ac579d68a807762ac4437866b0fef71fef0cb66c73401a0a49c81e10d03336f3701042d5e20
data/bin/dyn-yml CHANGED
@@ -101,11 +101,33 @@ doc += "_dyn.yml" unless doc =~ /_dyn.yml#x2F;
101
101
require 'yaml'
102
102
require 'fileutils'
103
103
104
- cfg_yml=YAML::load_file(doc)
105
-
106
104
doc =~ /^(.*)_dyn\.yml#x2F;
107
105
docname=$1
108
106
107
+ cfg_lines=File.readlines(doc)
108
+ i=0
109
+ i += 1 if cfg_lines[i][0,3] == "---"
110
+
111
+ if cfg_lines[i][0,9] == "dyntask: "
112
+ ## regular _dyn.yml file
113
+ cfg_yml=YAML::load(cfg_lines.join("\n"))
114
+ else
115
+ cfg_txt = cfg_lines[0..i].join("\n")
116
+ cfg_lines[(i+1)..-1].each do |line|
117
+ if line[0,2] == " "
118
+ cfg_txt << line
119
+ else
120
+ tn,td=line.split(":")
121
+ cfg_txt << tn.strip << ": |\n"
122
+ cfg_txt << " " << td.strip << "\n"
123
+ end
124
+ end
125
+ puts "ici\n"
126
+ puts cfg_txt
127
+ cfg_yml=YAML::load(cfg_txt.strip)
128
+ end
129
+
130
+
109
131
unless cfg_yml["dyntask"]
110
132
#attempt to know if format is the simplified one for workflow
111
133
ks=cfg_yml.keys
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: dyndoc-ruby
3
3
version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
platform: ruby
6
6
authors:
7
7
- RCqls