network-utility 1.1.45 → 1.1.47
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/document/document.rb +25 -13
- data/network.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 832345ce6696b01d7272a00ff93e035d235db1445375f6ddcd2adc03c10a8adf
|
|
4
|
+
data.tar.gz: a7be09138cde40936181de86bd641dbee522bf9db98a113f889271ba80b6f70f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efce947ee251994b5301c75de667742ed5bed930048ea2accdb0824a34316eb08cf6880585ab25dcbbc84411c549c01e9eb62f218e6463a98f21c82b6764529b
|
|
7
|
+
data.tar.gz: d687ab729bdf3bef457603a2ee031e4b67a27ec3157463ba1f026b654b7bffc4c1aa472f536d2ed251723331b48abc876bce782dcd9a3d6458e0b05393fd92b1
|
data/document/document.rb
CHANGED
|
@@ -71,21 +71,33 @@ module Doc
|
|
|
71
71
|
# document: [], path set of original module files
|
|
72
72
|
# expansion: [], path set of extension module files
|
|
73
73
|
}
|
|
74
|
-
parameters = {runtime: :static
|
|
75
|
-
if
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
parameters = {runtime: :static}.merge(option)
|
|
75
|
+
if parameters[:config]
|
|
76
|
+
if File.exist?(parameters[:config])
|
|
77
|
+
paths = File.read(parameters[:config]).split("\n")
|
|
78
|
+
Doc.build paths, runtime: :static, dir: :yes
|
|
79
|
+
Doc.load paths
|
|
80
|
+
end
|
|
79
81
|
end
|
|
80
|
-
if parameters[:document]
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
if parameters[:document]
|
|
83
|
+
parameters[:document].each do|pathz|
|
|
84
|
+
path = pathz.gsub(".md",".rb")
|
|
85
|
+
unless File.exist?(path)
|
|
86
|
+
warn "Document File not exist: #{path}"
|
|
87
|
+
else
|
|
88
|
+
relative_require path
|
|
89
|
+
end
|
|
90
|
+
end
|
|
84
91
|
end
|
|
85
|
-
if parameters[:expansion]
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
if parameters[:expansion]
|
|
93
|
+
parameters[:expansion].each do|path|
|
|
94
|
+
unless File.exist?(path)
|
|
95
|
+
warn "Expansion File not exist: #{path}"
|
|
96
|
+
else
|
|
97
|
+
Doc.build [path], custom: :active, runtime: :static, dir: :yes
|
|
98
|
+
Doc.load [path]
|
|
99
|
+
end
|
|
100
|
+
end
|
|
89
101
|
end
|
|
90
102
|
end
|
|
91
103
|
|
data/network.rb
CHANGED