network-utility 1.1.37 → 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: 806756db10bd4ab8fc9e4d26543578a0cdf40872b6eed69cfcb1f05b60902594
4
- data.tar.gz: a9fd3481c42709bbacd846e63d3ce606857afffbf86d37ed39126bdcf41bcab8
3
+ metadata.gz: 5afbdff8fac23bb46f333b5586dc89054a53074634dcc4fc23c730f9709ac835
4
+ data.tar.gz: ae014b2a0c026c19214a3c4e0c73ed2bacd5d13203bd67674b3405a2722769bb
5
5
  SHA512:
6
- metadata.gz: 6d66879ce6f7a63666c89f1865a4e0d5f54d90e55024572dfa55fd99daefd73101a84a704e34c5fe61fff96a0f40dc6aede5ab4cf00a859e6aee80741cbaf237
7
- data.tar.gz: f8401ba31b6c4c320a530045f5b52699c9f22b23668669195898032c448c27fcf5fa3b92045f96323f4dcca8bd633f4038fbf139101bc66053531d056b36ef68
6
+ metadata.gz: 75e7afcfc1ae1596b5a014e69f22cfadffb5603b1b244d9111d210e0c91d47244a3cd6b5821ea8c8dbd70225c934c186b73f3c6d7dc9806fbe27e3f87465ff69
7
+ data.tar.gz: 423ad152c8e1fc623b143930fd0181b1eb432f7c1cb2664742f609da2543dcf783f28de399974f98b1dc734bb2ddea2bfdfb40bd74c9baae1e32a47fc4a031b8
@@ -15,7 +15,7 @@ module NE5000E_20
15
15
  part.split("\n").each do|line|
16
16
  next unless line.include?('route-static')
17
17
  items = line.split(" ")
18
- 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
19
19
  static_routes << record
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module NE5000E_X16
15
15
  part.split("\n").each do|line|
16
16
  next unless line.include?('route-static')
17
17
  items = line.split(" ")
18
- 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
19
19
  static_routes << record
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module NE5000E_X16A
15
15
  part.split("\n").each do|line|
16
16
  next unless line.include?('route-static')
17
17
  items = line.split(" ")
18
- 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
19
19
  static_routes << record
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module NE8000E_X8
15
15
  part.split("\n").each do|line|
16
16
  next unless line.include?('route-static')
17
17
  items = line.split(" ")
18
- 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
19
19
  static_routes << record
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module NE8100_X8
15
15
  part.split("\n").each do|line|
16
16
  next unless line.include?('route-static')
17
17
  items = line.split(" ")
18
- 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
19
19
  static_routes << record
20
20
  end
21
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.37'
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.37
4
+ version: 1.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt