Skip to content

Instantly share code, notes, and snippets.

@dust3d
Forked from mcculloughsean/snippet.rb
Created October 14, 2010 02:38
Show Gist options
  • Save dust3d/625442 to your computer and use it in GitHub Desktop.
Save dust3d/625442 to your computer and use it in GitHub Desktop.
["Daily Deals", "Clothing & Accessories", "Home & Garden", "Baby, Kids & Toy", "Department Stores", "Pets", "Electronics", "Flowers & Gifts", "Sports & Recreation", "Food & Drink", "Automotive", "Health & Medical", "Beauty & Spas", "Travel", "Arts & Entertainment", "Other"].
CATEGORIES = {
'Art, Craft & Supplies' => Category.find_by_name('Other'),
'Arts & Entertainment' => Category.find_by_name('Arts & Entertainment'),
'Automotive' => Category.find_by_name('Automotive'),
'Beauty & Spas' => Category.find_by_name('Beauty & Spas'),
'Classes & Workshops' => Category.find_by_name('Other'),
'Clothing & Accessories' => Category.find_by_name('Clothing & Accessories'),
'Dance' => Category.find_by_name('Arts & Entertainment'),
'Dental' => Category.find_by_name('Health & Medical'),
'Education & Training' => Category.find_by_name('Other'),
'Food & Drink' => Category.find_by_name('Food & Drink'),
'Fitness & Nutrition' => Category.find_by_name('Sports & Recreation'),
'Floral' => Category.find_by_name('Flowers & Gifts'),
'Fun & Adventure' => Category.find_by_name('Sports & Recreation'),
'Home Products & Services' => Category.find_by_name('Home & Garden'),
'Health & Medical' => Category.find_by_name('Health & Medical'),
'Kids' => Category.find_by_name('Baby, Kids, & Toy'),
'Massage' => Category.find_by_name('Beauty & Spas'),
'Museums' => Category.find_by_name('Other'),
'Personal Assistance' => Category.find_by_name('Health & Beauty'),
'Pets' => Category.find_by_name('Pets'),
'Photography & Photo Services' => Category.find_by_name('Other'),
'Sporting Events' => Category.find_by_name('Sports & Recreation'),
'Sports & Recreation' => Category.find_by_name('Sports & Recreation'),
'Tours & Attractions' => Category.find_by_name('Other'),
'Trade Shows & Expos' => Category.find_by_name('Other'),
'Travel and Hospitality' => Category.find_by_name('Travel'),
'Other' => Category.find_by_name('Other')
}
REMAPPING OF OLD CATEGORIES TO NEW ONES:
GeoClip.it Category Mapping
"Daily Deals"
"Apparel - Womens" => "Clothing & Accessories"
"Home & Garden" [KEEP]
"Apparel - Mens" => "Clothing & Accessories"
"Jewelry & Watches" => "Clothing & Accessories"
"Baby, Kids & Toy" => [KEEP]
"Kitchen & Cooking" => "Food & Drink"
"Books & Magazine" => "Arts & Entertainment"
"Music, DVDs & Video" => "Arts & Entertainment"
"Computers & Software" => "Electronics"
"Office Supply" => "Department Stores"
"Department Stores" [KEEP]
"Pet Supply" => "Pets"
"Electronics" [KEEP]
"Shoes" => "Clothing & Accessories"
"Flowers & Gifts" [KEEP]
"Sports & Recreation" [KEEP]
"Food & Wine" => "Food & Drink"
"Tools & Automotive" => "Automotive"
"Health & Beauty" => ["Health & Medical", "Beauty & Spas"]
"Travel & Luggage" => "Travel"
"Entertainment" => "Arts & Entertainment"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment