From: Chad Fowler Date: 2004-03-15T21:25:52+09:00 Subject: Re: [ANN] RubyGems 0.2.0 On Mar 15, 2004, at 7:04 AM, Gavin Sinclair wrote: > On Monday, March 15, 2004, 9:52:34 PM, Chad wrote: > >> On Mar 15, 2004, at 2:37 AM, why the lucky stiff wrote: > >>> gabriele renzi wrote: >>>> cool thanks, but: >>>> rubygems-0.2.0>gem --remote-install=redcloth >>>> c:/programmi/ruby-1.8/ruby/lib/ruby/site_ruby/rubygems/ >>>> remote_installer.rb:78:in >>>> `find_latest_valid_package_in_caches': Could not find redcloth > >>> >>> case-sensitive. >>> > >> What do you all think--should this be case sensitive or not? It's >> obviously a pretty easy thing to change. > > I'd say the following interface would be best: > > $ gem --remote-install=redcloth > Package "redcloth" not found. Closest match: "RedCloth". > > $ gem --remote-install=RedClith > Package "RedClith" not found. Closest match: "RedCloth". > That's an interesting idea. Definitely a better error message than what 0.2.0 gives (which I've changed in CVS as of this morning). > I'd rather not lose case-sensitivity in installations. Searching for > a package should be case-instensitive by default though. > As of now it's case insensitive in CVS. The previous behavior was as you describe above. It's obviously easy to change back. I kind of like the idea of changing it back but providing a closest match as you've described. Opinions? > There's a fuzzy matching algorithm for strings among the RubyForge > snippets. (Convert both strings to lowercase before fuzzy matching.) > > Thanks. I've just pasted it into a file to play with. Chad