af-oauth 0.3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/History.txt +83 -0
  2. data/License.txt +20 -0
  3. data/Manifest.txt +84 -0
  4. data/README.rdoc +71 -0
  5. data/Rakefile +36 -0
  6. data/TODO +31 -0
  7. data/bin/oauth +5 -0
  8. data/examples/yql.rb +44 -0
  9. data/lib/oauth.rb +4 -0
  10. data/lib/oauth/cli.rb +300 -0
  11. data/lib/oauth/client.rb +4 -0
  12. data/lib/oauth/client/action_controller_request.rb +54 -0
  13. data/lib/oauth/client/helper.rb +81 -0
  14. data/lib/oauth/client/net_http.rb +94 -0
  15. data/lib/oauth/consumer.rb +297 -0
  16. data/lib/oauth/errors.rb +3 -0
  17. data/lib/oauth/errors/error.rb +4 -0
  18. data/lib/oauth/errors/problem.rb +14 -0
  19. data/lib/oauth/errors/unauthorized.rb +12 -0
  20. data/lib/oauth/helper.rb +77 -0
  21. data/lib/oauth/oauth.rb +7 -0
  22. data/lib/oauth/oauth_test_helper.rb +25 -0
  23. data/lib/oauth/request_proxy.rb +24 -0
  24. data/lib/oauth/request_proxy/action_controller_request.rb +63 -0
  25. data/lib/oauth/request_proxy/base.rb +159 -0
  26. data/lib/oauth/request_proxy/jabber_request.rb +41 -0
  27. data/lib/oauth/request_proxy/mock_request.rb +44 -0
  28. data/lib/oauth/request_proxy/net_http.rb +65 -0
  29. data/lib/oauth/request_proxy/rack_request.rb +40 -0
  30. data/lib/oauth/server.rb +66 -0
  31. data/lib/oauth/signature.rb +37 -0
  32. data/lib/oauth/signature/base.rb +99 -0
  33. data/lib/oauth/signature/hmac/base.rb +12 -0
  34. data/lib/oauth/signature/hmac/md5.rb +9 -0
  35. data/lib/oauth/signature/hmac/rmd160.rb +9 -0
  36. data/lib/oauth/signature/hmac/sha1.rb +9 -0
  37. data/lib/oauth/signature/hmac/sha2.rb +9 -0
  38. data/lib/oauth/signature/md5.rb +13 -0
  39. data/lib/oauth/signature/plaintext.rb +23 -0
  40. data/lib/oauth/signature/rsa/sha1.rb +45 -0
  41. data/lib/oauth/signature/sha1.rb +13 -0
  42. data/lib/oauth/token.rb +7 -0
  43. data/lib/oauth/tokens/access_token.rb +68 -0
  44. data/lib/oauth/tokens/consumer_token.rb +32 -0
  45. data/lib/oauth/tokens/request_token.rb +28 -0
  46. data/lib/oauth/tokens/server_token.rb +9 -0
  47. data/lib/oauth/tokens/token.rb +17 -0
  48. data/lib/oauth/version.rb +3 -0
  49. data/oauth.gemspec +49 -0
  50. data/script/destroy +14 -0
  51. data/script/generate +14 -0
  52. data/script/txt2html +74 -0
  53. data/setup.rb +1585 -0
  54. data/tasks/deployment.rake +34 -0
  55. data/tasks/environment.rake +7 -0
  56. data/tasks/website.rake +17 -0
  57. data/test/cases/oauth_case.rb +19 -0
  58. data/test/cases/spec/1_0-final/test_construct_request_url.rb +62 -0
  59. data/test/cases/spec/1_0-final/test_normalize_request_parameters.rb +88 -0
  60. data/test/cases/spec/1_0-final/test_parameter_encodings.rb +86 -0
  61. data/test/cases/spec/1_0-final/test_signature_base_strings.rb +77 -0
  62. data/test/keys/rsa.cert +11 -0
  63. data/test/keys/rsa.pem +16 -0
  64. data/test/test_access_token.rb +28 -0
  65. data/test/test_action_controller_request_proxy.rb +127 -0
  66. data/test/test_consumer.rb +327 -0
  67. data/test/test_helper.rb +10 -0
  68. data/test/test_hmac_sha1.rb +21 -0
  69. data/test/test_net_http_client.rb +187 -0
  70. data/test/test_net_http_request_proxy.rb +73 -0
  71. data/test/test_oauth_helper.rb +50 -0
  72. data/test/test_rack_request_proxy.rb +40 -0
  73. data/test/test_request_token.rb +53 -0
  74. data/test/test_rsa_sha1.rb +59 -0
  75. data/test/test_server.rb +40 -0
  76. data/test/test_signature.rb +19 -0
  77. data/test/test_signature_base.rb +32 -0
  78. data/test/test_signature_plain_text.rb +31 -0
  79. data/test/test_token.rb +14 -0
  80. data/website/index.html +87 -0
  81. data/website/index.txt +73 -0
  82. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  83. data/website/stylesheets/screen.css +138 -0
  84. data/website/template.rhtml +48 -0
  85. metadata +241 -0
@@ -0,0 +1,138 @@
1
+ body {
2
+ background-color: #E1D1F1;
3
+ font-family: "Georgia", sans-serif;
4
+ font-size: 16px;
5
+ line-height: 1.6em;
6
+ padding: 1.6em 0 0 0;
7
+ color: #333;
8
+ }
9
+ h1, h2, h3, h4, h5, h6 {
10
+ color: #444;
11
+ }
12
+ h1 {
13
+ font-family: sans-serif;
14
+ font-weight: normal;
15
+ font-size: 4em;
16
+ line-height: 0.8em;
17
+ letter-spacing: -0.1ex;
18
+ margin: 5px;
19
+ }
20
+ li {
21
+ padding: 0;
22
+ margin: 0;
23
+ list-style-type: square;
24
+ }
25
+ a {
26
+ color: #5E5AFF;
27
+ background-color: #DAC;
28
+ font-weight: normal;
29
+ text-decoration: underline;
30
+ }
31
+ blockquote {
32
+ font-size: 90%;
33
+ font-style: italic;
34
+ border-left: 1px solid #111;
35
+ padding-left: 1em;
36
+ }
37
+ .caps {
38
+ font-size: 80%;
39
+ }
40
+
41
+ #main {
42
+ width: 45em;
43
+ padding: 0;
44
+ margin: 0 auto;
45
+ }
46
+ .coda {
47
+ text-align: right;
48
+ color: #77f;
49
+ font-size: smaller;
50
+ }
51
+
52
+ table {
53
+ font-size: 90%;
54
+ line-height: 1.4em;
55
+ color: #ff8;
56
+ background-color: #111;
57
+ padding: 2px 10px 2px 10px;
58
+ border-style: dashed;
59
+ }
60
+
61
+ th {
62
+ color: #fff;
63
+ }
64
+
65
+ td {
66
+ padding: 2px 10px 2px 10px;
67
+ }
68
+
69
+ .success {
70
+ color: #0CC52B;
71
+ }
72
+
73
+ .failed {
74
+ color: #E90A1B;
75
+ }
76
+
77
+ .unknown {
78
+ color: #995000;
79
+ }
80
+ pre, code {
81
+ font-family: monospace;
82
+ font-size: 90%;
83
+ line-height: 1.4em;
84
+ color: #ff8;
85
+ background-color: #111;
86
+ padding: 2px 10px 2px 10px;
87
+ }
88
+ .comment { color: #aaa; font-style: italic; }
89
+ .keyword { color: #eff; font-weight: bold; }
90
+ .punct { color: #eee; font-weight: bold; }
91
+ .symbol { color: #0bb; }
92
+ .string { color: #6b4; }
93
+ .ident { color: #ff8; }
94
+ .constant { color: #66f; }
95
+ .regex { color: #ec6; }
96
+ .number { color: #F99; }
97
+ .expr { color: #227; }
98
+
99
+ #version {
100
+ float: right;
101
+ text-align: right;
102
+ font-family: sans-serif;
103
+ font-weight: normal;
104
+ background-color: #B3ABFF;
105
+ color: #141331;
106
+ padding: 15px 20px 10px 20px;
107
+ margin: 0 auto;
108
+ margin-top: 15px;
109
+ border: 3px solid #141331;
110
+ }
111
+
112
+ #version .numbers {
113
+ display: block;
114
+ font-size: 4em;
115
+ line-height: 0.8em;
116
+ letter-spacing: -0.1ex;
117
+ margin-bottom: 15px;
118
+ }
119
+
120
+ #version p {
121
+ text-decoration: none;
122
+ color: #141331;
123
+ background-color: #B3ABFF;
124
+ margin: 0;
125
+ padding: 0;
126
+ }
127
+
128
+ #version a {
129
+ text-decoration: none;
130
+ color: #141331;
131
+ background-color: #B3ABFF;
132
+ }
133
+
134
+ .clickable {
135
+ cursor: pointer;
136
+ cursor: hand;
137
+ }
138
+
@@ -0,0 +1,48 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <title>
8
+ <%= title %>
9
+ </title>
10
+ <script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
11
+ <style>
12
+
13
+ </style>
14
+ <script type="text/javascript">
15
+ window.onload = function() {
16
+ settings = {
17
+ tl: { radius: 10 },
18
+ tr: { radius: 10 },
19
+ bl: { radius: 10 },
20
+ br: { radius: 10 },
21
+ antiAlias: true,
22
+ autoPad: true,
23
+ validTags: ["div"]
24
+ }
25
+ var versionBox = new curvyCorners(settings, document.getElementById("version"));
26
+ versionBox.applyCornersToAll();
27
+ }
28
+ </script>
29
+ </head>
30
+ <body>
31
+ <div id="main">
32
+
33
+ <h1><%= title %></h1>
34
+ <div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
35
+ <p>Get Version</p>
36
+ <a href="<%= download %>" class="numbers"><%= version %></a>
37
+ </div>
38
+ <%= body %>
39
+ <p class="coda">
40
+ <a href="FIXME email">FIXME full name</a>, <%= modified.pretty %><br>
41
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
42
+ </p>
43
+ </div>
44
+
45
+ <!-- insert site tracking codes here, like Google Urchin -->
46
+
47
+ </body>
48
+ </html>
metadata ADDED
@@ -0,0 +1,241 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: af-oauth
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 4
9
+ - 1
10
+ version: 0.3.4.1
11
+ platform: ruby
12
+ authors:
13
+ - Pelle Braendgaard
14
+ - Blaine Cook
15
+ - Larry Halff
16
+ - Jesse Clark
17
+ - Jon Crosby
18
+ - Seth Fitzsimmons
19
+ - Matt Sanford
20
+ autorequire:
21
+ bindir: bin
22
+ cert_chain: []
23
+
24
+ date: 2009-05-06 00:00:00 -07:00
25
+ default_executable: oauth
26
+ dependencies:
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby-hmac
29
+ prerelease: false
30
+ requirement: &id001 !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ segments:
35
+ - 0
36
+ - 3
37
+ - 1
38
+ version: 0.3.1
39
+ type: :runtime
40
+ version_requirements: *id001
41
+ - !ruby/object:Gem::Dependency
42
+ name: newgem
43
+ prerelease: false
44
+ requirement: &id002 !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ segments:
49
+ - 1
50
+ - 2
51
+ - 3
52
+ version: 1.2.3
53
+ type: :development
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
56
+ name: actionpack
57
+ prerelease: false
58
+ requirement: &id003 !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ type: :development
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: rack
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ type: :development
78
+ version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
80
+ name: hoe
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ segments:
87
+ - 1
88
+ - 8
89
+ - 0
90
+ version: 1.8.0
91
+ type: :development
92
+ version_requirements: *id005
93
+ description: OAuth Core Ruby implementation
94
+ email: oauth-ruby@googlegroups.com
95
+ executables:
96
+ - oauth
97
+ extensions: []
98
+
99
+ extra_rdoc_files:
100
+ - History.txt
101
+ - License.txt
102
+ - Manifest.txt
103
+ - README.rdoc
104
+ - website/index.txt
105
+ files:
106
+ - History.txt
107
+ - License.txt
108
+ - Manifest.txt
109
+ - README.rdoc
110
+ - Rakefile
111
+ - TODO
112
+ - bin/oauth
113
+ - examples/yql.rb
114
+ - lib/oauth.rb
115
+ - lib/oauth/oauth.rb
116
+ - lib/oauth/cli.rb
117
+ - lib/oauth/client.rb
118
+ - lib/oauth/client/action_controller_request.rb
119
+ - lib/oauth/client/helper.rb
120
+ - lib/oauth/client/net_http.rb
121
+ - lib/oauth/consumer.rb
122
+ - lib/oauth/errors.rb
123
+ - lib/oauth/errors/error.rb
124
+ - lib/oauth/errors/problem.rb
125
+ - lib/oauth/errors/unauthorized.rb
126
+ - lib/oauth/helper.rb
127
+ - lib/oauth/oauth_test_helper.rb
128
+ - lib/oauth/request_proxy.rb
129
+ - lib/oauth/request_proxy/action_controller_request.rb
130
+ - lib/oauth/request_proxy/base.rb
131
+ - lib/oauth/request_proxy/jabber_request.rb
132
+ - lib/oauth/request_proxy/mock_request.rb
133
+ - lib/oauth/request_proxy/net_http.rb
134
+ - lib/oauth/request_proxy/rack_request.rb
135
+ - lib/oauth/server.rb
136
+ - lib/oauth/signature.rb
137
+ - lib/oauth/signature/base.rb
138
+ - lib/oauth/signature/hmac/base.rb
139
+ - lib/oauth/signature/hmac/md5.rb
140
+ - lib/oauth/signature/hmac/rmd160.rb
141
+ - lib/oauth/signature/hmac/sha1.rb
142
+ - lib/oauth/signature/hmac/sha2.rb
143
+ - lib/oauth/signature/md5.rb
144
+ - lib/oauth/signature/plaintext.rb
145
+ - lib/oauth/signature/rsa/sha1.rb
146
+ - lib/oauth/signature/sha1.rb
147
+ - lib/oauth/token.rb
148
+ - lib/oauth/tokens/access_token.rb
149
+ - lib/oauth/tokens/consumer_token.rb
150
+ - lib/oauth/tokens/request_token.rb
151
+ - lib/oauth/tokens/server_token.rb
152
+ - lib/oauth/tokens/token.rb
153
+ - lib/oauth/version.rb
154
+ - oauth.gemspec
155
+ - script/destroy
156
+ - script/generate
157
+ - script/txt2html
158
+ - setup.rb
159
+ - tasks/deployment.rake
160
+ - tasks/environment.rake
161
+ - tasks/website.rake
162
+ - test/cases/oauth_case.rb
163
+ - test/cases/spec/1_0-final/test_construct_request_url.rb
164
+ - test/cases/spec/1_0-final/test_normalize_request_parameters.rb
165
+ - test/cases/spec/1_0-final/test_parameter_encodings.rb
166
+ - test/cases/spec/1_0-final/test_signature_base_strings.rb
167
+ - test/keys/rsa.cert
168
+ - test/keys/rsa.pem
169
+ - test/test_access_token.rb
170
+ - test/test_action_controller_request_proxy.rb
171
+ - test/test_consumer.rb
172
+ - test/test_helper.rb
173
+ - test/test_hmac_sha1.rb
174
+ - test/test_net_http_client.rb
175
+ - test/test_net_http_request_proxy.rb
176
+ - test/test_oauth_helper.rb
177
+ - test/test_rack_request_proxy.rb
178
+ - test/test_request_token.rb
179
+ - test/test_rsa_sha1.rb
180
+ - test/test_server.rb
181
+ - test/test_signature.rb
182
+ - test/test_signature_base.rb
183
+ - test/test_signature_plain_text.rb
184
+ - test/test_token.rb
185
+ - website/index.html
186
+ - website/index.txt
187
+ - website/javascripts/rounded_corners_lite.inc.js
188
+ - website/stylesheets/screen.css
189
+ - website/template.rhtml
190
+ has_rdoc: true
191
+ homepage: http://oauth.rubyforge.org
192
+ licenses: []
193
+
194
+ post_install_message:
195
+ rdoc_options:
196
+ - --main
197
+ - README.rdoc
198
+ require_paths:
199
+ - lib
200
+ required_ruby_version: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ segments:
205
+ - 0
206
+ version: "0"
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ segments:
212
+ - 0
213
+ version: "0"
214
+ requirements: []
215
+
216
+ rubyforge_project: oauth
217
+ rubygems_version: 1.3.6
218
+ signing_key:
219
+ specification_version: 2
220
+ summary: OAuth Core Ruby implementation
221
+ test_files:
222
+ - test/cases/spec/1_0-final/test_construct_request_url.rb
223
+ - test/cases/spec/1_0-final/test_normalize_request_parameters.rb
224
+ - test/cases/spec/1_0-final/test_parameter_encodings.rb
225
+ - test/cases/spec/1_0-final/test_signature_base_strings.rb
226
+ - test/test_access_token.rb
227
+ - test/test_action_controller_request_proxy.rb
228
+ - test/test_consumer.rb
229
+ - test/test_helper.rb
230
+ - test/test_hmac_sha1.rb
231
+ - test/test_net_http_client.rb
232
+ - test/test_net_http_request_proxy.rb
233
+ - test/test_oauth_helper.rb
234
+ - test/test_rack_request_proxy.rb
235
+ - test/test_request_token.rb
236
+ - test/test_rsa_sha1.rb
237
+ - test/test_server.rb
238
+ - test/test_signature.rb
239
+ - test/test_signature_base.rb
240
+ - test/test_signature_plain_text.rb
241
+ - test/test_token.rb