twiliolib 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +1 -1
  2. data/lib/twiliolib.rb +1 -3
  3. metadata +3 -3
data/README.markdown CHANGED
@@ -7,7 +7,7 @@ and much more. See http://www.twilio.com/docs for more information.
7
7
 
8
8
  ### Gemcutter
9
9
 
10
- $ sudo gem install twiliolib -s http://gemcutter.org
10
+ $ sudo gem install twiliolib
11
11
 
12
12
  ### Manual Installation
13
13
  To use the rake command to build the gem and
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, @id, data)).strip
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
- - 4
9
- version: 2.0.4
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-03-11 00:00:00 -08:00
17
+ date: 2010-05-22 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency