louis 1.1.1 → 1.2.0
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 +4 -4
- data/lib/louis/helpers.rb +2 -1
- data/lib/louis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e63a6a01e4438f4f93e5ca288174a6f8c2d8f0e7
|
4
|
+
data.tar.gz: 73473793ebbc1f4914a8e5a5637ae48a24bf1456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2baf696d04cf36e9f8e18d8f70c1dee8cca256b2b90f30cee1b76ddd178be07ecb53dbf10f366dc364b2ae5639847a8471d0eba13c0b1ccbd56a582b92b2a4ad
|
7
|
+
data.tar.gz: cb5bd832dbedba6e5946471793689dda3e2002ebe722a735097749edc2809ee5d261d2e886580c26a5d8afc4ce8ab550f1d66f680ab96c146d328052d2cdf68e
|
data/lib/louis/helpers.rb
CHANGED
@@ -26,7 +26,8 @@ module Louis
|
|
26
26
|
#
|
27
27
|
# @param [String] mac
|
28
28
|
def mac_to_num(mac)
|
29
|
-
clean_mac(mac).ljust(12, '0').to_i(16)
|
29
|
+
val = clean_mac(mac).ljust(12, '0').to_i(16)
|
30
|
+
(0xfdffffffffff & val) # Ignore the locally administered address bit
|
30
31
|
end
|
31
32
|
|
32
33
|
# Handle parsing a line from the raw OUI file into it's associated lookup
|
data/lib/louis/version.rb
CHANGED