dyndoc-ruby 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dyndoc-convert.rb +16 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15ad72bbdd8efdd12d294aed2f6c69451b464f11
|
|
4
|
+
data.tar.gz: 6a5d10de569333b68187162a390d032d5a7f01e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0ea96d8151951563bba60a93a866ddecf5a8a019c2916681be4064a0342573b8eedab01dc351283da06691602e99367c3489d6639671370452bb5f916488f34
|
|
7
|
+
data.tar.gz: 62b3fbc0143a32dabdf0b454da851044e6b1ccc01c477817919d74487fb927c01169e7366d92e23ff762175e2f528d181c1e913007dbb21eff0389d26f03e65f
|
data/lib/dyndoc-convert.rb
CHANGED
|
@@ -54,19 +54,25 @@ module Dyndoc
|
|
|
54
54
|
## Dyn post
|
|
55
55
|
dyn_post_code=File.read(dyn_file[0...i]+"_post.dyn") if File.exist? dyn_file[0...i]+"_post.dyn"
|
|
56
56
|
|
|
57
|
-
if File.exist? dyn_file[0...i]+"
|
|
57
|
+
if File.exist? dyn_file[0...i]+".dyn_cfg"
|
|
58
58
|
require 'yaml'
|
|
59
|
-
cfg=YAML::load_file(dyn_file[0...i]+"
|
|
60
|
-
dyn_root= cfg["root"] || File.expand_path("..",dyn_file)
|
|
61
|
-
|
|
62
|
-
cfg_tmp=File.join(dyn_root,cfg["layout"])
|
|
63
|
-
dyn_layout=File.read(cfg_tmp) if !dyn_layout and File.exist? cfg_tmp
|
|
59
|
+
cfg=YAML::load_file(dyn_file[0...i]+".dyn_cfg")
|
|
64
60
|
|
|
65
|
-
|
|
66
|
-
dyn_pre_code=File.read(cfg_tmp) unless dyn_pre_code and File.exist? cfg_tmp
|
|
61
|
+
dyn_root= cfg["root"] || File.expand_path("..",dyn_file)
|
|
67
62
|
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
if cfg["layout"]
|
|
64
|
+
cfg_tmp=File.join(dyn_root,cfg["layout"])
|
|
65
|
+
dyn_layout=File.read(cfg_tmp) if !dyn_layout and File.exist? cfg_tmp
|
|
66
|
+
end
|
|
67
|
+
if cfg["pre"]
|
|
68
|
+
cfg_tmp=File.join(dyn_root,cfg["pre"])
|
|
69
|
+
dyn_pre_code=File.read(cfg_tmp) unless dyn_pre_code and File.exist? cfg_tmp
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if cfg["post"]
|
|
73
|
+
cfg_tmp=File.join(dyn_root,cfg["post"])
|
|
74
|
+
dyn_post_code=File.read(cfg_tmp) unless dyn_post_code and File.exist? cfg_tmp
|
|
75
|
+
end
|
|
70
76
|
|
|
71
77
|
dyn_libs=File.read(cfg["libs"]).strip if File.exist? cfg["libs"]
|
|
72
78
|
|