Sha256: 46f20892b3028d040d577b3252ece42f6d0b2aacc8f15587e5a4544cf4a9d906
Contents?: true
Size: 622 Bytes
Versions: 3
Compression:
Stored size: 622 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'namey' require 'namey/parser' dest = ARGV.shift if dest.nil? dest ="sqlite://data/names.db" end puts "Load data to #{dest}" @parser = Namey::Parser.new(dest) #@parser.load_male_names("data/dist.male.first") #@parser.load_female_names("data/dist.female.first") #@parser.load_surnames("data/dist.all.last") base_url = "http://www.census.gov/genealogy/names" @parser.load_male_names("#{base_url}/dist.male.first") @parser.load_female_names("#{base_url}/dist.female.first") @parser.load_surnames("#{base_url}/dist.all.last")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
namey-0.0.8 | bin/namey-load-data |
namey-0.0.7 | bin/namey-load-data |
namey-0.0.6 | bin/namey-load-data |