pelle-oauth 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/lib/oauth/request_proxy/base.rb +0 -1
- data/lib/oauth/version.rb +1 -1
- data/test/test_consumer.rb +6 -6
- data/website/index.html +2 -2
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
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
|
+
|
5
|
+
== 0.2.6 2008-9-9 The lets RSA release
|
6
|
+
|
7
|
+
- Bill Kocik's fix for Ruby 1.8.7
|
1
8
|
- Fixed rsa verification, so you can actually create an OAuth server yourself now using Ruby and RSA
|
2
9
|
- Added better testing for RSA
|
3
10
|
- Fixed issue where token was being included for rsa signatures
|
data/lib/oauth/version.rb
CHANGED
data/test/test_consumer.rb
CHANGED
@@ -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
|
data/website/index.html
CHANGED
@@ -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.
|
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>,
|
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>
|