lib/earth/pet/breed/data_miner.rb in earth-0.11.16 vs lib/earth/pet/breed/data_miner.rb in earth-0.11.17

- old
+ new

@@ -1,10 +1,10 @@ Breed.class_eval do data_miner do 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 + :select => proc { |row| row['gender'].blank? } do key 'name' store 'species_name', :field_name => 'species' store 'weight', :from_units => :pounds, :to_units => :kilograms end