Rakefile in louis-2.0.8 vs Rakefile in louis-2.1.0

- old
+ new

@@ -6,11 +6,11 @@ task :default => :spec rescue LoadError # no rspec available end -desc "Download the latest copy of the wireshark manufacturer's database" +desc 'Download the latest copy of the wireshark manufacturers database' task :update_wireshark => [:environment] do require 'net/http' begin new_file = Net::HTTP.get(URI('https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf')) @@ -19,18 +19,16 @@ rescue => err puts "An error occurred while downloading the file: #{err.class} -> #{err.message}" end end -desc "Pre-parse the source file into the parsed file" +desc 'Pre-parse the source file into the parsed file' task :parse_data_file => [:environment] do - include Louis::Helpers - lookup_table = {} File.open(Louis::ORIGINAL_OUI_FILE).each_line do |line| - next unless (res = line_parser(line)) + next unless (res = Louis::Helpers.line_parser(line)) lookup_table[res['mask']] ||= {} lookup_table[res['mask']][res['prefix'].to_s] = { 's' => res['short_vendor'], 'l' => res['long_vendor'] @@ -45,10 +43,10 @@ $LOAD_PATH.unshift(base_path) unless $LOAD_PATH.include?(base_path) require 'louis' end -desc "Start a pry session with the code loaded" +desc 'Start a pry session with the code loaded' task :console => [:environment] do require 'pry' pry end