gregwebs-oauth 0.3.6.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 +102 -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 +378 -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 +85 -0
  14. data/lib/oauth/client/net_http.rb +103 -0
  15. data/lib/oauth/consumer.rb +354 -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 +78 -0
  21. data/lib/oauth/oauth.rb +11 -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 +61 -0
  25. data/lib/oauth/request_proxy/base.rb +166 -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 +68 -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 +40 -0
  32. data/lib/oauth/signature/base.rb +91 -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 +33 -0
  45. data/lib/oauth/tokens/request_token.rb +32 -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 +26 -0
  65. data/test/test_action_controller_request_proxy.rb +129 -0
  66. data/test/test_consumer.rb +362 -0
  67. data/test/test_helper.rb +14 -0
  68. data/test/test_hmac_sha1.rb +20 -0
  69. data/test/test_net_http_client.rb +185 -0
  70. data/test/test_net_http_request_proxy.rb +72 -0
  71. data/test/test_oauth_helper.rb +49 -0
  72. data/test/test_rack_request_proxy.rb +40 -0
  73. data/test/test_request_token.rb +51 -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 +217 -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,217 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gregwebs-oauth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.6.1
5
+ platform: ruby
6
+ authors:
7
+ - Pelle Braendgaard
8
+ - Blaine Cook
9
+ - Larry Halff
10
+ - Jesse Clark
11
+ - Jon Crosby
12
+ - Seth Fitzsimmons
13
+ - Matt Sanford
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2009-09-14 00:00:00 -07:00
19
+ default_executable: oauth
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: ruby-hmac
23
+ type: :runtime
24
+ version_requirement:
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.3.1
30
+ version:
31
+ - !ruby/object:Gem::Dependency
32
+ name: newgem
33
+ type: :development
34
+ version_requirement:
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 1.2.3
40
+ version:
41
+ - !ruby/object:Gem::Dependency
42
+ name: actionpack
43
+ type: :development
44
+ version_requirement:
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ version:
51
+ - !ruby/object:Gem::Dependency
52
+ name: rack
53
+ type: :development
54
+ version_requirement:
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ version:
61
+ - !ruby/object:Gem::Dependency
62
+ name: hoe
63
+ type: :development
64
+ version_requirement:
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 1.8.0
70
+ version:
71
+ description: OAuth Core Ruby implementation
72
+ email: oauth-ruby@googlegroups.com
73
+ executables:
74
+ - oauth
75
+ extensions: []
76
+
77
+ extra_rdoc_files:
78
+ - History.txt
79
+ - License.txt
80
+ - Manifest.txt
81
+ - README.rdoc
82
+ - website/index.txt
83
+ files:
84
+ - History.txt
85
+ - License.txt
86
+ - Manifest.txt
87
+ - README.rdoc
88
+ - Rakefile
89
+ - TODO
90
+ - bin/oauth
91
+ - examples/yql.rb
92
+ - lib/oauth.rb
93
+ - lib/oauth/oauth.rb
94
+ - lib/oauth/cli.rb
95
+ - lib/oauth/client.rb
96
+ - lib/oauth/client/action_controller_request.rb
97
+ - lib/oauth/client/helper.rb
98
+ - lib/oauth/client/net_http.rb
99
+ - lib/oauth/consumer.rb
100
+ - lib/oauth/errors.rb
101
+ - lib/oauth/errors/error.rb
102
+ - lib/oauth/errors/problem.rb
103
+ - lib/oauth/errors/unauthorized.rb
104
+ - lib/oauth/helper.rb
105
+ - lib/oauth/oauth_test_helper.rb
106
+ - lib/oauth/request_proxy.rb
107
+ - lib/oauth/request_proxy/action_controller_request.rb
108
+ - lib/oauth/request_proxy/base.rb
109
+ - lib/oauth/request_proxy/jabber_request.rb
110
+ - lib/oauth/request_proxy/mock_request.rb
111
+ - lib/oauth/request_proxy/net_http.rb
112
+ - lib/oauth/request_proxy/rack_request.rb
113
+ - lib/oauth/server.rb
114
+ - lib/oauth/signature.rb
115
+ - lib/oauth/signature/base.rb
116
+ - lib/oauth/signature/hmac/base.rb
117
+ - lib/oauth/signature/hmac/md5.rb
118
+ - lib/oauth/signature/hmac/rmd160.rb
119
+ - lib/oauth/signature/hmac/sha1.rb
120
+ - lib/oauth/signature/hmac/sha2.rb
121
+ - lib/oauth/signature/md5.rb
122
+ - lib/oauth/signature/plaintext.rb
123
+ - lib/oauth/signature/rsa/sha1.rb
124
+ - lib/oauth/signature/sha1.rb
125
+ - lib/oauth/token.rb
126
+ - lib/oauth/tokens/access_token.rb
127
+ - lib/oauth/tokens/consumer_token.rb
128
+ - lib/oauth/tokens/request_token.rb
129
+ - lib/oauth/tokens/server_token.rb
130
+ - lib/oauth/tokens/token.rb
131
+ - lib/oauth/version.rb
132
+ - oauth.gemspec
133
+ - script/destroy
134
+ - script/generate
135
+ - script/txt2html
136
+ - setup.rb
137
+ - tasks/deployment.rake
138
+ - tasks/environment.rake
139
+ - tasks/website.rake
140
+ - test/cases/oauth_case.rb
141
+ - test/cases/spec/1_0-final/test_construct_request_url.rb
142
+ - test/cases/spec/1_0-final/test_normalize_request_parameters.rb
143
+ - test/cases/spec/1_0-final/test_parameter_encodings.rb
144
+ - test/cases/spec/1_0-final/test_signature_base_strings.rb
145
+ - test/keys/rsa.cert
146
+ - test/keys/rsa.pem
147
+ - test/test_access_token.rb
148
+ - test/test_action_controller_request_proxy.rb
149
+ - test/test_consumer.rb
150
+ - test/test_helper.rb
151
+ - test/test_hmac_sha1.rb
152
+ - test/test_net_http_client.rb
153
+ - test/test_net_http_request_proxy.rb
154
+ - test/test_oauth_helper.rb
155
+ - test/test_rack_request_proxy.rb
156
+ - test/test_request_token.rb
157
+ - test/test_rsa_sha1.rb
158
+ - test/test_server.rb
159
+ - test/test_signature.rb
160
+ - test/test_signature_base.rb
161
+ - test/test_signature_plain_text.rb
162
+ - test/test_token.rb
163
+ - website/index.html
164
+ - website/index.txt
165
+ - website/javascripts/rounded_corners_lite.inc.js
166
+ - website/stylesheets/screen.css
167
+ - website/template.rhtml
168
+ has_rdoc: true
169
+ homepage: http://oauth.rubyforge.org
170
+ licenses: []
171
+
172
+ post_install_message:
173
+ rdoc_options:
174
+ - --main
175
+ - README.rdoc
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: "0"
183
+ version:
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: "0"
189
+ version:
190
+ requirements: []
191
+
192
+ rubyforge_project: oauth
193
+ rubygems_version: 1.3.5
194
+ signing_key:
195
+ specification_version: 2
196
+ summary: OAuth Core Ruby implementation
197
+ test_files:
198
+ - test/cases/spec/1_0-final/test_construct_request_url.rb
199
+ - test/cases/spec/1_0-final/test_normalize_request_parameters.rb
200
+ - test/cases/spec/1_0-final/test_parameter_encodings.rb
201
+ - test/cases/spec/1_0-final/test_signature_base_strings.rb
202
+ - test/test_access_token.rb
203
+ - test/test_action_controller_request_proxy.rb
204
+ - test/test_consumer.rb
205
+ - test/test_helper.rb
206
+ - test/test_hmac_sha1.rb
207
+ - test/test_net_http_client.rb
208
+ - test/test_net_http_request_proxy.rb
209
+ - test/test_oauth_helper.rb
210
+ - test/test_rack_request_proxy.rb
211
+ - test/test_request_token.rb
212
+ - test/test_rsa_sha1.rb
213
+ - test/test_server.rb
214
+ - test/test_signature.rb
215
+ - test/test_signature_base.rb
216
+ - test/test_signature_plain_text.rb
217
+ - test/test_token.rb