oauth-plugin 0.4.0.pre1 → 0.4.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -1
- data/README.rdoc +14 -4
- data/VERSION +1 -1
- data/lib/generators/active_record/oauth_consumer_generator.rb +1 -1
- data/oauth-plugin.gemspec +163 -165
- metadata +5 -10
- data/.gitignore +0 -5
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -20,15 +20,25 @@ http://mojodna.net/2009/05/20/an-idiots-guide-to-oauth-10a.html
|
|
20
20
|
|
21
21
|
== Requirements
|
22
22
|
|
23
|
-
You need to install the oauth gem (0.4.
|
23
|
+
You need to install the oauth gem (0.4.4) which is the core OAuth ruby library. It will likely NOT work on any previous version of the gem.
|
24
24
|
|
25
|
-
|
25
|
+
gem install oauth
|
26
26
|
|
27
|
-
== Installation
|
27
|
+
== Installation (Rails 3.0)
|
28
|
+
|
29
|
+
Add the plugin to your Gemfile:
|
30
|
+
|
31
|
+
gem "oauth-plugin", ">=0.4.0.pre1"
|
32
|
+
|
33
|
+
And install it:
|
34
|
+
|
35
|
+
bundle install
|
36
|
+
|
37
|
+
== Installation (Rails 2.x)
|
28
38
|
|
29
39
|
The plugin can now be installed as an gem from github, which is the easiest way to keep it up to date.
|
30
40
|
|
31
|
-
|
41
|
+
gem install oauth-plugin --pre
|
32
42
|
|
33
43
|
You should add the following in the gem dependency section of environment.rb
|
34
44
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.0.
|
1
|
+
0.4.0.pre2
|
@@ -2,7 +2,7 @@ require 'rails/generators/active_record'
|
|
2
2
|
|
3
3
|
module ActiveRecord
|
4
4
|
module Generators
|
5
|
-
class
|
5
|
+
class OauthConsumerGenerator < Rails::Generators::Base
|
6
6
|
include Rails::Generators::Migration
|
7
7
|
|
8
8
|
source_root File.expand_path('../oauth_consumer_templates', __FILE__)
|
data/oauth-plugin.gemspec
CHANGED
@@ -1,185 +1,183 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{oauth-plugin}
|
8
|
-
s.version = "0.4.0.
|
8
|
+
s.version = "0.4.0.pre2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Pelle Braendgaard"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-06}
|
13
13
|
s.description = %q{Rails plugin for implementing an OAuth Provider or Consumer}
|
14
14
|
s.email = %q{oauth-ruby@googlegroups.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
"uninstall.rb"
|
19
|
+
"CHANGELOG",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"README.rdoc",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"generators/oauth_consumer/USAGE",
|
25
|
+
"generators/oauth_consumer/oauth_consumer_generator.rb",
|
26
|
+
"generators/oauth_consumer/templates/consumer_token.rb",
|
27
|
+
"generators/oauth_consumer/templates/controller.rb",
|
28
|
+
"generators/oauth_consumer/templates/index.html.erb",
|
29
|
+
"generators/oauth_consumer/templates/index.html.haml",
|
30
|
+
"generators/oauth_consumer/templates/migration.rb",
|
31
|
+
"generators/oauth_consumer/templates/oauth_config.rb",
|
32
|
+
"generators/oauth_consumer/templates/show.html.erb",
|
33
|
+
"generators/oauth_consumer/templates/show.html.haml",
|
34
|
+
"generators/oauth_provider/USAGE",
|
35
|
+
"generators/oauth_provider/lib/insert_routes.rb",
|
36
|
+
"generators/oauth_provider/oauth_provider_generator.rb",
|
37
|
+
"generators/oauth_provider/templates/_form.html.erb",
|
38
|
+
"generators/oauth_provider/templates/_form.html.haml",
|
39
|
+
"generators/oauth_provider/templates/access_token.rb",
|
40
|
+
"generators/oauth_provider/templates/authorize.html.erb",
|
41
|
+
"generators/oauth_provider/templates/authorize.html.haml",
|
42
|
+
"generators/oauth_provider/templates/authorize_failure.html.erb",
|
43
|
+
"generators/oauth_provider/templates/authorize_failure.html.haml",
|
44
|
+
"generators/oauth_provider/templates/authorize_success.html.erb",
|
45
|
+
"generators/oauth_provider/templates/authorize_success.html.haml",
|
46
|
+
"generators/oauth_provider/templates/client_application.rb",
|
47
|
+
"generators/oauth_provider/templates/client_application_spec.rb",
|
48
|
+
"generators/oauth_provider/templates/client_application_test.rb",
|
49
|
+
"generators/oauth_provider/templates/client_applications.yml",
|
50
|
+
"generators/oauth_provider/templates/clients_controller.rb",
|
51
|
+
"generators/oauth_provider/templates/clients_controller_spec.rb",
|
52
|
+
"generators/oauth_provider/templates/clients_controller_test.rb",
|
53
|
+
"generators/oauth_provider/templates/controller.rb",
|
54
|
+
"generators/oauth_provider/templates/controller_spec.rb",
|
55
|
+
"generators/oauth_provider/templates/controller_spec_helper.rb",
|
56
|
+
"generators/oauth_provider/templates/controller_test.rb",
|
57
|
+
"generators/oauth_provider/templates/controller_test_helper.rb",
|
58
|
+
"generators/oauth_provider/templates/edit.html.erb",
|
59
|
+
"generators/oauth_provider/templates/edit.html.haml",
|
60
|
+
"generators/oauth_provider/templates/index.html.erb",
|
61
|
+
"generators/oauth_provider/templates/index.html.haml",
|
62
|
+
"generators/oauth_provider/templates/migration.rb",
|
63
|
+
"generators/oauth_provider/templates/new.html.erb",
|
64
|
+
"generators/oauth_provider/templates/new.html.haml",
|
65
|
+
"generators/oauth_provider/templates/oauth2_authorize.html.erb",
|
66
|
+
"generators/oauth_provider/templates/oauth2_authorize.html.haml",
|
67
|
+
"generators/oauth_provider/templates/oauth2_token.rb",
|
68
|
+
"generators/oauth_provider/templates/oauth2_token_spec.rb",
|
69
|
+
"generators/oauth_provider/templates/oauth2_verifier.rb",
|
70
|
+
"generators/oauth_provider/templates/oauth2_verifier_spec.rb",
|
71
|
+
"generators/oauth_provider/templates/oauth_nonce.rb",
|
72
|
+
"generators/oauth_provider/templates/oauth_nonce_spec.rb",
|
73
|
+
"generators/oauth_provider/templates/oauth_nonce_test.rb",
|
74
|
+
"generators/oauth_provider/templates/oauth_nonces.yml",
|
75
|
+
"generators/oauth_provider/templates/oauth_token.rb",
|
76
|
+
"generators/oauth_provider/templates/oauth_token_spec.rb",
|
77
|
+
"generators/oauth_provider/templates/oauth_token_test.rb",
|
78
|
+
"generators/oauth_provider/templates/oauth_tokens.yml",
|
79
|
+
"generators/oauth_provider/templates/request_token.rb",
|
80
|
+
"generators/oauth_provider/templates/show.html.erb",
|
81
|
+
"generators/oauth_provider/templates/show.html.haml",
|
82
|
+
"init.rb",
|
83
|
+
"install.rb",
|
84
|
+
"lib/generators/active_record/oauth_consumer_generator.rb",
|
85
|
+
"lib/generators/active_record/oauth_consumer_templates/consumer_token.rb",
|
86
|
+
"lib/generators/active_record/oauth_consumer_templates/migration.rb",
|
87
|
+
"lib/generators/active_record/oauth_provider_generator.rb",
|
88
|
+
"lib/generators/active_record/oauth_provider_templates/access_token.rb",
|
89
|
+
"lib/generators/active_record/oauth_provider_templates/client_application.rb",
|
90
|
+
"lib/generators/active_record/oauth_provider_templates/migration.rb",
|
91
|
+
"lib/generators/active_record/oauth_provider_templates/oauth2_token.rb",
|
92
|
+
"lib/generators/active_record/oauth_provider_templates/oauth2_verifier.rb",
|
93
|
+
"lib/generators/active_record/oauth_provider_templates/oauth_nonce.rb",
|
94
|
+
"lib/generators/active_record/oauth_provider_templates/oauth_token.rb",
|
95
|
+
"lib/generators/active_record/oauth_provider_templates/request_token.rb",
|
96
|
+
"lib/generators/erb/oauth_consumer_generator.rb",
|
97
|
+
"lib/generators/erb/oauth_consumer_templates/index.html.erb",
|
98
|
+
"lib/generators/erb/oauth_consumer_templates/show.html.erb",
|
99
|
+
"lib/generators/erb/oauth_provider_generator.rb",
|
100
|
+
"lib/generators/erb/oauth_provider_templates/_form.html.erb",
|
101
|
+
"lib/generators/erb/oauth_provider_templates/authorize.html.erb",
|
102
|
+
"lib/generators/erb/oauth_provider_templates/authorize_failure.html.erb",
|
103
|
+
"lib/generators/erb/oauth_provider_templates/authorize_success.html.erb",
|
104
|
+
"lib/generators/erb/oauth_provider_templates/edit.html.erb",
|
105
|
+
"lib/generators/erb/oauth_provider_templates/index.html.erb",
|
106
|
+
"lib/generators/erb/oauth_provider_templates/new.html.erb",
|
107
|
+
"lib/generators/erb/oauth_provider_templates/oauth2_authorize.html.erb",
|
108
|
+
"lib/generators/erb/oauth_provider_templates/show.html.erb",
|
109
|
+
"lib/generators/haml/oauth_consumer_generator.rb",
|
110
|
+
"lib/generators/haml/oauth_consumer_templates/index.html.haml",
|
111
|
+
"lib/generators/haml/oauth_consumer_templates/show.html.haml",
|
112
|
+
"lib/generators/haml/oauth_provider_generator.rb",
|
113
|
+
"lib/generators/haml/oauth_provider_templates/_form.html.haml",
|
114
|
+
"lib/generators/haml/oauth_provider_templates/authorize.html.haml",
|
115
|
+
"lib/generators/haml/oauth_provider_templates/authorize_failure.html.haml",
|
116
|
+
"lib/generators/haml/oauth_provider_templates/authorize_success.html.haml",
|
117
|
+
"lib/generators/haml/oauth_provider_templates/edit.html.haml",
|
118
|
+
"lib/generators/haml/oauth_provider_templates/index.html.haml",
|
119
|
+
"lib/generators/haml/oauth_provider_templates/new.html.haml",
|
120
|
+
"lib/generators/haml/oauth_provider_templates/oauth2_authorize.html.haml",
|
121
|
+
"lib/generators/haml/oauth_provider_templates/show.html.haml",
|
122
|
+
"lib/generators/mongoid/oauth_consumer_generator.rb",
|
123
|
+
"lib/generators/mongoid/oauth_consumer_templates/consumer_token.rb",
|
124
|
+
"lib/generators/mongoid/oauth_provider_generator.rb",
|
125
|
+
"lib/generators/mongoid/oauth_provider_templates/access_token.rb",
|
126
|
+
"lib/generators/mongoid/oauth_provider_templates/client_application.rb",
|
127
|
+
"lib/generators/mongoid/oauth_provider_templates/oauth2_token.rb",
|
128
|
+
"lib/generators/mongoid/oauth_provider_templates/oauth2_verifier.rb",
|
129
|
+
"lib/generators/mongoid/oauth_provider_templates/oauth_nonce.rb",
|
130
|
+
"lib/generators/mongoid/oauth_provider_templates/oauth_token.rb",
|
131
|
+
"lib/generators/mongoid/oauth_provider_templates/request_token.rb",
|
132
|
+
"lib/generators/oauth_consumer/USAGE",
|
133
|
+
"lib/generators/oauth_consumer/oauth_consumer_generator.rb",
|
134
|
+
"lib/generators/oauth_consumer/templates/controller.rb",
|
135
|
+
"lib/generators/oauth_consumer/templates/oauth_config.rb",
|
136
|
+
"lib/generators/oauth_inflections.rb",
|
137
|
+
"lib/generators/oauth_plugin.rb",
|
138
|
+
"lib/generators/oauth_provider/USAGE",
|
139
|
+
"lib/generators/oauth_provider/oauth_provider_generator.rb",
|
140
|
+
"lib/generators/oauth_provider/templates/clients_controller.rb",
|
141
|
+
"lib/generators/oauth_provider/templates/controller.rb",
|
142
|
+
"lib/generators/rspec/oauth_provider_generator.rb",
|
143
|
+
"lib/generators/rspec/templates/client_application_spec.rb",
|
144
|
+
"lib/generators/rspec/templates/client_applications.yml",
|
145
|
+
"lib/generators/rspec/templates/clients_controller_spec.rb",
|
146
|
+
"lib/generators/rspec/templates/controller_spec.rb",
|
147
|
+
"lib/generators/rspec/templates/controller_spec_helper.rb",
|
148
|
+
"lib/generators/rspec/templates/oauth2_token_spec.rb",
|
149
|
+
"lib/generators/rspec/templates/oauth2_verifier_spec.rb",
|
150
|
+
"lib/generators/rspec/templates/oauth_nonce_spec.rb",
|
151
|
+
"lib/generators/rspec/templates/oauth_nonces.yml",
|
152
|
+
"lib/generators/rspec/templates/oauth_token_spec.rb",
|
153
|
+
"lib/generators/rspec/templates/oauth_tokens.yml",
|
154
|
+
"lib/generators/test_unit/oauth_provider_generator.rb",
|
155
|
+
"lib/generators/test_unit/templates/client_application_test.rb",
|
156
|
+
"lib/generators/test_unit/templates/client_applications.yml",
|
157
|
+
"lib/generators/test_unit/templates/clients_controller_test.rb",
|
158
|
+
"lib/generators/test_unit/templates/controller_test.rb",
|
159
|
+
"lib/generators/test_unit/templates/controller_test_helper.rb",
|
160
|
+
"lib/generators/test_unit/templates/oauth_nonce_test.rb",
|
161
|
+
"lib/generators/test_unit/templates/oauth_nonces.yml",
|
162
|
+
"lib/generators/test_unit/templates/oauth_token_test.rb",
|
163
|
+
"lib/generators/test_unit/templates/oauth_tokens.yml",
|
164
|
+
"lib/oauth-plugin.rb",
|
165
|
+
"lib/oauth/controllers/application_controller_methods.rb",
|
166
|
+
"lib/oauth/controllers/consumer_controller.rb",
|
167
|
+
"lib/oauth/controllers/provider_controller.rb",
|
168
|
+
"lib/oauth/models/consumers/service_loader.rb",
|
169
|
+
"lib/oauth/models/consumers/services/agree2_token.rb",
|
170
|
+
"lib/oauth/models/consumers/services/fireeagle_token.rb",
|
171
|
+
"lib/oauth/models/consumers/services/google_token.rb",
|
172
|
+
"lib/oauth/models/consumers/services/twitter_token.rb",
|
173
|
+
"lib/oauth/models/consumers/simple_client.rb",
|
174
|
+
"lib/oauth/models/consumers/token.rb",
|
175
|
+
"oauth-plugin.gemspec",
|
176
|
+
"rails/init.rb",
|
177
|
+
"tasks/oauth_tasks.rake",
|
178
|
+
"uninstall.rb"
|
180
179
|
]
|
181
180
|
s.homepage = %q{http://github.com/pelle/oauth-plugin}
|
182
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
183
181
|
s.require_paths = ["lib"]
|
184
182
|
s.rubyforge_project = %q{oauth}
|
185
183
|
s.rubygems_version = %q{1.3.7}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -1876988224
|
5
4
|
prerelease: true
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 4
|
9
8
|
- 0
|
10
|
-
-
|
11
|
-
version: 0.4.0.
|
9
|
+
- pre2
|
10
|
+
version: 0.4.0.pre2
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Pelle Braendgaard
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-
|
18
|
+
date: 2010-12-06 00:00:00 -05:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
@@ -27,7 +26,6 @@ dependencies:
|
|
27
26
|
requirements:
|
28
27
|
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 7
|
31
29
|
segments:
|
32
30
|
- 0
|
33
31
|
- 4
|
@@ -44,7 +42,6 @@ extensions: []
|
|
44
42
|
extra_rdoc_files:
|
45
43
|
- README.rdoc
|
46
44
|
files:
|
47
|
-
- .gitignore
|
48
45
|
- CHANGELOG
|
49
46
|
- MIT-LICENSE
|
50
47
|
- README.rdoc
|
@@ -210,8 +207,8 @@ homepage: http://github.com/pelle/oauth-plugin
|
|
210
207
|
licenses: []
|
211
208
|
|
212
209
|
post_install_message:
|
213
|
-
rdoc_options:
|
214
|
-
|
210
|
+
rdoc_options: []
|
211
|
+
|
215
212
|
require_paths:
|
216
213
|
- lib
|
217
214
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -219,7 +216,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
216
|
requirements:
|
220
217
|
- - ">="
|
221
218
|
- !ruby/object:Gem::Version
|
222
|
-
hash: 3
|
223
219
|
segments:
|
224
220
|
- 0
|
225
221
|
version: "0"
|
@@ -228,7 +224,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
224
|
requirements:
|
229
225
|
- - ">"
|
230
226
|
- !ruby/object:Gem::Version
|
231
|
-
hash: 25
|
232
227
|
segments:
|
233
228
|
- 1
|
234
229
|
- 3
|