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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c504dde7be169053134a867e3d2c34cb86a2f75c
4
- data.tar.gz: f97494bf3010114f5c6ada56d951faf4f5fb99f4
3
+ metadata.gz: 06e80438ebf3e398c8fca2a77a6e5beb850819e3
4
+ data.tar.gz: a68503b87fa97e1c5ad07ecb35d30c6028ed7619
5
5
  SHA512:
6
- metadata.gz: efb736393a05a7cd590e4967b97a155f7807ebd5c58e9f1497a937f82a03703a6c05a9526b15c6fdd5ccce3b1573ec3c7f9fde3d45fa012e99f7c68c951aa308
7
- data.tar.gz: 85dc12268c91e3b2dd9d9a71fb01f7e2361a5b358a85ccd1860073adfca3b848d9196566e556301e8591dd73a276ec26f4265ee32594b29dd6009f55629fa55f
6
+ metadata.gz: 8867fdfb74f44633410af3b7f218a1ebc648b3b3ea9690f7dbaead0d9b6442aca1a2363d27875026bf8a0d875aedd04537c3e5b28a79dd3bc134378e378f9849
7
+ data.tar.gz: 08287e90042ba8b294fa085fb246341c97a733056d94269e5ae56032a9e9549de843f60d7082afa7231049faaea2d0b44b35055a7a7a163f09bc8acd5bb15307
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![Build Status](https://travis-ci.org/pwnieexpress/louis.svg?branch=master)](https://travis-ci.org/pwnieexpress/louis)
5
5
  [![Coverage Status](https://coveralls.io/repos/pwnieexpress/louis/badge.svg?branch=master)](https://coveralls.io/r/pwnieexpress/louis?branch=master)
6
6
  [![Dependency Status](https://gemnasium.com/pwnieexpress/louis.svg)](https://gemnasium.com/pwnieexpress/louis)
7
- [![Security](https://hakiri.io/github/pwnieexpress/louis/master.svg)](https://hakiri.io/github/pwnieexpress/louis/master)
8
7
  [![Code Climate](https://codeclimate.com/github/pwnieexpress/louis/badges/gpa.svg)](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