devise_openid_authenticatable 1.2.1 → 1.3.0
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +18 -9
- data/CHANGELOG.rdoc +5 -0
- data/Gemfile +6 -1
- data/Gemfile.devise13 +4 -4
- data/Gemfile.devise13.lock +148 -0
- data/Gemfile.devise14 +4 -4
- data/Gemfile.devise14.lock +150 -0
- data/Gemfile.devise15 +4 -4
- data/Gemfile.devise15.lock +161 -0
- data/Gemfile.devise21 +4 -4
- data/Gemfile.devise21.lock +160 -0
- data/Gemfile.devise30 +5 -4
- data/Gemfile.devise30.lock +151 -0
- data/Gemfile.devise33 +12 -0
- data/Gemfile.devise33.lock +150 -0
- data/Gemfile.devise35 +13 -0
- data/Gemfile.devise35.lock +153 -0
- data/Gemfile.devise42 +14 -0
- data/Gemfile.devise42.lock +189 -0
- data/devise_openid_authenticatable.gemspec +4 -1
- data/lib/devise_openid_authenticatable/controller.rb +4 -4
- data/lib/devise_openid_authenticatable/strategy.rb +20 -8
- data/lib/devise_openid_authenticatable/version.rb +1 -1
- data/rails/Rakefile +6 -0
- data/rails/app/active_record/admin.rb +6 -0
- data/rails/app/active_record/shim.rb +2 -0
- data/rails/app/active_record/user.rb +7 -0
- data/rails/app/active_record/user_on_engine.rb +7 -0
- data/rails/app/active_record/user_on_main_app.rb +7 -0
- data/rails/app/active_record/user_without_email.rb +8 -0
- data/rails/app/controllers/admins/sessions_controller.rb +6 -0
- data/rails/app/controllers/admins_controller.rb +6 -0
- data/rails/app/controllers/application_controller.rb +11 -0
- data/rails/app/controllers/application_with_fake_engine.rb +30 -0
- data/rails/app/controllers/custom/registrations_controller.rb +31 -0
- data/rails/app/controllers/home_controller.rb +29 -0
- data/rails/app/controllers/publisher/registrations_controller.rb +2 -0
- data/rails/app/controllers/publisher/sessions_controller.rb +2 -0
- data/rails/app/controllers/users/omniauth_callbacks_controller.rb +14 -0
- data/rails/app/controllers/users_controller.rb +31 -0
- data/rails/app/helpers/application_helper.rb +3 -0
- data/rails/app/mailers/users/from_proc_mailer.rb +3 -0
- data/rails/app/mailers/users/mailer.rb +3 -0
- data/rails/app/mailers/users/reply_to_mailer.rb +4 -0
- data/rails/app/mongoid/admin.rb +29 -0
- data/rails/app/mongoid/shim.rb +23 -0
- data/rails/app/mongoid/user.rb +39 -0
- data/rails/app/mongoid/user_on_engine.rb +39 -0
- data/rails/app/mongoid/user_on_main_app.rb +39 -0
- data/rails/app/mongoid/user_without_email.rb +33 -0
- data/rails/app/views/admins/index.html.erb +1 -0
- data/rails/app/views/admins/sessions/new.html.erb +2 -0
- data/rails/app/views/home/admin_dashboard.html.erb +1 -0
- data/rails/app/views/home/index.html.erb +1 -0
- data/rails/app/views/home/join.html.erb +1 -0
- data/rails/app/views/home/private.html.erb +1 -0
- data/rails/app/views/home/user_dashboard.html.erb +1 -0
- data/rails/app/views/layouts/application.html.erb +24 -0
- data/rails/app/views/users/edit_form.html.erb +1 -0
- data/rails/app/views/users/index.html.erb +1 -0
- data/rails/app/views/users/mailer/confirmation_instructions.erb +1 -0
- data/rails/app/views/users/sessions/new.html.erb +1 -0
- data/rails/bin/bundle +3 -0
- data/rails/bin/rails +4 -0
- data/rails/bin/rake +4 -0
- data/rails/config.ru +4 -0
- data/rails/config/application.rb +44 -0
- data/rails/config/boot.rb +14 -0
- data/rails/config/database.yml +18 -0
- data/rails/config/environment.rb +5 -0
- data/rails/config/environments/development.rb +30 -0
- data/rails/config/environments/production.rb +86 -0
- data/rails/config/environments/test.rb +45 -0
- data/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/rails/config/initializers/devise.rb +180 -0
- data/rails/config/initializers/inflections.rb +2 -0
- data/rails/config/initializers/secret_token.rb +3 -0
- data/rails/config/initializers/session_store.rb +1 -0
- data/rails/config/routes.rb +126 -0
- data/rails/db/migrate/20100401102949_create_tables.rb +75 -0
- data/rails/db/schema.rb +55 -0
- data/rails/lib/shared_admin.rb +17 -0
- data/rails/lib/shared_user.rb +30 -0
- data/rails/lib/shared_user_without_email.rb +26 -0
- data/rails/lib/shared_user_without_omniauth.rb +13 -0
- data/rails/public/404.html +26 -0
- data/rails/public/422.html +26 -0
- data/rails/public/500.html +26 -0
- data/rails/public/favicon.ico +0 -0
- data/spec/scenario/config/environments/test.rb +3 -2
- data/spec/scenario/config/initializers/devise.rb +3 -0
- data/spec/scenario/config/initializers/secret_token.rb +4 -1
- data/spec/spec_helper.rb +10 -4
- data/spec/strategy_spec.rb +38 -25
- metadata +96 -4
- data/rails/init.rb +0 -1
|
File without changes
|
|
@@ -8,7 +8,8 @@ Scenario::Application.configure do
|
|
|
8
8
|
config.cache_classes = true
|
|
9
9
|
|
|
10
10
|
# Log error messages when you accidentally call methods on nil.
|
|
11
|
-
config.whiny_nils
|
|
11
|
+
# DEPRECATION WARNING: config.whiny_nils option is deprecated and no longer works.
|
|
12
|
+
# config.whiny_nils = true
|
|
12
13
|
|
|
13
14
|
# Show full error reports and disable caching
|
|
14
15
|
config.consider_all_requests_local = true
|
|
@@ -30,6 +31,6 @@ Scenario::Application.configure do
|
|
|
30
31
|
config.action_dispatch.show_exceptions = false
|
|
31
32
|
|
|
32
33
|
config.active_support.deprecation = :stderr
|
|
33
|
-
|
|
34
|
+
|
|
34
35
|
config.eager_load = false
|
|
35
36
|
end
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
Rails.application.config.secret_token = 'ea942c41850d502f2c8283e26bdc57829f471bb18224ddff0a192c4f32cdf6cb5aa0d82b3a7a7adbeb640c4b06f3aa1cd5f098162d8240f669b39d6b49680571'
|
|
2
|
-
Rails.application.config.session_store :cookie_store, :
|
|
2
|
+
Rails.application.config.session_store :cookie_store, key: "_my_scenario"
|
|
3
|
+
if Scenario::Application.config.respond_to?(:secret_key_base=)
|
|
4
|
+
Scenario::Application.config.secret_key_base = '67ecc07dd52ce53da248745c6e601603534de2250c8b7add5c7f9a791c1b4684d808d28a35ac6b31a6b12932b461afbe6fda8ccc2232466ee68a9bd16bac06b0'
|
|
5
|
+
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -13,8 +13,14 @@ Webrat.configure do |config|
|
|
|
13
13
|
config.open_error_files = false
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
RSpec.configure do |config|
|
|
17
|
-
|
|
16
|
+
RSpec.configure do |config|
|
|
17
|
+
%i(controller view request).each do |type|
|
|
18
|
+
config.include ::Rails::Controller::Testing::TestProcess, type: type
|
|
19
|
+
config.include ::Rails::Controller::Testing::TemplateAssertions, type: type
|
|
20
|
+
config.include ::Rails::Controller::Testing::Integration, type: type
|
|
21
|
+
end if Rails.version >= '5'
|
|
22
|
+
config.mock_with :mocha
|
|
23
|
+
config.infer_spec_type_from_file_location!
|
|
18
24
|
end
|
|
19
25
|
|
|
20
26
|
# This is mostly copied in from bin/rots; they don't provide a single app class we could just reuse, unfortunately
|
|
@@ -33,7 +39,7 @@ ROTS_CONFIG
|
|
|
33
39
|
rots_server_options = {
|
|
34
40
|
:storage => File.join(File.dirname(__FILE__), 'scenario', 'tmp', 'rots')
|
|
35
41
|
}
|
|
36
|
-
rots_server = Rack::Builder.new do
|
|
42
|
+
rots_server = Rack::Builder.new do
|
|
37
43
|
use Rack::Lint
|
|
38
44
|
map ("/%s" % rots_config['identity']) do
|
|
39
45
|
run Rots::IdentityPageApp.new(rots_config, rots_server_options)
|
|
@@ -45,4 +51,4 @@ end
|
|
|
45
51
|
|
|
46
52
|
ShamRack.mount(rots_server, 'openid.example.org')
|
|
47
53
|
|
|
48
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
54
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
data/spec/strategy_spec.rb
CHANGED
|
@@ -39,11 +39,11 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
39
39
|
User.create! do |u|
|
|
40
40
|
u.identity_url = "http://openid.example.org/myid"
|
|
41
41
|
end
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
LegacyUser.create! do |u|
|
|
44
44
|
u.identity_url = "http://openid.example.org/myid"
|
|
45
45
|
end
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
DatabaseUser.create! do |u|
|
|
48
48
|
u.email = "dbuser@example.com"
|
|
49
49
|
u.password = "password"
|
|
@@ -104,18 +104,18 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
104
104
|
response.should redirect_to('http://openid.example.org/server')
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
describe "POST /users/sign_in (with rememberable)" do
|
|
109
109
|
before do
|
|
110
110
|
post '/users/sign_in', 'user' => { 'identity_url' => 'http://openid.example.org/myid', 'remember_me' => 1 }
|
|
111
111
|
end
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
it 'should forward request to provider, with params preserved' do
|
|
114
114
|
response.should be_redirect
|
|
115
115
|
redirect_uri = URI.parse(response.header['Location'])
|
|
116
116
|
redirect_uri.host.should == "openid.example.org"
|
|
117
117
|
redirect_uri.path.should match(/^\/server/)
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
# Crack open the redirect URI and extract the return parameter from it, then parse it too
|
|
120
120
|
req = Rack::Request.new(Rack::MockRequest.env_for(redirect_uri.to_s))
|
|
121
121
|
return_req = Rack::Request.new(Rack::MockRequest.env_for(req.params['openid.return_to']))
|
|
@@ -163,11 +163,11 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
it 'should update user-records with retrieved information' do
|
|
166
|
-
User.
|
|
166
|
+
expect(User.count).to eq 1
|
|
167
167
|
User.first.email.should == 'dimitrij@example.com'
|
|
168
168
|
end
|
|
169
169
|
end
|
|
170
|
-
|
|
170
|
+
|
|
171
171
|
describe "POST /users/sign_in (from OpenID provider, success, rememberable)" do
|
|
172
172
|
|
|
173
173
|
before do
|
|
@@ -182,12 +182,25 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
it 'should update user-records with retrieved information and remember token' do
|
|
185
|
-
User.
|
|
185
|
+
expect(User.count).to eq 1
|
|
186
186
|
User.first.email.should == 'dimitrij@example.com'
|
|
187
187
|
User.first.remember_token.should_not be_nil
|
|
188
188
|
end
|
|
189
189
|
end
|
|
190
190
|
|
|
191
|
+
describe "POST /users/sign_in (from OpenID provider, success, NOT rememberable)" do
|
|
192
|
+
before do
|
|
193
|
+
stub_completion
|
|
194
|
+
post '/users/sign_in', openid_params.merge("_method"=>"post", "user" => { "remember_me" => 0 })
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
it 'should update user-records with retrieved information but not remember token' do
|
|
198
|
+
expect(User.count).to eq 1
|
|
199
|
+
User.first.email.should == 'dimitrij@example.com'
|
|
200
|
+
User.first.remember_token.should be_nil
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
191
204
|
describe "POST /users/sign_in (from OpenID provider, success, new user)" do
|
|
192
205
|
|
|
193
206
|
before do
|
|
@@ -203,26 +216,26 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
203
216
|
end
|
|
204
217
|
|
|
205
218
|
it 'should auto-create user-records (if supported)' do
|
|
206
|
-
User.should
|
|
219
|
+
User.count.should eq 2
|
|
207
220
|
end
|
|
208
221
|
|
|
209
222
|
it 'should update new user-records with retrieved information' do
|
|
210
223
|
User.order(:id).last.email.should == 'dimitrij@example.com'
|
|
211
224
|
end
|
|
212
225
|
end
|
|
213
|
-
|
|
226
|
+
|
|
214
227
|
describe "POST /legacy_users/sign_in (from OpenID provider, success, new user)" do
|
|
215
228
|
|
|
216
229
|
before do
|
|
217
230
|
@previous_logger = Rails.logger
|
|
218
231
|
@log_output = StringIO.new
|
|
219
232
|
Rails.logger = Logger.new(@log_output)
|
|
220
|
-
|
|
233
|
+
|
|
221
234
|
@identity = 'http://openid.example.org/newid'
|
|
222
235
|
stub_completion
|
|
223
236
|
post '/legacy_users/sign_in', openid_params.merge("_method"=>"post")
|
|
224
237
|
end
|
|
225
|
-
|
|
238
|
+
|
|
226
239
|
after do
|
|
227
240
|
Rails.logger = @previous_logger
|
|
228
241
|
end
|
|
@@ -234,32 +247,32 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
234
247
|
end
|
|
235
248
|
|
|
236
249
|
it 'should auto-create user-records (if supported)' do
|
|
237
|
-
LegacyUser.should
|
|
250
|
+
LegacyUser.count.should eq 2
|
|
238
251
|
end
|
|
239
252
|
|
|
240
253
|
it 'should update new user-records with retrieved information' do
|
|
241
254
|
LegacyUser.order(:id).last.email.should == 'dimitrij@example.com'
|
|
242
255
|
end
|
|
243
|
-
|
|
256
|
+
|
|
244
257
|
it 'should issue a deprecation warning' do
|
|
245
258
|
@log_output.string.should =~ /DEPRECATION WARNING: create_from_identity_url/
|
|
246
259
|
end
|
|
247
260
|
end
|
|
248
261
|
|
|
249
262
|
describe "POST /database_users/sign_in (using database authentication)" do
|
|
250
|
-
|
|
263
|
+
|
|
251
264
|
before do
|
|
252
265
|
post '/database_users/sign_in', :database_user => { :email => "dbuser@example.com", :password => "password" }
|
|
253
266
|
end
|
|
254
|
-
|
|
267
|
+
|
|
255
268
|
it 'should accept authentication with success' do
|
|
256
269
|
response.should be_redirect
|
|
257
270
|
response.should redirect_to('http://www.example.com/')
|
|
258
271
|
flash[:notice].should match(/success/i)
|
|
259
272
|
end
|
|
260
|
-
|
|
273
|
+
|
|
261
274
|
end
|
|
262
|
-
|
|
275
|
+
|
|
263
276
|
describe "POST /database_users/sign_in (using OpenID, begin_authentication)" do
|
|
264
277
|
before do
|
|
265
278
|
Rack::OpenID.any_instance.stubs(:begin_authentication).returns([302, {'Location' => 'http://openid.example.org/server'}, ['']])
|
|
@@ -271,7 +284,7 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
271
284
|
response.should redirect_to('http://openid.example.org/server')
|
|
272
285
|
end
|
|
273
286
|
end
|
|
274
|
-
|
|
287
|
+
|
|
275
288
|
describe "POST /database_users/sign_in (using OpenID, from provider, existing user)" do
|
|
276
289
|
before do
|
|
277
290
|
stub_completion
|
|
@@ -285,11 +298,11 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
285
298
|
end
|
|
286
299
|
|
|
287
300
|
it 'should update user-records with retrieved information' do
|
|
288
|
-
DatabaseUser.should
|
|
301
|
+
DatabaseUser.count.should eq 1
|
|
289
302
|
DatabaseUser.first.email.should == 'dimitrij@example.com'
|
|
290
303
|
end
|
|
291
304
|
end
|
|
292
|
-
|
|
305
|
+
|
|
293
306
|
describe "POST /database_users/sign_in (using OpenID, from provider, existing email)" do
|
|
294
307
|
before do
|
|
295
308
|
DatabaseUser.delete_all
|
|
@@ -297,7 +310,7 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
297
310
|
u.email = "dimitrij@example.com"
|
|
298
311
|
u.password = "password"
|
|
299
312
|
end
|
|
300
|
-
|
|
313
|
+
|
|
301
314
|
stub_completion
|
|
302
315
|
post '/database_users/sign_in', openid_params.merge("_method"=>"post")
|
|
303
316
|
end
|
|
@@ -306,10 +319,10 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
306
319
|
response.should be_success
|
|
307
320
|
response.should render_template("sessions/new")
|
|
308
321
|
flash[:alert].should match(/email/i)
|
|
309
|
-
DatabaseUser.should
|
|
322
|
+
DatabaseUser.count.should eq 1
|
|
310
323
|
end
|
|
311
324
|
end
|
|
312
|
-
|
|
325
|
+
|
|
313
326
|
describe "POST /database_users/sign_in (using OpenID, from provider, forgery attempt)" do
|
|
314
327
|
before do
|
|
315
328
|
DatabaseUser.delete_all
|
|
@@ -318,7 +331,7 @@ describe Devise::Strategies::OpenidAuthenticatable do
|
|
|
318
331
|
u.password = "password"
|
|
319
332
|
u.identity_url = "http://openid.example.org/different_id"
|
|
320
333
|
end
|
|
321
|
-
|
|
334
|
+
|
|
322
335
|
stub_completion
|
|
323
336
|
post '/database_users/sign_in', openid_params.merge("_method"=>"post")
|
|
324
337
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_openid_authenticatable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nat Budin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack-openid
|
|
@@ -122,6 +122,20 @@ dependencies:
|
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: roman-rots
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
125
139
|
description: OpenID authentication module for Devise using Rack::OpenID
|
|
126
140
|
email:
|
|
127
141
|
- natbudin@gmail.com
|
|
@@ -134,10 +148,21 @@ files:
|
|
|
134
148
|
- CHANGELOG.rdoc
|
|
135
149
|
- Gemfile
|
|
136
150
|
- Gemfile.devise13
|
|
151
|
+
- Gemfile.devise13.lock
|
|
137
152
|
- Gemfile.devise14
|
|
153
|
+
- Gemfile.devise14.lock
|
|
138
154
|
- Gemfile.devise15
|
|
155
|
+
- Gemfile.devise15.lock
|
|
139
156
|
- Gemfile.devise21
|
|
157
|
+
- Gemfile.devise21.lock
|
|
140
158
|
- Gemfile.devise30
|
|
159
|
+
- Gemfile.devise30.lock
|
|
160
|
+
- Gemfile.devise33
|
|
161
|
+
- Gemfile.devise33.lock
|
|
162
|
+
- Gemfile.devise35
|
|
163
|
+
- Gemfile.devise35.lock
|
|
164
|
+
- Gemfile.devise42
|
|
165
|
+
- Gemfile.devise42.lock
|
|
141
166
|
- LICENSE
|
|
142
167
|
- README.md
|
|
143
168
|
- Rakefile
|
|
@@ -150,7 +175,72 @@ files:
|
|
|
150
175
|
- lib/devise_openid_authenticatable/schema.rb
|
|
151
176
|
- lib/devise_openid_authenticatable/strategy.rb
|
|
152
177
|
- lib/devise_openid_authenticatable/version.rb
|
|
153
|
-
- rails/
|
|
178
|
+
- rails/Rakefile
|
|
179
|
+
- rails/app/active_record/admin.rb
|
|
180
|
+
- rails/app/active_record/shim.rb
|
|
181
|
+
- rails/app/active_record/user.rb
|
|
182
|
+
- rails/app/active_record/user_on_engine.rb
|
|
183
|
+
- rails/app/active_record/user_on_main_app.rb
|
|
184
|
+
- rails/app/active_record/user_without_email.rb
|
|
185
|
+
- rails/app/controllers/admins/sessions_controller.rb
|
|
186
|
+
- rails/app/controllers/admins_controller.rb
|
|
187
|
+
- rails/app/controllers/application_controller.rb
|
|
188
|
+
- rails/app/controllers/application_with_fake_engine.rb
|
|
189
|
+
- rails/app/controllers/custom/registrations_controller.rb
|
|
190
|
+
- rails/app/controllers/home_controller.rb
|
|
191
|
+
- rails/app/controllers/publisher/registrations_controller.rb
|
|
192
|
+
- rails/app/controllers/publisher/sessions_controller.rb
|
|
193
|
+
- rails/app/controllers/users/omniauth_callbacks_controller.rb
|
|
194
|
+
- rails/app/controllers/users_controller.rb
|
|
195
|
+
- rails/app/helpers/application_helper.rb
|
|
196
|
+
- rails/app/mailers/users/from_proc_mailer.rb
|
|
197
|
+
- rails/app/mailers/users/mailer.rb
|
|
198
|
+
- rails/app/mailers/users/reply_to_mailer.rb
|
|
199
|
+
- rails/app/mongoid/admin.rb
|
|
200
|
+
- rails/app/mongoid/shim.rb
|
|
201
|
+
- rails/app/mongoid/user.rb
|
|
202
|
+
- rails/app/mongoid/user_on_engine.rb
|
|
203
|
+
- rails/app/mongoid/user_on_main_app.rb
|
|
204
|
+
- rails/app/mongoid/user_without_email.rb
|
|
205
|
+
- rails/app/views/admins/index.html.erb
|
|
206
|
+
- rails/app/views/admins/sessions/new.html.erb
|
|
207
|
+
- rails/app/views/home/admin_dashboard.html.erb
|
|
208
|
+
- rails/app/views/home/index.html.erb
|
|
209
|
+
- rails/app/views/home/join.html.erb
|
|
210
|
+
- rails/app/views/home/private.html.erb
|
|
211
|
+
- rails/app/views/home/user_dashboard.html.erb
|
|
212
|
+
- rails/app/views/layouts/application.html.erb
|
|
213
|
+
- rails/app/views/users/edit_form.html.erb
|
|
214
|
+
- rails/app/views/users/index.html.erb
|
|
215
|
+
- rails/app/views/users/mailer/confirmation_instructions.erb
|
|
216
|
+
- rails/app/views/users/sessions/new.html.erb
|
|
217
|
+
- rails/bin/bundle
|
|
218
|
+
- rails/bin/rails
|
|
219
|
+
- rails/bin/rake
|
|
220
|
+
- rails/config.ru
|
|
221
|
+
- rails/config/application.rb
|
|
222
|
+
- rails/config/boot.rb
|
|
223
|
+
- rails/config/database.yml
|
|
224
|
+
- rails/config/environment.rb
|
|
225
|
+
- rails/config/environments/development.rb
|
|
226
|
+
- rails/config/environments/production.rb
|
|
227
|
+
- rails/config/environments/test.rb
|
|
228
|
+
- rails/config/initializers/backtrace_silencers.rb
|
|
229
|
+
- rails/config/initializers/devise.rb
|
|
230
|
+
- rails/config/initializers/inflections.rb
|
|
231
|
+
- rails/config/initializers/secret_token.rb
|
|
232
|
+
- rails/config/initializers/session_store.rb
|
|
233
|
+
- rails/config/routes.rb
|
|
234
|
+
- rails/db/migrate/20100401102949_create_tables.rb
|
|
235
|
+
- rails/db/schema.rb
|
|
236
|
+
- rails/lib/shared_admin.rb
|
|
237
|
+
- rails/lib/shared_user.rb
|
|
238
|
+
- rails/lib/shared_user_without_email.rb
|
|
239
|
+
- rails/lib/shared_user_without_omniauth.rb
|
|
240
|
+
- rails/public/404.html
|
|
241
|
+
- rails/public/422.html
|
|
242
|
+
- rails/public/500.html
|
|
243
|
+
- rails/public/favicon.ico
|
|
154
244
|
- spec/model_spec.rb
|
|
155
245
|
- spec/scenario/app/controllers/application_controller.rb
|
|
156
246
|
- spec/scenario/app/controllers/home_controller.rb
|
|
@@ -167,6 +257,7 @@ files:
|
|
|
167
257
|
- spec/scenario/config/environments/development.rb
|
|
168
258
|
- spec/scenario/config/environments/test.rb
|
|
169
259
|
- spec/scenario/config/initializers/backtrace_silencers.rb
|
|
260
|
+
- spec/scenario/config/initializers/devise.rb
|
|
170
261
|
- spec/scenario/config/initializers/inflections.rb
|
|
171
262
|
- spec/scenario/config/initializers/secret_token.rb
|
|
172
263
|
- spec/scenario/config/routes.rb
|
|
@@ -186,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
186
277
|
requirements:
|
|
187
278
|
- - ">="
|
|
188
279
|
- !ruby/object:Gem::Version
|
|
189
|
-
version: '0'
|
|
280
|
+
version: '2.0'
|
|
190
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
282
|
requirements:
|
|
192
283
|
- - ">="
|
|
@@ -215,6 +306,7 @@ test_files:
|
|
|
215
306
|
- spec/scenario/config/environments/development.rb
|
|
216
307
|
- spec/scenario/config/environments/test.rb
|
|
217
308
|
- spec/scenario/config/initializers/backtrace_silencers.rb
|
|
309
|
+
- spec/scenario/config/initializers/devise.rb
|
|
218
310
|
- spec/scenario/config/initializers/inflections.rb
|
|
219
311
|
- spec/scenario/config/initializers/secret_token.rb
|
|
220
312
|
- spec/scenario/config/routes.rb
|
data/rails/init.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require "devise_openid_authenticatable"
|