New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid uppercase characters in gem names #378
Comments
I'd like to consider using the model that domain names follow - case isn't required to match, but uniqueness of down-cased names is preserved. |
I agree. This could be accomplished by |
Agreed. Also, gem URLs should be case insensitive, for example https://rubygems.org/gems/zentest should resolve to the same page as https://rubygems.org/gems/ZenTest (currently it 404s). Even for gems that already exist, |
Seems to me that this is a change that should be approached cautiously. While I'm in favor of preventing confusion, there are a couple of factors I'd like to see considered:
|
@ffmike Existing capitalized gems would be grandfathered and future gems would be expected to follow these guidelines: http://blog.segment7.net/2010/11/15/how-to-name-gems Gems names should be restricted to US-ASCII alphanumeric for maximum filesystem compatibility, so the gem's name would need to match |
Closing. |
Currently there's nothing to prevent users from uploading gems with identical names differing only by case. This could lead to serious confusion. And, in fact, I've seen it happen with CPAN.
I propose that, in the future, all gem names be automatically downcased either at gem creation time or gem push time. Current gems with uppercase characters would be grandfathered in, but going forward, no gems with uppercase characters!
The text was updated successfully, but these errors were encountered: