oauth 0.4.7 → 0.5.0
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.
- checksums.yaml +7 -0
- data/README.rdoc +8 -8
- data/lib/oauth.rb +1 -3
- data/lib/oauth/cli.rb +3 -3
- data/lib/oauth/client/helper.rb +4 -0
- data/lib/oauth/client/net_http.rb +9 -7
- data/lib/oauth/consumer.rb +9 -5
- data/lib/oauth/helper.rb +3 -3
- data/lib/oauth/request_proxy/action_controller_request.rb +26 -2
- data/lib/oauth/request_proxy/base.rb +1 -1
- data/lib/oauth/request_proxy/net_http.rb +1 -1
- data/lib/oauth/request_proxy/rest_client_request.rb +62 -0
- data/lib/oauth/request_proxy/typhoeus_request.rb +4 -3
- data/lib/oauth/signature/base.rb +9 -23
- data/lib/oauth/signature/hmac/sha1.rb +12 -4
- data/lib/oauth/signature/plaintext.rb +6 -0
- data/lib/oauth/signature/rsa/sha1.rb +7 -3
- data/lib/oauth/tokens/access_token.rb +12 -0
- data/lib/oauth/tokens/request_token.rb +5 -0
- data/lib/oauth/tokens/token.rb +1 -1
- data/lib/oauth/version.rb +3 -0
- data/test/cases/oauth_case.rb +2 -2
- data/test/integration/consumer_test.rb +13 -13
- data/test/test_access_token.rb +2 -2
- data/test/test_action_controller_request_proxy.rb +29 -5
- data/test/test_consumer.rb +9 -3
- data/test/test_curb_request_proxy.rb +1 -1
- data/test/test_em_http_client.rb +1 -1
- data/test/test_em_http_request_proxy.rb +1 -1
- data/test/test_helper.rb +8 -3
- data/test/test_hmac_sha1.rb +1 -1
- data/test/test_net_http_client.rb +7 -1
- data/test/test_net_http_request_proxy.rb +1 -1
- data/test/test_oauth_helper.rb +5 -5
- data/test/test_rack_request_proxy.rb +1 -1
- data/test/test_request_token.rb +9 -4
- data/test/test_rest_client_request_proxy.rb +81 -0
- data/test/test_rsa_sha1.rb +1 -1
- data/test/test_server.rb +7 -6
- data/test/test_signature.rb +6 -13
- data/test/test_signature_base.rb +6 -6
- data/test/test_signature_hmac_sha1.rb +40 -0
- data/test/test_signature_plain_text.rb +1 -1
- data/test/test_token.rb +1 -1
- data/test/test_typhoeus_request_proxy.rb +24 -3
- metadata +126 -74
- data/.gemtest +0 -0
- data/Gemfile +0 -16
- data/Gemfile.lock +0 -47
- data/HISTORY +0 -173
- data/Rakefile +0 -37
- data/examples/yql.rb +0 -44
- data/lib/digest/hmac.rb +0 -104
- data/lib/oauth/signature/hmac/base.rb +0 -15
- data/lib/oauth/signature/hmac/md5.rb +0 -8
- data/lib/oauth/signature/hmac/rmd160.rb +0 -8
- data/lib/oauth/signature/hmac/sha2.rb +0 -8
- data/lib/oauth/signature/md5.rb +0 -13
- data/lib/oauth/signature/sha1.rb +0 -13
- data/oauth.gemspec +0 -148
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -17
- data/test/keys/rsa.cert +0 -11
- data/test/keys/rsa.pem +0 -16
data/lib/oauth/signature/md5.rb
DELETED
data/lib/oauth/signature/sha1.rb
DELETED
data/oauth.gemspec
DELETED
@@ -1,148 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "oauth"
|
8
|
-
s.version = "0.4.7"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Pelle Braendgaard", "Blaine Cook", "Larry Halff", "Jesse Clark", "Jon Crosby", "Seth Fitzsimmons", "Matt Sanford", "Aaron Quint"]
|
12
|
-
s.date = "2012-09-04"
|
13
|
-
s.description = "OAuth Core Ruby implementation"
|
14
|
-
s.email = "oauth-ruby@googlegroups.com"
|
15
|
-
s.executables = ["oauth"]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"LICENSE",
|
18
|
-
"README.rdoc",
|
19
|
-
"TODO"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".gemtest",
|
23
|
-
"Gemfile",
|
24
|
-
"Gemfile.lock",
|
25
|
-
"HISTORY",
|
26
|
-
"LICENSE",
|
27
|
-
"README.rdoc",
|
28
|
-
"Rakefile",
|
29
|
-
"TODO",
|
30
|
-
"bin/oauth",
|
31
|
-
"examples/yql.rb",
|
32
|
-
"lib/digest/hmac.rb",
|
33
|
-
"lib/oauth.rb",
|
34
|
-
"lib/oauth/cli.rb",
|
35
|
-
"lib/oauth/client.rb",
|
36
|
-
"lib/oauth/client/action_controller_request.rb",
|
37
|
-
"lib/oauth/client/em_http.rb",
|
38
|
-
"lib/oauth/client/helper.rb",
|
39
|
-
"lib/oauth/client/net_http.rb",
|
40
|
-
"lib/oauth/consumer.rb",
|
41
|
-
"lib/oauth/core_ext.rb",
|
42
|
-
"lib/oauth/errors.rb",
|
43
|
-
"lib/oauth/errors/error.rb",
|
44
|
-
"lib/oauth/errors/problem.rb",
|
45
|
-
"lib/oauth/errors/unauthorized.rb",
|
46
|
-
"lib/oauth/helper.rb",
|
47
|
-
"lib/oauth/oauth.rb",
|
48
|
-
"lib/oauth/oauth_test_helper.rb",
|
49
|
-
"lib/oauth/request_proxy.rb",
|
50
|
-
"lib/oauth/request_proxy/action_controller_request.rb",
|
51
|
-
"lib/oauth/request_proxy/base.rb",
|
52
|
-
"lib/oauth/request_proxy/curb_request.rb",
|
53
|
-
"lib/oauth/request_proxy/em_http_request.rb",
|
54
|
-
"lib/oauth/request_proxy/jabber_request.rb",
|
55
|
-
"lib/oauth/request_proxy/mock_request.rb",
|
56
|
-
"lib/oauth/request_proxy/net_http.rb",
|
57
|
-
"lib/oauth/request_proxy/rack_request.rb",
|
58
|
-
"lib/oauth/request_proxy/typhoeus_request.rb",
|
59
|
-
"lib/oauth/server.rb",
|
60
|
-
"lib/oauth/signature.rb",
|
61
|
-
"lib/oauth/signature/base.rb",
|
62
|
-
"lib/oauth/signature/hmac/base.rb",
|
63
|
-
"lib/oauth/signature/hmac/md5.rb",
|
64
|
-
"lib/oauth/signature/hmac/rmd160.rb",
|
65
|
-
"lib/oauth/signature/hmac/sha1.rb",
|
66
|
-
"lib/oauth/signature/hmac/sha2.rb",
|
67
|
-
"lib/oauth/signature/md5.rb",
|
68
|
-
"lib/oauth/signature/plaintext.rb",
|
69
|
-
"lib/oauth/signature/rsa/sha1.rb",
|
70
|
-
"lib/oauth/signature/sha1.rb",
|
71
|
-
"lib/oauth/token.rb",
|
72
|
-
"lib/oauth/tokens/access_token.rb",
|
73
|
-
"lib/oauth/tokens/consumer_token.rb",
|
74
|
-
"lib/oauth/tokens/request_token.rb",
|
75
|
-
"lib/oauth/tokens/server_token.rb",
|
76
|
-
"lib/oauth/tokens/token.rb",
|
77
|
-
"oauth.gemspec",
|
78
|
-
"tasks/deployment.rake",
|
79
|
-
"tasks/environment.rake",
|
80
|
-
"tasks/website.rake",
|
81
|
-
"test/cases/oauth_case.rb",
|
82
|
-
"test/cases/spec/1_0-final/test_construct_request_url.rb",
|
83
|
-
"test/cases/spec/1_0-final/test_normalize_request_parameters.rb",
|
84
|
-
"test/cases/spec/1_0-final/test_parameter_encodings.rb",
|
85
|
-
"test/cases/spec/1_0-final/test_signature_base_strings.rb",
|
86
|
-
"test/integration/consumer_test.rb",
|
87
|
-
"test/keys/rsa.cert",
|
88
|
-
"test/keys/rsa.pem",
|
89
|
-
"test/test_access_token.rb",
|
90
|
-
"test/test_action_controller_request_proxy.rb",
|
91
|
-
"test/test_consumer.rb",
|
92
|
-
"test/test_curb_request_proxy.rb",
|
93
|
-
"test/test_em_http_client.rb",
|
94
|
-
"test/test_em_http_request_proxy.rb",
|
95
|
-
"test/test_helper.rb",
|
96
|
-
"test/test_hmac_sha1.rb",
|
97
|
-
"test/test_net_http_client.rb",
|
98
|
-
"test/test_net_http_request_proxy.rb",
|
99
|
-
"test/test_oauth_helper.rb",
|
100
|
-
"test/test_rack_request_proxy.rb",
|
101
|
-
"test/test_request_token.rb",
|
102
|
-
"test/test_rsa_sha1.rb",
|
103
|
-
"test/test_server.rb",
|
104
|
-
"test/test_signature.rb",
|
105
|
-
"test/test_signature_base.rb",
|
106
|
-
"test/test_signature_plain_text.rb",
|
107
|
-
"test/test_token.rb",
|
108
|
-
"test/test_typhoeus_request_proxy.rb"
|
109
|
-
]
|
110
|
-
s.require_paths = ["lib"]
|
111
|
-
s.rubyforge_project = "oauth"
|
112
|
-
s.rubygems_version = "1.8.23"
|
113
|
-
s.summary = "OAuth Core Ruby implementation"
|
114
|
-
|
115
|
-
if s.respond_to? :specification_version then
|
116
|
-
s.specification_version = 3
|
117
|
-
|
118
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
119
|
-
s.add_development_dependency(%q<rake>, [">= 0"])
|
120
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
121
|
-
s.add_development_dependency(%q<actionpack>, [">= 2.3.5"])
|
122
|
-
s.add_development_dependency(%q<rack>, [">= 1.0.0"])
|
123
|
-
s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
|
124
|
-
s.add_development_dependency(%q<typhoeus>, [">= 0.1.13"])
|
125
|
-
s.add_development_dependency(%q<em-http-request>, [">= 0.2.10"])
|
126
|
-
s.add_development_dependency(%q<curb>, [">= 0.6.6.0"])
|
127
|
-
else
|
128
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
129
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
130
|
-
s.add_dependency(%q<actionpack>, [">= 2.3.5"])
|
131
|
-
s.add_dependency(%q<rack>, [">= 1.0.0"])
|
132
|
-
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
133
|
-
s.add_dependency(%q<typhoeus>, [">= 0.1.13"])
|
134
|
-
s.add_dependency(%q<em-http-request>, [">= 0.2.10"])
|
135
|
-
s.add_dependency(%q<curb>, [">= 0.6.6.0"])
|
136
|
-
end
|
137
|
-
else
|
138
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
139
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
140
|
-
s.add_dependency(%q<actionpack>, [">= 2.3.5"])
|
141
|
-
s.add_dependency(%q<rack>, [">= 1.0.0"])
|
142
|
-
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
143
|
-
s.add_dependency(%q<typhoeus>, [">= 0.1.13"])
|
144
|
-
s.add_dependency(%q<em-http-request>, [">= 0.2.10"])
|
145
|
-
s.add_dependency(%q<curb>, [">= 0.6.6.0"])
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
data/tasks/deployment.rake
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
desc 'Release the website and new gem version'
|
2
|
-
task :deploy => [:check_version, :website, :release] do
|
3
|
-
puts "Remember to create SVN tag:"
|
4
|
-
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
5
|
-
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
6
|
-
puts "Suggested comment:"
|
7
|
-
puts "Tagging release #{CHANGES}"
|
8
|
-
end
|
9
|
-
|
10
|
-
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
11
|
-
task :local_deploy => [:website_generate, :install_gem]
|
12
|
-
|
13
|
-
task :check_version do
|
14
|
-
unless ENV['VERSION']
|
15
|
-
puts 'Must pass a VERSION=x.y.z release version'
|
16
|
-
exit
|
17
|
-
end
|
18
|
-
unless ENV['VERSION'] == VERS
|
19
|
-
puts "Please update your version.rb to match the release version, currently #{VERS}"
|
20
|
-
exit
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
|
25
|
-
task :install_gem_no_doc => [:clean, :package] do
|
26
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
|
27
|
-
end
|
28
|
-
|
29
|
-
namespace :manifest do
|
30
|
-
desc 'Recreate Manifest.txt to include ALL files'
|
31
|
-
task :refresh do
|
32
|
-
`rake check_manifest | patch -p0 > Manifest.txt`
|
33
|
-
end
|
34
|
-
end
|
data/tasks/environment.rake
DELETED
data/tasks/website.rake
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
desc 'Generate website files'
|
2
|
-
task :website_generate => :ruby_env do
|
3
|
-
(Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
|
4
|
-
sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
desc 'Upload website files to rubyforge'
|
9
|
-
task :website_upload do
|
10
|
-
host = "#{rubyforge_username}@rubyforge.org"
|
11
|
-
remote_dir = "/var/www/gforge-projects/#{PATH}/"
|
12
|
-
local_dir = 'website'
|
13
|
-
sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
|
14
|
-
end
|
15
|
-
|
16
|
-
desc 'Generate and upload website files'
|
17
|
-
task :website => [:website_generate, :website_upload, :publish_docs]
|
data/test/keys/rsa.cert
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIBpjCCAQ+gAwIBAgIBATANBgkqhkiG9w0BAQUFADAZMRcwFQYDVQQDDA5UZXN0
|
3
|
-
IFByaW5jaXBhbDAeFw03MDAxMDEwODAwMDBaFw0zODEyMzEwODAwMDBaMBkxFzAV
|
4
|
-
BgNVBAMMDlRlc3QgUHJpbmNpcGFsMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
|
5
|
-
gQC0YjCwIfYoprq/FQO6lb3asXrxLlJFuCvtinTF5p0GxvQGu5O3gYytUvtC2JlY
|
6
|
-
zypSRjVxwxrsuRcP3e641SdASwfrmzyvIgP08N4S0IFzEURkV1wp/IpH7kH41Etb
|
7
|
-
mUmrXSwfNZsnQRE5SYSO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