macaddr-steakknife 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 890f0a3e388843c737f822965f48050fa402616e
4
- data.tar.gz: 7c09951010eb863022305b80c45a063e0509137d
3
+ metadata.gz: afaccb364887b2c6d698da894708584a7ce28bc6
4
+ data.tar.gz: e5166ed7ff227a37078a7e76330688d5ba552c27
5
5
  SHA512:
6
- metadata.gz: 8c32818ecac8fae55ac908bcf37a7d22d96a5c7e16780e045e0d43a815359c48b4005ebf0af96eac9c96f360a1a315f7717a77d6f6e1b36afef26b30e86c2f31
7
- data.tar.gz: 7fb572c02cdb14106ea210db640e6bfca0a7a31197bebb0aadcc6dae901fbc1f3695ce29c2a11ac8c802f8651f66fef0d1f2562477cc9661b25494235ad051f9
6
+ metadata.gz: 3c890cdf2541f413e94e114d03882991e1f9a2ef8fd705af8670fc7ab7705ec82c77a9ea143c0310fc4061ffbb9f5d575e95e75161cb7be56b62a916b10c199f
7
+ data.tar.gz: d9588c2d0acf362cc6352e98a8d9d7439f4759740ef622c3f2389e91c0139720fe75fe70384a874cec0a500db4d1a9be80a2cf6e90a80661c2bbce6e1231559e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,3 +1,3 @@
1
1
  module MacAddr
2
- VERSION = "1.8.4".freeze
2
+ VERSION = "1.8.5".freeze
3
3
  end
data/lib/macaddr.rb CHANGED
@@ -34,7 +34,10 @@ module Mac
34
34
  # @return [Array<Ifaddr>] Return all interface Ifaddrs
35
35
  def ifaddrs
36
36
  return [] if !Socket.respond_to?(:getifaddrs) || iface_packet_family.nil?
37
- Socket.getifaddrs.select { |iface| iface.addr && iface.addr.pfamily == iface_packet_family }
37
+ Socket.getifaddrs.select do |iface|
38
+ next unless iface.addr && iface.addr.respond_to(:pfamily)
39
+ iface.addr.pfamily == iface_packet_family
40
+ end
38
41
  end
39
42
 
40
43
  # @return [Hash<String,[String,nil]>]
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macaddr-steakknife
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
metadata.gz.sig CHANGED
Binary file