Sha256: df520fe224ebd50d37d0ab2314769d03c4234d60d5b4aec5b13e4d5aa1ab1fde
Contents?: true
Size: 1.65 KB
Versions: 3
Compression:
Stored size: 1.65 KB
Contents
# MelissaData Links to products/projects used: * MelissaData Data Quality Website: [http://www.melissadata.com/dqt/index.htm](http://www.melissadata.com/dqt/index.htm) * Vagrant: [http://vagrantup.com/](http://vagrantup.com/) * Oracle's VirtualBox: [VirtualBox](http://www.virtualbox.org) Ruby wrappers around the MelissaData objects. The code to access the raw shared objects is based on the sample code provided by the MelissaData DVDs / downloads. ## Prereqs Make sure these are all installed on your development machine: * Oracle's VirtualBox: [VirtualBox](http://www.virtualbox.org) * RVM: [http://beginrescueend.com](http://beginrescueend.com) * Ruby 1.9.2 via RVM: `rvm install 1.9.2` * A MelissaData DVD or .dmg (e.g. IPL-DVD-2011-Q1 or DQ-DVD-2011-05) ## Quick Start Once all the prereqs are installed, this should get you a running Vagrant VM: git clone git://github.com/johnnyt/melissadata.git cd melissadata rake setup Now make sure you have a MelissaData DVD (or .dmg) mounted (e.g. IPL-DVD-2011-Q1), and run: rake install_md Then SSH into the Vagrant VM: bundle exec vagrant ssh Once logged into the VM - run: cd /opt/melissadata/gem irb -r lib/md Inside the IRB session run: irb> ip = MelissaData::NativeObject::IpLocator.new :license => 'YOUR_LICENSE_KEY' irb> ip.process :ip => '74.125.224.81' which should return: => {:domain_name=>"google.com", :country_abbrev=>"US", :region=>"California", :zip=>"94043", :isp=>"Google Inc", :lat=>"37.386052", :country=>"United States", :city=>"Mountain View", :lng=>"-122.083851", :messages=>{:status=>["IP Address found in database"]}, :result_codes=>"IS01"}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
melissadata-0.1.2 | README.md |
melissadata-0.1.1 | README.md |
melissadata-0.1.0 | README.md |