lib/earth/pet/breed/data_miner.rb in earth-0.5.0 vs lib/earth/pet/breed/data_miner.rb in earth-0.5.2
- old
+ new
@@ -1,13 +1,6 @@
Breed.class_eval do
data_miner do
- schema Earth.database_options do
- string 'name'
- string 'species_name'
- float 'weight'
- string 'weight_units'
- end
-
import "Brighter Planet's list of cat and dog breeds",
:url => 'http://static.brighterplanet.com/science/data/consumables/pets/breed_genders.csv',
:encoding => 'ISO-8859-1',
:select => lambda { |row| row['gender'].blank? } do
key 'name'