trails 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/trails/twilio/account.rb +2 -8
- data/lib/trails.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -31,14 +31,8 @@ module Trails
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def verify_caller( request )
|
34
|
-
# TODO:
|
35
|
-
|
36
|
-
base_string += request.post_parameters.
|
37
|
-
sort{ |a,b| a.first.to_s <=> b.first.to_s }.
|
38
|
-
flatten.join if( :post == request.method.to_sym )
|
39
|
-
|
40
|
-
digest = OpenSSL::Digest::Digest.new('sha1')
|
41
|
-
expected = Base64.encode64( OpenSSL::HMAC.digest(digest, @sid, base_string) ).strip
|
34
|
+
# TODO: check caller credentials here. :)
|
35
|
+
return true
|
42
36
|
end
|
43
37
|
|
44
38
|
# Make outgoing calls.
|
data/lib/trails.rb
CHANGED