lib/framey/api.rb in framey-1.0.2 vs lib/framey/api.rb in framey-1.0.3
- old
+ new
@@ -57,10 +57,10 @@
parsed_res
end
def self.sign
timestamp = (Time.now.utc + Framey.api_timeout * 60).to_i
- signature = Digest::MD5.hexdigest(Framey.api_secret + "&" + timestamp)
+ signature = Digest::MD5.hexdigest(Framey.api_secret + "&" + timestamp.to_s)
return timestamp.to_s, signature
end
class Error < StandardError
attr_reader :http_headers