Sha256: ec3979c47188cca27f34c10c8a27d107336b146fa1688dcb980968fec80f2268
Contents?: true
Size: 631 Bytes
Versions: 6
Compression:
Stored size: 631 Bytes
Contents
#!/usr/bin/ruby #encoding=utf-8 require 'jfoundry/signer' module JFoundry module Signature module Version include JFoundry::Signer def generate_signature secret_key, method, req return sign(secret_key, string_to_sign(method, req)) end def string_to_sign method, req str = [ method.downcase, req['content-md5'], req['content-type'], req['date'], req['path'] ].join("\n") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems