twiliolib 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +1 -1
- data/lib/twiliolib.rb +1 -3
- metadata +3 -3
data/README.markdown
CHANGED
data/lib/twiliolib.rb
CHANGED
|
@@ -213,8 +213,6 @@ module Twilio
|
|
|
213
213
|
opts[:builder] ||= Builder::XmlMarkup.new(:indent => opts[:indent])
|
|
214
214
|
b = opts[:builder]
|
|
215
215
|
attrs = {}
|
|
216
|
-
#attributes.sort! {|a,b| a.to_s <=> b.to_s}
|
|
217
|
-
#attributes.each {|a| a.to_sym}
|
|
218
216
|
attributes.each {|a| attrs[a] = send(a) unless send(a).nil? } unless attributes.nil?
|
|
219
217
|
|
|
220
218
|
if @children and @body.nil?
|
|
@@ -384,7 +382,7 @@ module Twilio
|
|
|
384
382
|
data = data + pkey[0]+pkey[1]
|
|
385
383
|
end
|
|
386
384
|
digest = OpenSSL::Digest::Digest.new('sha1')
|
|
387
|
-
expected = Base64.encode64(OpenSSL::HMAC.digest(digest, @
|
|
385
|
+
expected = Base64.encode64(OpenSSL::HMAC.digest(digest, @token, data)).strip
|
|
388
386
|
return expected == signature
|
|
389
387
|
end
|
|
390
388
|
end
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 2
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 2.0.
|
|
8
|
+
- 5
|
|
9
|
+
version: 2.0.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Twilio
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-05-22 00:00:00 -07:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|