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

Digest::Digest is deprecated; use Digest #119

Closed
leeduc opened this issue Dec 25, 2015 · 3 comments
Closed

Digest::Digest is deprecated; use Digest #119

leeduc opened this issue Dec 25, 2015 · 3 comments

Comments

@leeduc
Copy link

leeduc commented Dec 25, 2015

In Rails 4.2.4, I see this warning from the OpenSSL call within encode when testing use rspec:

/opt/rubystack-2.2.3-2/ruby/lib/ruby/2.2.0/openssl/digest.rb:64
/opt/rubystack-2.2.3-2/ruby/lib/ruby/2.2.0/openssl/digest.rb:64:in `initialize'
/opt/rubystack-2.2.3-2/ruby/lib/ruby/gems/2.2.0/gems/jwt-0.1.8/lib/jwt.rb:33:in `new'
/opt/rubystack-2.2.3-2/ruby/lib/ruby/gems/2.2.0/gems/jwt-0.1.8/lib/jwt.rb:33:in `sign_hmac'
/opt/rubystack-2.2.3-2/ruby/lib/ruby/gems/2.2.0/gems/jwt-0.1.8/lib/jwt.rb:16:in `sign'
/opt/rubystack-2.2.3-2/ruby/lib/ruby/gems/2.2.0/gems/jwt-0.1.8/lib/jwt.rb:53:in `encode'
Digest::Digest is deprecated; use Digest
@excpt
Copy link
Member

excpt commented Dec 25, 2015

I'd recommend to update your ruby-jwt gem version. It looks like you are using an outdated version (0.1.8). The current stable version is 1.5.2.

@leeduc
Copy link
Author

leeduc commented Dec 28, 2015

it's worked, thanks 👍

@excpt
Copy link
Member

excpt commented Dec 28, 2015

Great. :)

@excpt excpt closed this as completed Dec 28, 2015
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