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.
- data/History.txt +4 -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/test/test_rsa_sha1.rb +1 -1
- data/website/index.html +2 -2
- metadata +2 -2
data/History.txt
CHANGED
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/test/test_rsa_sha1.rb
CHANGED
@@ -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&
|
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
|
|
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>
|
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.
|
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-
|
17
|
+
date: 2008-09-10 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|