From 212968d247dc7d7a45992e79a347b20e7abb71aa Mon Sep 17 00:00:00 2001 From: Martyn Loughran Date: Sun, 6 May 2012 16:35:53 +0100 Subject: [PATCH] Removed un-necessary digest method --- lib/signature.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/signature.rb b/lib/signature.rb index 319aafc..48777bf 100644 --- a/lib/signature.rb +++ b/lib/signature.rb @@ -90,13 +90,10 @@ def auth_hash private def signature(token) + digest = OpenSSL::Digest::SHA256.new OpenSSL::HMAC.hexdigest(digest, token.secret, string_to_sign) end - def digest - OpenSSL::Digest::Digest.new('sha256') - end - def string_to_sign [@method, @path, parameter_string].join("\n") end