Skip to content

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