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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06e80438ebf3e398c8fca2a77a6e5beb850819e3
4
- data.tar.gz: a68503b87fa97e1c5ad07ecb35d30c6028ed7619
3
+ metadata.gz: e63a6a01e4438f4f93e5ca288174a6f8c2d8f0e7
4
+ data.tar.gz: 73473793ebbc1f4914a8e5a5637ae48a24bf1456
5
5
  SHA512:
6
- metadata.gz: 8867fdfb74f44633410af3b7f218a1ebc648b3b3ea9690f7dbaead0d9b6442aca1a2363d27875026bf8a0d875aedd04537c3e5b28a79dd3bc134378e378f9849
7
- data.tar.gz: 08287e90042ba8b294fa085fb246341c97a733056d94269e5ae56032a9e9549de843f60d7082afa7231049faaea2d0b44b35055a7a7a163f09bc8acd5bb15307
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
@@ -1,3 +1,3 @@
1
1
  module Louis
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: louis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stelfox