louis 1.1.0 → 1.1.1
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/README.md +0 -1
- data/Rakefile +11 -0
- data/data/processed_data.json +1 -0
- data/lib/louis/helpers.rb +50 -0
- data/lib/louis/version.rb +1 -1
- data/lib/louis.rb +7 -47
- data/louis.gemspec +4 -1
- data/spec/louis_spec.rb +6 -2
- metadata +3 -2
- data/data/mac_oui_manuf.txt +0 -25491
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e80438ebf3e398c8fca2a77a6e5beb850819e3
|
4
|
+
data.tar.gz: a68503b87fa97e1c5ad07ecb35d30c6028ed7619
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8867fdfb74f44633410af3b7f218a1ebc648b3b3ea9690f7dbaead0d9b6442aca1a2363d27875026bf8a0d875aedd04537c3e5b28a79dd3bc134378e378f9849
|
7
|
+
data.tar.gz: 08287e90042ba8b294fa085fb246341c97a733056d94269e5ae56032a9e9549de843f60d7082afa7231049faaea2d0b44b35055a7a7a163f09bc8acd5bb15307
|
data/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
[](https://travis-ci.org/pwnieexpress/louis)
|
5
5
|
[](https://coveralls.io/r/pwnieexpress/louis?branch=master)
|
6
6
|
[](https://gemnasium.com/pwnieexpress/louis)
|
7
|
-
[](https://hakiri.io/github/pwnieexpress/louis/master)
|
8
7
|
[](https://codeclimate.com/github/pwnieexpress/louis)
|
9
8
|
|
10
9
|
There is a public registry maintained by the IANA that is required to be used
|
data/Rakefile
CHANGED
@@ -8,7 +8,18 @@ rescue LoadError
|
|
8
8
|
# no rspec available
|
9
9
|
end
|
10
10
|
|
11
|
+
desc "Pre-parse the source file into the parsed file"
|
11
12
|
task :parse_data_file => [:environment] do
|
13
|
+
include Louis::Helpers
|
14
|
+
|
15
|
+
lookup_table = []
|
16
|
+
|
17
|
+
File.open(Louis::ORIGINAL_OUI_FILE).each_line do |line|
|
18
|
+
res = line_parser(line)
|
19
|
+
lookup_table.push(res) if res
|
20
|
+
end
|
21
|
+
|
22
|
+
File.write(Louis::PARSED_DATA_FILE, JSON.generate(lookup_table))
|
12
23
|
end
|
13
24
|
|
14
25
|
task :environment do
|