Skip to content
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

RuntimeError: Digest::Base cannot be directly inherited in Ruby #14

Closed
mcoetzee opened this issue May 3, 2018 · 1 comment
Closed

Comments

@mcoetzee
Copy link

mcoetzee commented May 3, 2018

Alright so we are sporadically getting this RuntimeError in our Sidekiq workers and the offending line of code is lib/sekrets.rb#L303:

cipher.key = Digest::SHA256.digest(key.to_s).slice(0,16)

After some digging I found a similar issue in the aerospike-client-ruby gem:
Digest::Base cannot be directly inherited in Ruby

Which they solved by using the thread-safe digest lookup.

Would you agree that this line lib/sekrets.rb#L303 should similarly be changed to use the thread-safe digest lookup?

ahoward added a commit that referenced this issue May 16, 2024
@ahoward
Copy link
Owner

ahoward commented May 16, 2024

better late that never but on master now

@ahoward ahoward closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants