network-utility 1.1.36 → 1.1.38

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: 65716ca5467b8a54ee81c0ce88e292751add2763c7a9eae97271a3bc62bdce1f
4
- data.tar.gz: 5968c31b641681cbe0e2e6facd6b4011c5fcf5a14cf3fdd64c6eb60aab2918d1
3
+ metadata.gz: 5afbdff8fac23bb46f333b5586dc89054a53074634dcc4fc23c730f9709ac835
4
+ data.tar.gz: ae014b2a0c026c19214a3c4e0c73ed2bacd5d13203bd67674b3405a2722769bb
5
5
  SHA512:
6
- metadata.gz: 4e8408045681d38b137b8a515638e75084799fcc8c04d3c783a65c80134258d23aa7f17a542b98997323be12cfc083b0707d300fd82434f7489df01e6c4a6046
7
- data.tar.gz: 98d3d6ffad4352ad92ab1393d1d6517b58ad3b4ffcade4663562b748e2e075edfe4459b13f0263d13d45f5120c6ba790da14e8f5a50b90bd84f563694559102c
6
+ metadata.gz: 75e7afcfc1ae1596b5a014e69f22cfadffb5603b1b244d9111d210e0c91d47244a3cd6b5821ea8c8dbd70225c934c186b73f3c6d7dc9806fbe27e3f87465ff69
7
+ data.tar.gz: 423ad152c8e1fc623b143930fd0181b1eb432f7c1cb2664742f609da2543dcf783f28de399974f98b1dc734bb2ddea2bfdfb40bd74c9baae1e32a47fc4a031b8
@@ -13,8 +13,9 @@ 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
17
  items = line.split(" ")
17
- record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1] : ["static"]+items[2..-1]
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
19
20
  end
20
21
  end
@@ -13,8 +13,9 @@ 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
17
  items = line.split(" ")
17
- record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1] : ["static"]+items[2..-1]
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
19
20
  end
20
21
  end
@@ -13,8 +13,9 @@ 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
17
  items = line.split(" ")
17
- record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1] : ["static"]+items[2..-1]
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
19
20
  end
20
21
  end
@@ -13,8 +13,9 @@ 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
17
  items = line.split(" ")
17
- record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1] : ["static"]+items[2..-1]
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
19
20
  end
20
21
  end
@@ -13,8 +13,9 @@ 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
17
  items = line.split(" ")
17
- record = items[2].include?('vpn-') ? ["static:#{items[3]}"]+items[4..-1] : ["static"]+items[2..-1]
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
19
20
  end
20
21
  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.36'
25
+ VERSION = '1.1.38'
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.36
4
+ version: 1.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt