typhoauth 0.3.6.1

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