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

Use semaphore when encrypting/decrypting values (#1) #345

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DimitriosLisenko
Copy link

@DimitriosLisenko DimitriosLisenko commented May 31, 2019

This is a possible fix for #344.

Ideally, I'd like to create the mutex instance variable as part of the object initialization, which will avoid having the class mutex and the nasty double-checked lock in line 377. However, the after_initialize hook is only available for Rails, and as far as I'm aware, overriding the initialize method is an anti-pattern. Would love to hear your thoughts on this.

@DimitriosLisenko
Copy link
Author

DimitriosLisenko commented May 31, 2019

BTW I can see that some tests are failing, but they're all to do with either gem installation (public_suffix requires Ruby version >= 2.3.), or something to do with the wrong version of the sqlite gem being loaded - not sure what's happening there since I didn't change the Gemfile.

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

Successfully merging this pull request may close these issues.

2 participants