mzsanford-oauth 0.3.2.2

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