Sha256: 669f7fab5bfad189d4c36896e57bee0b9d07fbe39b687e51db1a5a392c499f04
Contents?: true
Size: 447 Bytes
Versions: 3
Compression:
Stored size: 447 Bytes
Contents
require 'wechat/core' require 'wechat/validation/version' require 'wechat/validation/signature' module Wechat module Validation def self.sign(nonce, timestamp, token) actual_signature = Digest::SHA1.hexdigest [ nonce, timestamp, token ].sort.join('') end class << self deprecate sign: :'Wechat::Validation::Signature.create', deprecator: ActiveSupport::Deprecation.new('1.0', 'wechat-validation') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wechat-validation-1.1 | lib/wechat/validation.rb |
wechat-validation-1.0 | lib/wechat/validation.rb |
wechat-validation-0.2.1 | lib/wechat/validation.rb |