linux-ip-addr 0.0.2 → 0.0.3

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: 025c233110ff3cb81d15e49c41deeadc37f43aef
4
- data.tar.gz: 5f9574af347c0215a8d7dca5ac94e9a5db64739d
3
+ metadata.gz: 269094dea99ea7f151ed6f8d0de3e222aabbdd42
4
+ data.tar.gz: c4bb5532b51d8d7bbfbfe16a386102916ec796f7
5
5
  SHA512:
6
- metadata.gz: 79bca66d01ab74ac31a727168a3bba82015dbb772182ac5d89ed16d1c03470469b8a11018f4f0eaf161f1b1d750e11dbff3a8af8f6199dd1203fd3a2a332b583
7
- data.tar.gz: 12932781e116dee601bc42e85dcf1a21d160a98e5fdf2b1c2081e856b50bcefbd94cadf167ed78a8b12edd5088676cd0dea394555fc051dec148cd8bf10065d8
6
+ metadata.gz: 68bcb338912391e45f130fa04388b82867157859ab50c55474f421c71e4c04543fd7625c973a3d29032a9db7f8bc4fecaae7ac04e9998ac4f14b7f7fead983b6
7
+ data.tar.gz: e4275d7d58b3e83a102422034accc08e787bd5bf779e1491296c28ce4ead43727979434483a9e3e8396970f92cc17d17a7a8eb04fb32bce3a230dc484a603c4b
data/lib/linux/ip/addr.rb CHANGED
@@ -46,7 +46,7 @@ module Linux
46
46
  ip_addr.interfaces << iface
47
47
  elsif iface
48
48
  if line =~ /^\s*link\/ether\s+([a-f0-9:]+)\s+.*$/
49
- iface.mac_address($1)
49
+ iface.mac_address = $1
50
50
  elsif line =~ /^\s*inet[6]*\s+([0-9a-f\:\.\/]+)\s+.*$/
51
51
  iface.add_ip($1)
52
52
  end
@@ -1,7 +1,7 @@
1
1
  module Linux
2
2
  module Ip
3
3
  module Addr
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -5,19 +5,6 @@ module Linux
5
5
  module Ip
6
6
  module Route
7
7
 
8
- class Interface
9
- attr_accessor :mac_address
10
- attr_reader :ips, :name
11
- def initialize(name)
12
- @name = name
13
- @ips = []
14
- end
15
- def add_ip(ip)
16
- @ips << ip
17
- end
18
- end
19
-
20
-
21
8
  class IpRoute
22
9
  attr_reader :interfaces, :routes
23
10
  def initialize
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linux-ip-addr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meno Abels
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ipaddress