lib/hmac_auth.rb in hmac_auth-0.1.2 vs lib/hmac_auth.rb in hmac_auth-0.1.3
- old
+ new
@@ -9,17 +9,20 @@
require 'hmac_auth/signature'
module HMACAuth
mattr_accessor :secret,
:reject_keys,
- :valid_for
+ :valid_for,
+ :keep_values_type
# The shared secret.
self.secret = nil
# Keys to ignore when signing/verifying.
self.reject_keys = %w(action controller format)
# Time the signature is valid when verifying
self.valid_for = 15.minutes
+ # Keep or not the values type when signing
+ self.keep_values_type = false
end