macaddr 1.6.6 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/macaddr.rb +2 -5
  3. data/macaddr.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDE3OGUyZGZmNzg5MmY5ZjMxYjI5MTJmZDM1YmQwZjM2MzFjODU3MQ==
4
+ ZmNhMTdlYWU3ZGFhNmVlNDQ4Y2IzMDU2NjFhODY4YTZjNWIyMWE4ZA==
5
5
  data.tar.gz: !binary |-
6
- NWZmNDg3MmE2ZTlkNThjYjQ3ODU5ZDA5YzljM2MyNGJkM2FmN2M3Yg==
6
+ ODljYjgwOGFlOWU5Y2FiZjk4MzA4ZWUzYjhlMGI2OTU5ZGMwMDczYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGI1NWQxMmIwNDYzM2M0Yzk2ZDlmYWZjNTg0NzBlZGMzZjI1NWI2OTM0MjJi
10
- NzJkNTMzOTkyZDNiNjA1M2UyNjNhMGQ2ZDkzZTNjNTY0NGE5ZjlmNjRjMWVm
11
- MDAwN2Y3NWI0ZjRlNmJmMWY1OGY3NTEwYmNkN2EyYjQ4Yjk2Yzc=
9
+ ZWJhYTZiMjYxZTE5ZWZlNzUyOWVjZTFjZjRkMWZmNDEyODU0NDNkZTRmODY5
10
+ MDgzZDk1NTVkODIwOTE2YzllZTYxMDI2ZjQzMmU0Nzc2NDMyYzJlN2I2Mjk0
11
+ OTMyYTE4ZTljOGUxNGNhYTQyNDhkNzQwYmI5ZWIwNWYzYWMxNTg=
12
12
  data.tar.gz: !binary |-
13
- YmZlM2QzNDI2ZGUzMmVlMjI4MDQ3ZDRjODEzYjg0ZDMxNzkzNDBmOTNkYWZk
14
- ODJjNzUzOTBlZWM5YzE3ZjI4ZDhhNGZiMzZiNWYzOTA1ZWU5YTU4MDdiNDQ3
15
- NWRjODYwMzI1YWRmN2FmYTQwZjc4NGY3NWJiYWEwYmNjMTc1MmM=
13
+ NmY1NjlmYTBmYTYyMDJiYWQ0NTczMzZlZmVjNmE3ZjliZTI3YjBlNDBjNDVm
14
+ ODkyZDU4NDkwYzllMDRhMjgxMTI2MTM4YmM3Y2JmNDY0MWNkZTg1MzkzMTVi
15
+ Y2NhNWU2YTRjN2JlNGZlODE2MTNhNDNlNzdhNWNjMjI3NWU4ZmQ=
@@ -23,7 +23,7 @@ end
23
23
  require 'systemu'
24
24
 
25
25
  module Mac
26
- VERSION = '1.6.6'
26
+ VERSION = '1.6.7'
27
27
 
28
28
  def Mac.version
29
29
  ::Mac::VERSION
@@ -57,14 +57,11 @@ module Mac
57
57
 
58
58
  def address
59
59
  return @mac_address if defined? @mac_address and @mac_address
60
- re = %r/[^:\-](?:[0-9A-F][0-9A-F][:\-]){5}[0-9A-F][0-9A-F][^:\-]/io
61
60
  cmds = '/sbin/ifconfig', '/bin/ifconfig', 'ifconfig', 'ipconfig /all', 'cat /sys/class/net/*/address'
62
61
 
63
- null = test(?e, '/dev/null') ? '/dev/null' : 'NUL'
64
-
65
62
  output = nil
66
63
  cmds.each do |cmd|
67
- status, stdout, stderr = systemu(cmd) rescue next
64
+ _, stdout, _ = systemu(cmd) rescue next
68
65
  next unless stdout and stdout.size > 0
69
66
  output = stdout and break
70
67
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "macaddr"
6
- spec.version = "1.6.6"
6
+ spec.version = "1.6.7"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "macaddr"
9
9
  spec.description = "cross platform mac address determination for ruby"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macaddr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard