network-utility 1.1.45 → 1.1.46

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 +19 -9
  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: 3baeaea28c2d69276e32689c2c8b42b82fdd128d7c5b574132787dfbdb3e6a97
4
+ data.tar.gz: 7a6340765cc5ec20505c4cb9816eec22aa83d886554ffe0e5e11f7acc4567139
5
5
  SHA512:
6
- metadata.gz: f3b30af360ca30db2d54bc6366c54bcd1e4f8bf03d588efac3ea7b52a666d4a6c78061f7c1e92183f484628b0c895d0e94f9dd364f787caac203a54c243b2a1d
7
- data.tar.gz: eb4b1bcc955ede4825e707d951300bbb572648b31ed03723a65d12bcfe32ba0871b1e7e729fec9063ca6eb002d81a596419d22ebc05d75431df0f756437c0996
6
+ metadata.gz: cbf147b492da5298ca5e8ddf8c22d57a9a75f2164c404cf1ab1c19dd19130ce0d2adfe370fe6ab129f31a6af9c582340fbf0a9e726f2631f051c8c82c6c09bc1
7
+ data.tar.gz: 01d9f58f5c4d487dd1e086576b707693943c019f4d56d1fff4775ca2f61a0e5a70607d92f1291928cf6aabe51d2a024fc774e327a79110119d9ca4e82e48cb7d
data/document/document.rb CHANGED
@@ -71,21 +71,31 @@ 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)
74
+ parameters = {runtime: :static}.merge(option)
75
75
  if File.exist?(parameters[:config])
76
76
  paths = File.read(parameters[:config]).split("\n")
77
77
  Doc.build paths, runtime: :static, dir: :yes
78
78
  Doc.load paths
79
79
  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
80
+ if parameters[:document]
81
+ parameters[:document].each do|pathz|
82
+ path = pathz.gsub(".md",".rb")
83
+ unless File.exist?(path)
84
+ warn "Document File not exist: #{path}"
85
+ else
86
+ relative_require path
87
+ end
88
+ end
84
89
  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
90
+ if parameters[:expansion]
91
+ parameters[:expansion].each do|path|
92
+ unless File.exist?(path)
93
+ warn "Expansion File not exist: #{path}"
94
+ else
95
+ Doc.build [path], custom: :active, runtime: :static, dir: :yes
96
+ Doc.load [path]
97
+ end
98
+ end
89
99
  end
90
100
  end
91
101
 
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.46'
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.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt