lib/framey/api.rb in framey-1.0.1 vs lib/framey/api.rb in framey-1.0.2

- old
+ new

@@ -56,11 +56,11 @@ parsed_res end def self.sign - timestamp = Time.now.utc + Framey.api_timeout * 60 - signature = Digest::MD5.hexdigest(Framey.api_secret + "&" + timestamp.strftime("%m%d%Y%H%M%S")) + timestamp = (Time.now.utc + Framey.api_timeout * 60).to_i + signature = Digest::MD5.hexdigest(Framey.api_secret + "&" + timestamp) return timestamp.to_s, signature end class Error < StandardError attr_reader :http_headers