-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Case insensitive RMagick loading cases multiple require on Mac OS #1205
Comments
I'm inclined to agree. @bensie? For reference: we've been doing this since 5bb0e42, and, yup, rmagick uses a capitalized filename. |
Just curious, would it make sense to just remove the require for the lowercase name? In a case-insensitive filesystem "RMagick" should still map to "rmagick". And if it were case sensitive, it wouldn't find the I have a fix I'm using right now in my fork: fix-rmagic-require-case-sensitivity |
I'm inclined to remove the lowercase loader as well. Can't think of any reason that wouldn't work everywhere. |
in carrierwave/processing/rmagick.rb
Requiring the lowercase "rmagick" in Mac OS X causes "already initialized" warnings when other libraries require "RMagick".
The file in question being loaded is "RMagick.rb"
In this case, would it make sense to try the "RMagick" require first, and fall back to lowercase? Also, in a case insensitive filesystem, wouldn't it pick up the file either way?
Thanks.
The text was updated successfully, but these errors were encountered: