lib/akamai_ccu/signer.rb in akamai_ccu-1.5.4 vs lib/akamai_ccu/signer.rb in akamai_ccu-1.5.5

- old
+ new

@@ -1,7 +1,6 @@ require "forwardable" -require "uri" require "akamai_ccu/secret" module AkamaiCCU class Signer extend Forwardable @@ -40,11 +39,11 @@ end private def signed_body return "" unless body? truncated = body[0...max_body] - AkamaiCCU.sign(truncated) + @secret.class.sign(truncated) end private def signature_data @signature_data ||= [].tap do |data| data << method @@ -56,10 +55,10 @@ data << auth_header end end private def signature - AkamaiCCU.sign_HMAC(key: signed_key, data: signature_data.join(TAB)) + @secret.class.sign_HMAC(signed_key, signature_data.join(TAB)) end def signed_header "#{HEADER_NAME}=#{signature}" end