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

Don't add rbnacl as dependency #162

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Oct 5, 2020

Some gems, such as ruby-jwt, try to load rbnacl when library loaded.
https://github.com/jwt/ruby-jwt/blob/0f7dd575a3324a4aefe769a1f7d381efe2141771/lib/jwt/signature.rb#L11-L15

Because of this, if rbnacl exists in dependencies, cause of libsodium load error.

Therefore, it is better to have it specified in the user's Gemfile instead of making it dependency of gem.

Fixes #161.

Some gems, such as `ruby-jwt`, try to load `rbnacl` when library loaded.
https://github.com/jwt/ruby-jwt/blob/0f7dd575a3324a4aefe769a1f7d381efe2141771/lib/jwt/signature.rb#L11-L15

Because of this, if `rbnacl` exists in dependencies, cause of `libsodium`
load error.

Therefore, it is better to have it specified in the user's
`Gemfile` instead of making it dependency of gem.

Fixes pusher#161.
@callum-oakley
Copy link
Contributor

Looks good, thanks for this!

@callum-oakley callum-oakley merged commit 41e14e3 into pusher:master Oct 5, 2020
@y-yagi
Copy link
Contributor Author

y-yagi commented Oct 5, 2020

Thanks for your review!

@y-yagi y-yagi deleted the dont-add-rbnacl-as-dependency branch October 5, 2020 23:49
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.

Libsodium dependency
2 participants