lib/sunlight_api.rb in sunlight_api-1.0.0 vs lib/sunlight_api.rb in sunlight_api-1.0.1

- old
+ new

@@ -71,10 +71,11 @@ def append_time_stamp @base_url += "&time=#{@time_stamp}" end def append_signature - @signature = Digest::HMAC.hexdigest(@base_url, @private_key, Digest::SHA256).upcase + @digest = OpenSSL::Digest::Digest.new('sha256') + @signature = OpenSSL::HMAC.hexdigest(@digest, @private_key, @base_url).upcase @url = "#{@base_url}&signature=#{@signature}" end end end