network-utility 1.1.40 → 1.1.41

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: 48ff949c6fb1c8424e81ad2bdf4eea84dfb31b617c9e9a16d905ed38b4dbc889
4
- data.tar.gz: 563a38c7683ce603d7c87829095f39bf9117c2060c5469b023ae1d7746be9bcd
3
+ metadata.gz: c79aaf431b6b0fbd78ead56c7d918e5ff9e9d2181e775e7445691b1d43fc8eac
4
+ data.tar.gz: d03798c42ebc1169be66dc7490f4fb3f286616bc54158e68f34f9a7bc8633565
5
5
  SHA512:
6
- metadata.gz: e751d4e2ec87302ddfccd7b1fdbbf70751a1759615394ec0ced75c8e6bf4c65d7b86b432c7c454a52d2102c33b6e1ffa535f7f5329936311d4c999852572c30a
7
- data.tar.gz: b51cf7783201de896b509e85584a7310ad1d0e4a91ecad09adf1ee2241aa59ffdcc5b5001ca0430f71aec24a29f358ba0bcc895064dd43f0d35d83a3be0edea4
6
+ metadata.gz: d3f84eab160e9cf82a3d4da552e22ffd45235507bf4e745ab55c6785bad035343759cacc4cbbee0aa57f43a8d38d52c35fdb52e8e071267ad0bedeed1d81771a
7
+ data.tar.gz: e007aba82c8ea5141813da5644bb16a193b3586fa5ffd9a324226563b0201b921d6f6c24ef2e82148917649ff1fa7433a077369b79b5cda2d7a4db59d88eb4f5
@@ -13,6 +13,7 @@ module CR16010H_F
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,6 +13,7 @@ module CR16018_F
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,6 +13,7 @@ module CR19000_20
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -11,8 +11,9 @@ module CX600_X16A
11
11
  static_routes = []
12
12
  ['ip','ipv6'].each do|tag|
13
13
  (配置散列[tag] || []).each do|part|
14
- if part.include?('route-static')
14
+ if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -11,8 +11,9 @@ module CX600_X8A
11
11
  static_routes = []
12
12
  ['ip','ipv6'].each do|tag|
13
13
  (配置散列[tag] || []).each do|part|
14
- if part.include?('route-static')
14
+ if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -11,8 +11,9 @@ module MA5200G_8
11
11
  static_routes = []
12
12
  ['ip','ipv6'].each do|tag|
13
13
  (配置散列[tag] || []).map{|part|part.split("\n")}.flatten.each do|part|
14
- if part.include?('route-static')
14
+ if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -11,8 +11,9 @@ module ME60_16
11
11
  static_routes = []
12
12
  ['ip','ipv6'].each do|tag|
13
13
  (配置散列[tag] || []).each do|part|
14
- if part.include?('route-static')
14
+ if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -11,8 +11,9 @@ module ME60_X16
11
11
  static_routes = []
12
12
  ['ip','ipv6'].each do|tag|
13
13
  (配置散列[tag] || []).each do|part|
14
- if part.include?('route-static')
14
+ if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,6 +13,7 @@ module NE40E_X16
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,6 +13,7 @@ module NE40E_X16A
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -11,8 +11,9 @@ module NE40E_X8
11
11
  static_routes = []
12
12
  ['ip','ipv6'].each do|tag|
13
13
  (配置散列[tag] || []).each do|part|
14
- if part.include?('route-static')
14
+ if part.include?('route-static ')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,6 +13,7 @@ module NE40E
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,7 +13,7 @@ module NE5000E_20
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
- next unless line.include?('route-static')
16
+ next unless line.include?('route-static ')
17
17
  items = line.split(" ")
18
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
19
19
  static_routes << record
@@ -13,7 +13,7 @@ module NE5000E_X16
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
- next unless line.include?('route-static')
16
+ next unless line.include?('route-static ')
17
17
  items = line.split(" ")
18
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
19
19
  static_routes << record
@@ -13,7 +13,7 @@ module NE5000E_X16A
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
- next unless line.include?('route-static')
16
+ next unless line.include?('route-static ')
17
17
  items = line.split(" ")
18
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
19
19
  static_routes << record
@@ -13,7 +13,7 @@ module NE8000E_X8
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
- next unless line.include?('route-static')
16
+ next unless line.include?('route-static ')
17
17
  items = line.split(" ")
18
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
19
19
  static_routes << record
@@ -13,6 +13,7 @@ module NE80E
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
+ next unless line.include?('route-static ')
16
17
  items = line.split(" ")
17
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
18
19
  static_routes << record
@@ -13,7 +13,7 @@ module NE8100_X8
13
13
  (配置散列[tag] || []).each do|part|
14
14
  if part.include?('route-static')
15
15
  part.split("\n").each do|line|
16
- next unless line.include?('route-static')
16
+ next unless line.include?('route-static ')
17
17
  items = line.split(" ")
18
18
  record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1].to_a : ["static"]+items[2..-1].to_a
19
19
  static_routes << record
data/network.rb CHANGED
@@ -22,5 +22,5 @@
22
22
  ].each{|mod|require mod}
23
23
 
24
24
  module Network
25
- VERSION = '1.1.40'
25
+ VERSION = '1.1.41'
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.40
4
+ version: 1.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt