From: botp Date: 2010-10-05T00:06:00+09:00 Subject: Re: gems should *not be case sensitive.. or should they? On Mon, Oct 4, 2010 at 9:13 PM, Ammar Ali wrote: > but if it's possible to publish 2 gems with same name using different casings.. yes, unfortunately,... g=`gem list --remote`.each_line.map{|x| x.split.first}; gd=g.map(&:downcase); gd.get_duplicates.size #=> 121 gd.get_duplicates #=> ["abundance", "actionpool", "actiontimer", "activesambaldap", "adkron-data_bank", "alltom-glapp", "ambethia-smtp-tls", "andre-geokit", "apptower-ubistrano", "arbarlow-rubycurl", "assaf-uuid", "autonzb", "babelfish", "baccigalupi-aqua", "bangkok", "bcaccinolo-mailchimp_api", "bluecloth", "bougyman-freeswitcher", "box2d", "bterlson-reddit", "buildr", "cedric-shorty", "commandline", "console", "creationix-milk", "crudtree", "cyrillizer", "dcrec1-rhyme", "dnsruby", "dtaus", "dtr", "elliottcable-jello", "elliottcable-nfoiled", "elliottcable-refinery", "elliottcable-stringray", "entangledstate-isbn", "etch", "fakeweb", "farsifu", "fivepointssolutions-serve", "flashatron", "freeswitcher", "funit", "gdata", "gooby", "hebruby", "informer", "io-reactor", "jalalidate", "jamierumbelow-gistify", "jarrett-quarto", "jazzez", "jbe-termite", "jgre-monkeyspecdoc", "jruby-openssl", "kanocc", "laowaihua", "linguistics", "listrophy-suprails", "luikore-bk201", "luikore-cici", "maca-scruby", "markaby", "martin", "matthewrudy-aspicious", "matthewrudy-rudeq", "mdaines-feasible", "memoize", "meskyanichi-timer", "mp4info", "nabaztag", "nephila", "nilsimsa", "njacobeus-tokboxer", "oasis", "onion", "onlooker", "opal", "pablo", "parseargs", "piggy", "polar", "popen4", "pvande-differ", "rack", "radar-lookup", "rafaelgaspar-sexyprotocol", "redgreen", "reposh", "roadrunner", "rogerleite-gedit-snippets-tool", "ron", "roxml", "rsruby", "rtask", "ruby-hl7", "rvm", "sac", "selenium-client", "soleone-highrise", "spy-vs-spy", "sqs", "stencil", "stompmq", "sysvipc", "text", "tommi-cmd_tweet", "tracker", "usage", "valuable", "vimmate", "visionmedia-growl", "visionmedia-san", "watersofoblivion-burn", "watersofoblivion-footpedal", "willbailey-flareshow", "writeexcel", "x12", "xmlcanonicalizer", "xray", "zliby"] g.grep /actiontime/i #=> ["actiontimer", "ActionTimer"] g.grep /actionpool/i #=> ["ActionPool", "actionpool"] g.grep /^popen4/i #=> ["popen4", "POpen4"] and some weirdos.. g.grep /^-/i #=> ["-"] g.grep /^1234/i #=> ["1234567890_"] ... best regards -botp