提交 51d155e6 编写于 作者: J Jeremy Kemper

Lazy-require OpenSSL

上级 c26cb089
......@@ -39,6 +39,7 @@ def generate(value)
private
def generate_digest(data)
require 'openssl' unless defined?(OpenSSL)
OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new(@digest), @secret, data)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册