network-utility 1.1.20 → 1.1.21

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/config.md +10 -5
  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: b538c5ec0718383f63b551a75e27dc5a2e1eaeb0c4bcc8d2460c00d56164b7f7
4
- data.tar.gz: 87e6c1fc317e5a1bfab996d9e2852807ea63c4d594aef5c3bb7a1bee0b977c2f
3
+ metadata.gz: 6802dc6cb3ab965917663a8730ccfd56e57a5e2c8ab809a9651ed255d7e75280
4
+ data.tar.gz: 06bffb5246cf3c31ff04837cc666cf697adb40d2edbdc18a52b8c10894b4ab7b
5
5
  SHA512:
6
- metadata.gz: e9e7f79d65bea3ad3c0359f49a6cd8b51ca12632b37d7f6d2e59b08e509eee17716aeb15b567584e59ba877ee6905e642b4c43de5f24f82a7debd107bd947b04
7
- data.tar.gz: 0ac1a44c2528cc92938deb2ba21db204bb8eda70901f83ce24a5af3dcb8362290012a71c98b6eb17353782b7096edc8f5d44b18c649f1ed0d4ba9dc6c1e6e0be
6
+ metadata.gz: f90fd1eec9102bf1041cea9c286445a16f64dad8c017c129adff4b09b18e56021c96107725e9d29716d4504cf78a6e4ac4ee65d5bcbffd1262e005da37fdbd20
7
+ data.tar.gz: 811aaa29c5612c1fd3bce165a4cb19d2a9b060ac4209d2ac31afc73c7c30d146f3615eccf392107868cdd8291de95d4c615bf16b79bc7bfa2f230fecfc5fc1a9
data/document/config.md CHANGED
@@ -686,7 +686,8 @@ module M6000
686
686
  def connect preline, postline
687
687
  connect = ' '
688
688
  connect = '' if preline.include?('ip-host')
689
- connect = '' if /[\d+|\.|\-|\_]$/.match(postline)
689
+ connect = '' if /[\d+|\.|\-|\_]$/.match(preline)
690
+ connect = '' if /^[\d+|\.|\-|\_]/.match(postline)
690
691
  return connect
691
692
  end
692
693
 
@@ -745,7 +746,8 @@ module M6000_8
745
746
  def connect preline, postline
746
747
  connect = ' '
747
748
  connect = '' if preline.include?('ip-host')
748
- connect = '' if /[\d+|\.|\-|\_]$/.match(postline)
749
+ connect = '' if /[\d+|\.|\-|\_]$/.match(preline)
750
+ connect = '' if /^[\d+|\.|\-|\_]/.match(postline)
749
751
  return connect
750
752
  end
751
753
 
@@ -803,7 +805,8 @@ module M6000_8E
803
805
  def connect preline, postline
804
806
  connect = ' '
805
807
  connect = '' if preline.include?('ip-host')
806
- connect = '' if /[\d+|\.|\-|\_]$/.match(postline)
808
+ connect = '' if /[\d+|\.|\-|\_]$/.match(preline)
809
+ connect = '' if /^[\d+|\.|\-|\_]/.match(postline)
807
810
  return connect
808
811
  end
809
812
 
@@ -862,7 +865,8 @@ module M6000_16E
862
865
  def connect preline, postline
863
866
  connect = ' '
864
867
  connect = '' if preline.include?('ip-host')
865
- connect = '' if /[\d+|\.|\-|\_]$/.match(postline)
868
+ connect = '' if /[\d+|\.|\-|\_]$/.match(preline)
869
+ connect = '' if /^[\d+|\.|\-|\_]/.match(postline)
866
870
  return connect
867
871
  end
868
872
 
@@ -920,7 +924,8 @@ module M6000_18S
920
924
  def connect preline, postline
921
925
  connect = ' '
922
926
  connect = '' if preline.include?('ip-host')
923
- connect = '' if /[\d+|\.|\-|\_]$/.match(postline)
927
+ connect = '' if /[\d+|\.|\-|\_]$/.match(preline)
928
+ connect = '' if /^[\d+|\.|\-|\_]/.match(postline)
924
929
  return connect
925
930
  end
926
931
 
data/network.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  ].each{|mod|require mod}
19
19
 
20
20
  module Network
21
- VERSION = '1.1.20'
21
+ VERSION = '1.1.21'
22
22
  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.20
4
+ version: 1.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt