oauth 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of oauth might be problematic. Click here for more details.

@@ -1,3 +1,7 @@
1
+ == 0.2.7 2008-9-10 The lets fix the last release release
2
+
3
+ There was an error in the RSA requests using oauth tokens. Thanks to Philip Lipu Tsai for noticing this.
4
+
1
5
  == 0.2.6 2008-9-9 The lets RSA release
2
6
 
3
7
  - Bill Kocik's fix for Ruby 1.8.7
@@ -24,7 +24,6 @@ module OAuth::RequestProxy
24
24
  def parameters_for_signature
25
25
  p = parameters.dup
26
26
  p.delete("oauth_signature")
27
- p.delete("oauth_token") if signature_method=='RSA-SHA1'
28
27
  p
29
28
  end
30
29
 
@@ -2,7 +2,7 @@ module Oauth #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -99,8 +99,8 @@ class ConsumerTest < Test::Unit::TestCase
99
99
  token = OAuth::ConsumerToken.new(consumer, 'token_411a7f', '3196ffd991c8ebdb')
100
100
  token.sign!(request, {:nonce => @nonce, :timestamp => @timestamp})
101
101
 
102
- assert_no_match /oauth_signature_method="HMAC-SHA1"/, request['authorization']
103
- assert_match /oauth_signature_method="PLAINTEXT"/, request['authorization']
102
+ assert_no_match( /oauth_signature_method="HMAC-SHA1"/, request['authorization'])
103
+ assert_match( /oauth_signature_method="PLAINTEXT"/, request['authorization'])
104
104
  end
105
105
 
106
106
  def test_that_setting_signature_method_on_consumer_effects_signature_base_string
@@ -112,8 +112,8 @@ class ConsumerTest < Test::Unit::TestCase
112
112
  request = Net::HTTP::Get.new('/')
113
113
  signature_base_string = consumer.signature_base_string(request)
114
114
 
115
- assert_no_match /HMAC-SHA1/, signature_base_string
116
- assert_equal "#{consumer.secret}%26", signature_base_string
115
+ assert_no_match( /HMAC-SHA1/, signature_base_string)
116
+ assert_equal( "#{consumer.secret}%26", signature_base_string)
117
117
  end
118
118
 
119
119
  def test_that_plaintext_signature_works
@@ -271,8 +271,8 @@ class ConsumerTest < Test::Unit::TestCase
271
271
 
272
272
  # Because this is a POST request, create_http_request should take the first element of *arguments
273
273
  # and turn it into URL-encoded data in the body of the POST.
274
- assert_match /^<- "scope=http%3a%2f%2fwww.google.com%2fcalendar%2ffeeds%20http%3a%2f%2fpicasaweb.google.com%2fdata"/,
275
- debug
274
+ assert_match( /^<- "scope=http%3a%2f%2fwww.google.com%2fcalendar%2ffeeds%20http%3a%2f%2fpicasaweb.google.com%2fdata"/,
275
+ debug)
276
276
  end
277
277
 
278
278
  protected
@@ -5,7 +5,7 @@ require 'oauth/signature/rsa/sha1'
5
5
  class TestSignatureRsaSha1 < Test::Unit::TestCase
6
6
 
7
7
  def setup
8
- @request = Net::HTTP::Get.new('/photos?file=vacaction.jpg&size=original&oauth_version=1.0&oauth_consumer_key=dpf43f3p2l4k3l03&oauth_token=nnch734d00sl2jdk&oauth_timestamp=1196666512&oauth_nonce=13917289812797014437&oauth_signature_method=RSA-SHA1')
8
+ @request = Net::HTTP::Get.new('/photos?file=vacaction.jpg&size=original&oauth_version=1.0&oauth_consumer_key=dpf43f3p2l4k3l03&oauth_timestamp=1196666512&oauth_nonce=13917289812797014437&oauth_signature_method=RSA-SHA1')
9
9
 
10
10
  @consumer = OAuth::Consumer.new('dpf43f3p2l4k3l03', OpenSSL::PKey::RSA.new(IO.read(File.dirname(__FILE__) + "/keys/rsa.pem")))
11
11
 
@@ -33,7 +33,7 @@
33
33
  <h1>Ruby OAuth GEM</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/oauth"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/oauth" class="numbers">0.2.5</a>
36
+ <a href="http://rubyforge.org/projects/oauth" class="numbers">0.2.6</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
  <p>This is a RubyGem for implementing both OAuth clients and servers in Ruby applications.</p>
@@ -76,7 +76,7 @@ redirect_to @request_token.authorize_url</code></pre>
76
76
  <h2>Contact</h2>
77
77
  <p>Comments are welcome. Send an email to <a href="mailto:pelleb@gmail.com">Pelle Braendgaard</a> email via the <a href="http://groups.google.com/group/oauth-ruby">OAuth Ruby mailing list</a></p>
78
78
  <p class="coda">
79
- <a href="FIXME email">FIXME full name</a>, 8th September 2008<br>
79
+ <a href="FIXME email">FIXME full name</a>, 9th September 2008<br>
80
80
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
81
81
  </p>
82
82
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pelle Braendgaard
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2008-09-09 00:00:00 -07:00
17
+ date: 2008-09-10 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency