You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
crc32 is overridden by another library when using bundler #38
To fix it, I think there are two options.
One is to rename crc32 in your gem to prevent the name conflict.
Another is to use builtin crc32 such as Zlib.crc32 like your suggestion.
Activity
igrigorik commentedon Jul 26, 2015
Huh, well that's a fun one. Thanks for tracking this down... /me scratches head, not quite sure what's going here.
I guess we could/should the built-in method: http://ruby-doc.org/stdlib-1.9.3/libdoc/zlib/rdoc/Zlib.html#method-c-crc32
n-nishizawa commentedon Jul 28, 2015
Thank you so much for your reply!!
I have no idea why this strange thing happens too...
In my investigation,
Zlib.crc32might be used on Linux with bundler.Because the index based on
Zlib.crc32corresponds to this gems's bit field.To fix it, I think there are two options.
One is to rename
crc32in your gem to prevent the name conflict.Another is to use builtin crc32 such as
Zlib.crc32like your suggestion.igrigorik commentedon Aug 2, 2015
We should update the code to use the provided crc32 implementation.. no reason to duplicate it.