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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/document/document.rb +25 -13
  3. data/network.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7a7fec20b0792aa93546f71745f320ece4a5e5fb9a1cc80cf86b9756998da9f
4
- data.tar.gz: 51acf48cddc7461e9e7c3010c3b345766d69ffc68ca30ab1900330c537d5f6e1
3
+ metadata.gz: 832345ce6696b01d7272a00ff93e035d235db1445375f6ddcd2adc03c10a8adf
4
+ data.tar.gz: a7be09138cde40936181de86bd641dbee522bf9db98a113f889271ba80b6f70f
5
5
  SHA512:
6
- metadata.gz: f3b30af360ca30db2d54bc6366c54bcd1e4f8bf03d588efac3ea7b52a666d4a6c78061f7c1e92183f484628b0c895d0e94f9dd364f787caac203a54c243b2a1d
7
- data.tar.gz: eb4b1bcc955ede4825e707d951300bbb572648b31ed03723a65d12bcfe32ba0871b1e7e729fec9063ca6eb002d81a596419d22ebc05d75431df0f756437c0996
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, config: 'document.txt'}.merge(option)
75
- if File.exist?(parameters[:config])
76
- paths = File.read(parameters[:config]).split("\n")
77
- Doc.build paths, runtime: :static, dir: :yes
78
- Doc.load paths
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] && File.exist?(parameters[:document])
81
- paths = parameters[:document]
82
- Doc.build paths, runtime: :static, dir: :yes
83
- Doc.load paths
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] && File.exist?(parameters[:expansion])
86
- paths = parameters[:expansion]
87
- Doc.build paths, custom: :active, runtime: :static, dir: :yes
88
- Doc.load paths
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
@@ -22,5 +22,5 @@
22
22
  ].each{|mod|require mod}
23
23
 
24
24
  module Network
25
- VERSION = '1.1.45'
25
+ VERSION = '1.1.47'
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network-utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.45
4
+ version: 1.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt