linux-ip-addr 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 78928113363b17568489686985c1ca74fcb7a30f
4
- data.tar.gz: 16a4ef57052b82c8151b7b137f45e02c50bb0fd3
3
+ metadata.gz: 1c03c32da3c0b4a82328f9bdadc4da7adc3b285a
4
+ data.tar.gz: f612a97925c22679d2dd489fedf4fa3a40b2fb02
5
5
  SHA512:
6
- metadata.gz: 2161d99141a93a1b76d4de7dbea92b9ecd88e8396f52a95883c1bb4d51d7d2345fd3b7cdd4ec7f495e837a1d62194b8715532c3d898088573cb098c1473faa21
7
- data.tar.gz: f028a11d558d99f74902015fd9c189949e36e9a9675981c4b78fc9284a3db97f67374ae128bd9185ed659aadaba500c5ba87b95249baafd775421ca5c386076e
6
+ metadata.gz: 36e47776ae966d17479688661a8f4fcf9d02cbe7977fb523742f86d30df2a13259d2c5e757ef541809860e24ad7d775ac2a576de1113327a380562c71d8c3f59
7
+ data.tar.gz: 08f4404429f46fea45b9213092daa39e298d93bc11cad606e293919a0d0dc18285696d84fe6d34a658b5b0ee9b59963aeae330ca82abeee816493c98610b0f33
@@ -42,7 +42,7 @@ module Linux
42
42
  lines.each do |line|
43
43
  line = line.strip.chomp
44
44
  if line =~ /^\d+:\s+(\S+):\s+(.*)$/
45
- iface = Interface.new($1)
45
+ iface = Interface.new($1.split('@')[0])
46
46
  ip_addr.interfaces << iface
47
47
  elsif iface
48
48
  if line =~ /^\s*link\/ether\s+([a-f0-9:]+)\s+.*$/
@@ -1,7 +1,7 @@
1
1
  module Linux
2
2
  module Ip
3
3
  module Addr
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux-ip-addr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meno Abels