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

Ruby 2.1.0: Digest::Digest is deprecated; use Digest #121

Closed
dwiedenbruch opened this issue Jan 8, 2014 · 0 comments · Fixed by #122
Closed

Ruby 2.1.0: Digest::Digest is deprecated; use Digest #121

dwiedenbruch opened this issue Jan 8, 2014 · 0 comments · Fixed by #122

Comments

@dwiedenbruch
Copy link
Contributor

Since Ruby 2.1.0 use of OpenSSL::Digest::Digest is deprecated.
Use OpenSSL::Digest instead.

CarrierWaveDirect::Uploader

    def signature
      Base64.encode64(
        OpenSSL::HMAC.digest(
          OpenSSL::Digest::Digest.new('sha1'),
          aws_secret_access_key, policy
        )
      ).gsub("\n","")
    end
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 a pull request may close this issue.

1 participant