network-utility 1.1.47 → 1.1.49

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 832345ce6696b01d7272a00ff93e035d235db1445375f6ddcd2adc03c10a8adf
4
- data.tar.gz: a7be09138cde40936181de86bd641dbee522bf9db98a113f889271ba80b6f70f
3
+ metadata.gz: 87a2c40dc55ff364724dc90384cd06e9123a7f05297d8f0cbb24bb16527f1f47
4
+ data.tar.gz: 31fd42d93460454b47f2d19cb17994b70df4c321adb5e52ba139bcc944860fd5
5
5
  SHA512:
6
- metadata.gz: efce947ee251994b5301c75de667742ed5bed930048ea2accdb0824a34316eb08cf6880585ab25dcbbc84411c549c01e9eb62f218e6463a98f21c82b6764529b
7
- data.tar.gz: d687ab729bdf3bef457603a2ee031e4b67a27ec3157463ba1f026b654b7bffc4c1aa472f536d2ed251723331b48abc876bce782dcd9a3d6458e0b05393fd92b1
6
+ metadata.gz: 96c015a31778be4bb777de5a280e5594049d982687fa7c41059f3cc87ee4a04f3cc305fcb98f7a1f503409292e2247fb3d64d061a55b4fa7f1d1f601ada78c0c
7
+ data.tar.gz: cb2c2145341cfca5cf15ad4b492b16aa9c09e883efc85e7e752019a38c4126235198966b3700b37d028575fa1c52ceee07e96f0776cde3b089ba26e4aefc9300
data/document/document.rb CHANGED
@@ -85,7 +85,7 @@ module Doc
85
85
  unless File.exist?(path)
86
86
  warn "Document File not exist: #{path}"
87
87
  else
88
- relative_require path
88
+ load path
89
89
  end
90
90
  end
91
91
  end
data/network.rb CHANGED
@@ -22,5 +22,5 @@
22
22
  ].each{|mod|require mod}
23
23
 
24
24
  module Network
25
- VERSION = '1.1.47'
25
+ VERSION = '1.1.48'
26
26
  end
@@ -294,6 +294,10 @@ module IP
294
294
  end
295
295
 
296
296
  def range addr
297
+ if addr.include?('-')
298
+ sddr, eddr = addr.split('-')
299
+ return [range(sddr).uniq, range(eddr).uniq].flatten
300
+ end
297
301
  if addr.include?('.')
298
302
  gateway, netmask = IP.v4(addr)
299
303
  elsif addr.include?(':')
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.47
4
+ version: 1.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt