-
Notifications
You must be signed in to change notification settings - Fork 60
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
crc32 is overridden by another library when using bundler #38
Comments
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 |
Thank you so much for your reply!! I have no idea why this strange thing happens too... In my investigation,
To fix it, I think there are two options. |
We should update the code to use the provided crc32 implementation.. no reason to duplicate it. |
I inserted the same input, but I got different
bitmap
on Linux and Mac.I ran the following code.
I added
rb_warn
intocrc32
to check if the functioncrc32
in your gem is called.And I ran
test.rb
with bundler, but I got no warning output byrb_warn
.From this result, maybe
crc32
in your gem is not called.I also ran
test.rb
without bundler specifyingLOAD_PATH
explicitly.The waning output came out and I got the same
bitmap
as that on Mac.So
crc32
seems to be overridden by another library when using bundler on Linux.The text was updated successfully, but these errors were encountered: