Created
November 19, 2014 01:27
-
-
Save ArunGupta25/9b5bbf771a648b24d311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.correct_name(designer) | |
if ["Apc", "A.P.C"].include?(designer) | |
return "A.P.C." | |
elsif ["Jcrew","J Crew","J.Crew"].include?(designer) | |
return "J. Crew" | |
elsif ["10.Deep", "10Deep", "10deep"].include?(designer) | |
return "10 Deep" | |
elsif ["All Saints"].include?(designer) | |
return "Allsaints" | |
elsif ["Wings And Horns", "Wings Horns", "Wings+Horns"].include?(designer) | |
return "Wings + Horns" | |
elsif ["Redwing", "Redwings", "Red Wings"].include?(designer) | |
return "Red Wing" | |
elsif ["Y 3", "Y3"].include?(designer) | |
return "Y-3" | |
elsif ["45 Rpm"].include?(designer) | |
return "45rpm" | |
elsif ["Adiddas"].include?(designer) | |
return "Adidas" | |
elsif ["Air Jordans"].include?(designer) | |
return "Air Jordan" | |
elsif ["Dolce And Gabbana"].include?(designer) | |
return "Dolce & Gabbana" | |
elsif ["Dsquared"].include?(designer) | |
return "Dsquared2" | |
elsif ["Gitman Brothers Vintage", "Gitman Brothers", "Gitman Bros.", "Gitman Vintage", "Gitman Bros Vintage"].include?(designer) | |
return "Gitman Bros. Vintage" | |
elsif ["Head Porter+"].include?(designer) | |
return "Head Porter Plus" | |
elsif ["Hw Carter"].include?(designer) | |
return "Hw Carter And Sons" | |
elsif ["Iloveugly"].include?(designer) | |
return "I Love Ugly" | |
elsif ["Ironheart"].include?(designer) | |
return "Iron Heart" | |
elsif ["J Press York Street"].include?(designer) | |
return "J. Press York Street" | |
elsif ["Kith"].include?(designer) | |
return "Kith Nyc" | |
elsif ["Lbm 1911"].include?(designer) | |
return "L.B.M. 1911" | |
elsif ["Left Field"].include?(designer) | |
return "Left Field Nyc" | |
elsif ["Levis Made And Crafted"].include?(designer) | |
return "Levis Made & Crafted" | |
elsif ["Lgb Le Grand Bleu", "Le Grand Bleu (Lgb)"].include?(designer) | |
return "Le Grand Bleu" | |
elsif ["Lost And Found"].include?(designer) | |
return "Lost & Found" | |
elsif ["Naked And Famous"].include?(designer) | |
return "Naked & Famous" | |
elsif ["Orion"].include?(designer) | |
return "Orion Leather" | |
elsif ["Saturdays"].include?(designer) | |
return "Saturdays Surf Nyc" | |
elsif ["Schott Nyc", "Schott Bros Nyc"].include?(designer) | |
return "Schott" | |
elsif ["Scotch And Soda"].include?(designer) | |
return "Scotch & Soda" | |
elsif ["Shipley And Halmos"].include?(designer) | |
return "Shipley & Halmos" | |
elsif ["Sns Herning"].include?(designer) | |
return "S.N.S. Herning" | |
elsif ["Sperry Top Sider"].include?(designer) | |
return "Sperry" | |
elsif ["The Flathead"].include?(designer) | |
return "The Flat Head" | |
elsif ["Toj"].include?(designer) | |
return "Temple Of Jawnz" | |
elsif ["Wallace And Barnes"].include?(designer) | |
return "Wallace & Barnes" | |
elsif ["Wolverine 1000 Mile"].include?(designer) | |
return "Wolverine" | |
elsif ["American Eagle"].include?(designer) | |
return "American Eagle Outfitters" | |
elsif ["Frank And Oak"].include?(designer) | |
return "Frank & Oak" | |
elsif ["H+M"].include?(designer) | |
return "H&M" | |
elsif ["J Crew Factory", "J. Crew (Factory)"].include?(designer) | |
return "J. Crew Factory" | |
elsif ["L.L Bean", "Ll Bean"].include?(designer) | |
return "L.L. Bean" | |
elsif ["3 Sixteen"].include?(designer) | |
return "3sixteen" | |
elsif ["3 Sixteen X Quoddy"].include?(designer) | |
return "3sixteen X Quoddy" | |
elsif ["A Bathing Ape"].include?(designer) | |
return "Bape" | |
elsif ["Alexander Wang For H&M"].include?(designer) | |
return "Alexander Wang X H&M" | |
elsif ["April77"].include?(designer) | |
return "April 77" | |
elsif ["Augusta(A1923)", "Augusta (A1923)"].include?(designer) | |
return "A1923" | |
elsif ["B Store London"].include?(designer) | |
return "B Store" | |
elsif ["Baldwin Denim"].include?(designer) | |
return "Baldwin" | |
elsif ["Barneys", "Barneys Ny"].include?(designer) | |
return "Barneys New York" | |
elsif ["Bass Weejun"].include?(designer) | |
return "Bass" | |
elsif ["Butterfly Soul Fire"].include?(designer) | |
return "Butterflysoulfire" | |
elsif ["Byod (Be Your Own Designer"].include?(designer) | |
return "BYOD" | |
elsif ["Canda Goose"].include?(designer) | |
return "Canada Goose" | |
elsif ["Casio G Shock"].include?(designer) | |
return "Casio" | |
elsif ["Cheaney Of England"].include?(designer) | |
return "Cheaney" | |
elsif ["3sixteen+"].include?(designer) | |
return "3sixteen Plus" | |
elsif ["Beams+"].include?(designer) | |
return "Beams Plus" | |
elsif ["Cole Hann"].include?(designer) | |
return "Cole Haan" | |
elsif ["Coming Soon By Yy"].include?(designer) | |
return "Coming Soon By Yohji" | |
elsif ["Cote & Ciel", "Cote And Ciel"].include?(designer) | |
return "Cote En Ciel" | |
elsif ["Crockett And Jones"].include?(designer) | |
return "Crockett & Jones" | |
elsif ["Diet Butcher Slim", "Diet Butcher Slim Shin"].include?(designer) | |
return "Diet Butcher Slim Skin" | |
elsif ["Doc Marten", "Dr Martens", "Doc Martens"].include?(designer) | |
return "Dr. Martens" | |
elsif ["Drkshdw"].include?(designer) | |
return "Drkshdw By Rick Owens" | |
elsif ["East Land", "Eastland Made In Maine"].include?(designer) | |
return "Eastland" | |
elsif ["Fiorentini+Baker", "Fiorentini And Baker"].include?(designer) | |
return "Fiorentini + Baker" | |
elsif ["Gant X Michael Bastian"].include?(designer) | |
return "Gant By Michael Bastian" | |
elsif ["Geman Army/ Bundeswehr", "German Army/ Bundeswehr"].include?(designer) | |
return "Bundeswehr" | |
elsif ["Golden Bear X Union Made"].include?(designer) | |
return "Golden Bear X Unionmade" | |
elsif ["Gyakusou (Nike X Undercover)"].include?(designer) | |
return "Gyakusou" | |
elsif ["Hackett Of London"].include?(designer) | |
return "Hackett London" | |
elsif ["Han Kjobenhaven"].include?(designer) | |
return "Han Kjobenhavn" | |
elsif ["Hawkings Mc Gill"].include?(designer) | |
return "Hawkings Mcgill" | |
elsif ["Henrik Vibskon"].include?(designer) | |
return "Henrik Vibskov" | |
elsif ["Howlin By Morisson", "Howlin"].include?(designer) | |
return "Howlin By Morrison" | |
elsif ["Hw Carter And Sons"].include?(designer) | |
return "Hw Carter & Sons" | |
elsif ["Ii Se"].include?(designer) | |
return "Iise" | |
elsif ["In Aisce"].include?(designer) | |
return "Inaisce" | |
elsif ["J Press"].include?(designer) | |
return "J. Press" | |
elsif ["J. Press York St.", "J Press York St", "J.Press York Street"].include?(designer) | |
return "J. Press York Street" | |
elsif ["John Varvatos Star Usa", "John Varvato Star Usa"].include?(designer) | |
return "John Varvatos" | |
elsif ["John Elliot Co. +", "John Elliott + Co.", "John Elliott", "John Elliot + Co."].include?(designer) | |
return "John Elliott + Co" | |
elsif ["Juun J", "Juun. J", "Juun J.", ""].include?(designer) | |
return "Juun.J" | |
else | |
return designer | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment