Sha256: 81c718d6c2a69b4f252af134fd32a59a86a36b9af0d7e104be78832560835d31
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
require 'digest/md5' require 'active_support' require 'active_support/core_ext' module FakeBraintree module Helpers def gzip(content) ActiveSupport::Gzip.compress(content) end def gzipped_response(status_code, uncompressed_content) [status_code, { "Content-Encoding" => "gzip" }, gzip(uncompressed_content)] end def md5(content) Digest::MD5.hexdigest(content) end def create_id md5("#{@merchant_id}#{Time.now.to_f}") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fake_braintree-0.1.1 | lib/fake_braintree/helpers.rb |
fake_braintree-0.1.0 | lib/fake_braintree/helpers.rb |
fake_braintree-0.0.6 | lib/fake_braintree/helpers.rb |