rainforest_auth 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rainforest/auth.rb +2 -2
- metadata +1 -1
data/lib/rainforest/auth.rb
CHANGED
@@ -18,12 +18,12 @@ class RainforestAuth
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# Return a signature for a command and specified options
|
21
|
-
def sign command, options
|
21
|
+
def sign command, options = nil
|
22
22
|
OpenSSL::HMAC.hexdigest(digest, @key, merge_data(command, options))
|
23
23
|
end
|
24
24
|
|
25
25
|
# Verify a digest vs command and options
|
26
|
-
def verify digest, command, options
|
26
|
+
def verify digest, command, options = nil
|
27
27
|
digest == sign(command, options)
|
28
28
|
end
|
29
29
|
|