any_login 1.2.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/any_login/application_controller.rb +14 -5
- data/app/helpers/any_login/application_helper.rb +3 -3
- data/lib/any_login/collection.rb +37 -0
- data/lib/any_login/providers/devise.rb +9 -2
- data/lib/any_login/version.rb +1 -1
- data/lib/any_login.rb +6 -25
- data/test/any_login/collection_test.rb +75 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- metadata +210 -215
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy-clearance/db/development.sqlite3 +0 -0
- data/test/dummy-sorcery/db/development.sqlite3 +0 -0
- data/test/dummy-sorcery/db/test.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49fb1234dbae6fab57bc6ac025704c2fbff1dd20
|
4
|
+
data.tar.gz: 5877ea1ead32598b18ef1d02e5e54e1c410d25ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07049e18a625d35b873289ebee0327ca0262677ae2a2e5f5969ef4e03f1b91eedc8f32b21fcfe9026b3e6fa7108eefc35a55e87a4af874201a387f6380e18a60'
|
7
|
+
data.tar.gz: d133cdac9bdd4d649d4d988924ff403b46c7cc8b9fe62fc6c6a1a644d8f5b06da2089e7dff86d4d0b2f1eaf97d90c19b0dcb9dafdd28e2ad325d6713b3842b99
|
@@ -2,17 +2,26 @@ module AnyLogin
|
|
2
2
|
class ApplicationController < ActionController::Base
|
3
3
|
|
4
4
|
if AnyLogin.enabled
|
5
|
-
|
6
5
|
if AnyLogin.http_basic_authentication_enabled
|
7
6
|
http_basic_authenticate_with :name => AnyLogin.http_basic_authentication_user_name,
|
8
7
|
:password => AnyLogin.http_basic_authentication_password
|
9
8
|
end
|
9
|
+
end
|
10
10
|
|
11
|
+
def any_login
|
12
|
+
try_not_to_leak_any_login_is_installed
|
13
|
+
head 403 && return unless AnyLogin.verify_access_proc.call(self)
|
14
|
+
AnyLogin.provider::Controller.instance_method(:any_login_sign_in).bind(self).call
|
15
|
+
end
|
11
16
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
17
|
+
private
|
18
|
+
|
19
|
+
def try_not_to_leak_any_login_is_installed
|
20
|
+
try_to_render_404_not_found unless AnyLogin.enabled
|
21
|
+
end
|
22
|
+
|
23
|
+
def try_to_render_404_not_found
|
24
|
+
raise ActiveRecord::RecordNotFound
|
16
25
|
end
|
17
26
|
|
18
27
|
end
|
@@ -19,10 +19,10 @@ module AnyLogin
|
|
19
19
|
def any_login_select
|
20
20
|
collection = AnyLogin.collection
|
21
21
|
select_options =
|
22
|
-
if
|
23
|
-
grouped_options_for_select(collection)
|
22
|
+
if collection.grouped?
|
23
|
+
grouped_options_for_select(collection.to_a)
|
24
24
|
else
|
25
|
-
options_for_select(collection)
|
25
|
+
options_for_select(collection.to_a)
|
26
26
|
end
|
27
27
|
select_tag :selected_id, select_options, select_html_options
|
28
28
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module AnyLogin
|
2
|
+
class Collection
|
3
|
+
attr_reader :collection_raw
|
4
|
+
|
5
|
+
def initialize(collection_raw)
|
6
|
+
@collection_raw = collection_raw
|
7
|
+
end
|
8
|
+
|
9
|
+
def grouped?
|
10
|
+
type == :grouped
|
11
|
+
end
|
12
|
+
|
13
|
+
def to_a
|
14
|
+
collection_raw.collect do |e|
|
15
|
+
if grouped?
|
16
|
+
[e[0], e[1].collect(&AnyLogin.name_method)]
|
17
|
+
else
|
18
|
+
if AnyLogin.name_method.is_a?(Symbol)
|
19
|
+
e.send(AnyLogin.name_method)
|
20
|
+
else
|
21
|
+
AnyLogin.name_method.call(e)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def type
|
30
|
+
@type ||= if collection_raw[0].is_a?(Array)
|
31
|
+
:grouped
|
32
|
+
else
|
33
|
+
:single
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -4,14 +4,21 @@ module AnyLogin
|
|
4
4
|
|
5
5
|
module Controller
|
6
6
|
|
7
|
+
DEFAULT_SIGN_IN = proc do |loginable|
|
8
|
+
reset_session
|
9
|
+
sign_in AnyLogin.klass.to_s.underscore.to_sym, loginable
|
10
|
+
end
|
11
|
+
|
7
12
|
def self.any_login_current_user_method
|
8
13
|
@@any_login_current_user_method ||= "current_#{AnyLogin.klass.to_s.underscore}".to_sym
|
9
14
|
end
|
10
15
|
|
11
16
|
def any_login_sign_in
|
12
|
-
reset_session
|
13
17
|
@loginable = AnyLogin.klass.find(params[:selected_id].presence || params[:id])
|
14
|
-
|
18
|
+
|
19
|
+
sign_in = AnyLogin.sign_in || DEFAULT_SIGN_IN
|
20
|
+
instance_exec(@loginable, &sign_in)
|
21
|
+
|
15
22
|
redirect_to main_app.send(AnyLogin.redirect_path_after_login)
|
16
23
|
end
|
17
24
|
|
data/lib/any_login/version.rb
CHANGED
data/lib/any_login.rb
CHANGED
@@ -21,6 +21,10 @@ module AnyLogin
|
|
21
21
|
mattr_accessor :klass_name
|
22
22
|
@@klass_name = 'User'
|
23
23
|
|
24
|
+
# Sign-in Method
|
25
|
+
mattr_accessor :sign_in
|
26
|
+
@@sign_in = nil
|
27
|
+
|
24
28
|
# .all, .active, .admins, .groped_collection, etc ... need to return an array (or hash with arrays) of users
|
25
29
|
mattr_accessor :collection_method
|
26
30
|
@@collection_method = :all
|
@@ -77,22 +81,8 @@ module AnyLogin
|
|
77
81
|
yield(self)
|
78
82
|
end
|
79
83
|
|
80
|
-
def self.grouped?
|
81
|
-
collection_type == :grouped
|
82
|
-
end
|
83
|
-
|
84
84
|
def self.collection
|
85
|
-
collection_raw
|
86
|
-
if grouped?
|
87
|
-
[e[0], e[1].collect(&name_method)]
|
88
|
-
else
|
89
|
-
if name_method.is_a?(Symbol)
|
90
|
-
e.send(name_method)
|
91
|
-
else
|
92
|
-
name_method.call(e)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
85
|
+
Collection.new(collection_raw)
|
96
86
|
end
|
97
87
|
|
98
88
|
def self.klass
|
@@ -124,18 +114,9 @@ module AnyLogin
|
|
124
114
|
end
|
125
115
|
end
|
126
116
|
|
127
|
-
def self.collection_type
|
128
|
-
@@collection_type =
|
129
|
-
if collection_raw[1].is_a?(Array)
|
130
|
-
:grouped
|
131
|
-
else
|
132
|
-
:single
|
133
|
-
end
|
134
|
-
@@collection_type
|
135
|
-
end
|
136
|
-
|
137
117
|
end
|
138
118
|
|
119
|
+
require 'any_login/collection'
|
139
120
|
require 'any_login/engine'
|
140
121
|
require 'any_login/routes'
|
141
122
|
require 'any_login/version'
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module AnyLogin
|
4
|
+
class CollectionTest < ActiveSupport::TestCase
|
5
|
+
FakeUser = Struct.new(:id, :email)
|
6
|
+
|
7
|
+
test "single collection should return false with the grouped?" do
|
8
|
+
single = [
|
9
|
+
FakeUser.new(1, "1@example.com"),
|
10
|
+
FakeUser.new(2, "2@example.com")
|
11
|
+
]
|
12
|
+
collection = AnyLogin::Collection.new(single)
|
13
|
+
|
14
|
+
assert_equal false, collection.grouped?
|
15
|
+
end
|
16
|
+
|
17
|
+
test "single collection should returns an Array" do
|
18
|
+
begin
|
19
|
+
prev = AnyLogin.name_method
|
20
|
+
|
21
|
+
single = [
|
22
|
+
FakeUser.new(1, "1@example.com"),
|
23
|
+
FakeUser.new(2, "2@example.com")
|
24
|
+
]
|
25
|
+
collection = AnyLogin::Collection.new(single)
|
26
|
+
|
27
|
+
AnyLogin.name_method = :email
|
28
|
+
assert_equal ["1@example.com", "2@example.com"], collection.to_a
|
29
|
+
|
30
|
+
AnyLogin.name_method = ->(e) { e.id }
|
31
|
+
assert_equal [1, 2], collection.to_a
|
32
|
+
rescue
|
33
|
+
AnyLogin.name_method = prev
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
test "grouped collection should return true with the grouped?" do
|
38
|
+
grouped = [
|
39
|
+
["admin", [FakeUser.new(1, "1@example.com"), FakeUser.new(2, "2@example.com")]],
|
40
|
+
["user", [FakeUser.new(3, "3@example.com"), FakeUser.new(4, "4@example.com")]],
|
41
|
+
]
|
42
|
+
collection = AnyLogin::Collection.new(grouped)
|
43
|
+
|
44
|
+
assert_equal true, collection.grouped?
|
45
|
+
end
|
46
|
+
|
47
|
+
test "grouped collection should returns an Array" do
|
48
|
+
begin
|
49
|
+
prev = AnyLogin.name_method
|
50
|
+
|
51
|
+
grouped = [
|
52
|
+
["admin", [FakeUser.new(1, "1@example.com"), FakeUser.new(2, "2@example.com")]],
|
53
|
+
["user", [FakeUser.new(3, "3@example.com"), FakeUser.new(4, "4@example.com")]],
|
54
|
+
]
|
55
|
+
collection = AnyLogin::Collection.new(grouped)
|
56
|
+
|
57
|
+
AnyLogin.name_method = :email
|
58
|
+
expected = [
|
59
|
+
["admin", ["1@example.com", "2@example.com"]],
|
60
|
+
["user", ["3@example.com", "4@example.com"]]
|
61
|
+
]
|
62
|
+
assert_equal expected, collection.to_a
|
63
|
+
|
64
|
+
AnyLogin.name_method = ->(e) { e.id }
|
65
|
+
expected = [
|
66
|
+
["admin", [1, 2]],
|
67
|
+
["user", [3, 4]]
|
68
|
+
]
|
69
|
+
assert_equal expected, collection.to_a
|
70
|
+
rescue
|
71
|
+
AnyLogin.name_method = prev
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: any_login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -180,6 +180,7 @@ files:
|
|
180
180
|
- app/views/any_login/_any_login.html.erb
|
181
181
|
- config/routes.rb
|
182
182
|
- lib/any_login.rb
|
183
|
+
- lib/any_login/collection.rb
|
183
184
|
- lib/any_login/engine.rb
|
184
185
|
- lib/any_login/providers/authlogic.rb
|
185
186
|
- lib/any_login/providers/clearance.rb
|
@@ -190,6 +191,7 @@ files:
|
|
190
191
|
- lib/generators/any_login/USAGE
|
191
192
|
- lib/generators/any_login/any_login_generator.rb
|
192
193
|
- lib/generators/any_login/templates/any_login.rb
|
194
|
+
- test/any_login/collection_test.rb
|
193
195
|
- test/any_login_test.rb
|
194
196
|
- test/dummy-authlogic/README.rdoc
|
195
197
|
- test/dummy-authlogic/Rakefile
|
@@ -305,7 +307,6 @@ files:
|
|
305
307
|
- test/dummy-clearance/config/locales/en.yml
|
306
308
|
- test/dummy-clearance/config/routes.rb
|
307
309
|
- test/dummy-clearance/config/secrets.yml
|
308
|
-
- test/dummy-clearance/db/development.sqlite3
|
309
310
|
- test/dummy-clearance/db/migrate/20150907190739_create_users.rb
|
310
311
|
- test/dummy-clearance/db/migrate/20150907190846_add_devise_to_users.rb
|
311
312
|
- test/dummy-clearance/db/migrate/20150909210357_populate_test_users.rb
|
@@ -366,13 +367,11 @@ files:
|
|
366
367
|
- test/dummy-sorcery/config/locales/en.yml
|
367
368
|
- test/dummy-sorcery/config/routes.rb
|
368
369
|
- test/dummy-sorcery/config/secrets.yml
|
369
|
-
- test/dummy-sorcery/db/development.sqlite3
|
370
370
|
- test/dummy-sorcery/db/migrate/20150907190739_create_users.rb
|
371
371
|
- test/dummy-sorcery/db/migrate/20150907190846_add_devise_to_users.rb
|
372
372
|
- test/dummy-sorcery/db/migrate/20150909210357_populate_test_users.rb
|
373
373
|
- test/dummy-sorcery/db/migrate/20151019154558_sorcery_core.rb
|
374
374
|
- test/dummy-sorcery/db/schema.rb
|
375
|
-
- test/dummy-sorcery/db/test.sqlite3
|
376
375
|
- test/dummy-sorcery/public/404.html
|
377
376
|
- test/dummy-sorcery/public/422.html
|
378
377
|
- test/dummy-sorcery/public/500.html
|
@@ -427,7 +426,6 @@ files:
|
|
427
426
|
- test/dummy/config/locales/en.yml
|
428
427
|
- test/dummy/config/routes.rb
|
429
428
|
- test/dummy/config/secrets.yml
|
430
|
-
- test/dummy/db/development.sqlite3
|
431
429
|
- test/dummy/db/migrate/20150907190739_create_users.rb
|
432
430
|
- test/dummy/db/migrate/20150907190846_add_devise_to_users.rb
|
433
431
|
- test/dummy/db/migrate/20150909210357_populate_test_users.rb
|
@@ -459,258 +457,255 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
459
457
|
version: '0'
|
460
458
|
requirements: []
|
461
459
|
rubyforge_project:
|
462
|
-
rubygems_version: 2.
|
460
|
+
rubygems_version: 2.5.2
|
463
461
|
signing_key:
|
464
462
|
specification_version: 4
|
465
463
|
summary: AnyLogin is created to speedup development process and allow developer's
|
466
464
|
quickly login as any user in DB.
|
467
465
|
test_files:
|
468
|
-
- test/
|
469
|
-
- test/dummy/app/
|
470
|
-
- test/dummy/app/
|
471
|
-
- test/dummy/app/
|
472
|
-
- test/dummy/app/assets/
|
473
|
-
- test/dummy/app/assets/
|
474
|
-
- test/dummy/app/assets/javascripts/application.js
|
475
|
-
- test/dummy/app/assets/
|
476
|
-
- test/dummy/app/assets/
|
477
|
-
- test/dummy/app/assets/
|
478
|
-
- test/dummy/app/assets/
|
479
|
-
- test/dummy/app/assets/
|
480
|
-
- test/dummy/app/assets/stylesheets/home.css
|
481
|
-
- test/dummy/app/
|
482
|
-
- test/dummy/app/
|
483
|
-
- test/dummy/app/
|
484
|
-
- test/dummy/app/
|
485
|
-
- test/dummy/app/
|
486
|
-
- test/dummy/app/views/
|
487
|
-
- test/dummy/app/views/
|
488
|
-
- test/dummy/app/views/
|
489
|
-
- test/dummy/app/
|
490
|
-
- test/dummy/app/
|
491
|
-
- test/dummy/
|
492
|
-
- test/dummy/
|
493
|
-
- test/dummy/
|
494
|
-
- test/dummy/
|
495
|
-
- test/dummy/config/
|
496
|
-
- test/dummy/config/
|
497
|
-
- test/dummy/config/
|
498
|
-
- test/dummy/config/
|
499
|
-
- test/dummy/config/
|
500
|
-
- test/dummy/config/
|
501
|
-
- test/dummy/config/environments/
|
502
|
-
- test/dummy/config/
|
503
|
-
- test/dummy/config/
|
504
|
-
- test/dummy/config/
|
505
|
-
- test/dummy/config/
|
506
|
-
- test/dummy/config/initializers/
|
507
|
-
- test/dummy/config/initializers/
|
508
|
-
- test/dummy/config/initializers/
|
509
|
-
- test/dummy/config/initializers/
|
510
|
-
- test/dummy/config/initializers/
|
511
|
-
- test/dummy/config/initializers/
|
512
|
-
- test/dummy/config/
|
513
|
-
- test/dummy/config/
|
514
|
-
- test/dummy/config/
|
515
|
-
- test/dummy/config/
|
516
|
-
- test/dummy/
|
517
|
-
- test/dummy/db/
|
518
|
-
- test/dummy/db/migrate/
|
519
|
-
- test/dummy/db/migrate/
|
520
|
-
- test/dummy/db/migrate/
|
521
|
-
- test/dummy/db/
|
522
|
-
- test/dummy/
|
523
|
-
- test/dummy/
|
524
|
-
- test/dummy/
|
525
|
-
- test/dummy/
|
526
|
-
- test/dummy/
|
527
|
-
- test/dummy/
|
528
|
-
- test/
|
529
|
-
- test/
|
530
|
-
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.svg
|
531
|
-
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.ttf
|
532
|
-
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff
|
533
|
-
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff2
|
534
|
-
- test/dummy-authlogic/app/assets/javascripts/application.js
|
535
|
-
- test/dummy-authlogic/app/assets/javascripts/bootstrap.min.js
|
536
|
-
- test/dummy-authlogic/app/assets/javascripts/home.js
|
537
|
-
- test/dummy-authlogic/app/assets/stylesheets/application.css
|
538
|
-
- test/dummy-authlogic/app/assets/stylesheets/bootstrap-theme.min.css
|
539
|
-
- test/dummy-authlogic/app/assets/stylesheets/bootstrap.min.css
|
540
|
-
- test/dummy-authlogic/app/assets/stylesheets/home.css
|
541
|
-
- test/dummy-authlogic/app/controllers/application_controller.rb
|
542
|
-
- test/dummy-authlogic/app/controllers/home_controller.rb
|
543
|
-
- test/dummy-authlogic/app/controllers/user_sessions_controller.rb
|
466
|
+
- test/integration/navigation_test.rb
|
467
|
+
- test/dummy-sorcery/app/helpers/application_helper.rb
|
468
|
+
- test/dummy-sorcery/app/helpers/home_helper.rb
|
469
|
+
- test/dummy-sorcery/app/models/user.rb
|
470
|
+
- test/dummy-sorcery/app/assets/javascripts/home.js
|
471
|
+
- test/dummy-sorcery/app/assets/javascripts/bootstrap.min.js
|
472
|
+
- test/dummy-sorcery/app/assets/javascripts/application.js
|
473
|
+
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff
|
474
|
+
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.ttf
|
475
|
+
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.svg
|
476
|
+
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.eot
|
477
|
+
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff2
|
478
|
+
- test/dummy-sorcery/app/assets/stylesheets/home.css
|
479
|
+
- test/dummy-sorcery/app/assets/stylesheets/bootstrap.min.css
|
480
|
+
- test/dummy-sorcery/app/assets/stylesheets/bootstrap-theme.min.css
|
481
|
+
- test/dummy-sorcery/app/assets/stylesheets/application.css
|
482
|
+
- test/dummy-sorcery/app/views/home/index.html.erb
|
483
|
+
- test/dummy-sorcery/app/views/home/about.html.erb
|
484
|
+
- test/dummy-sorcery/app/views/layouts/application.html.erb
|
485
|
+
- test/dummy-sorcery/app/views/shared/_footer.html.erb
|
486
|
+
- test/dummy-sorcery/app/views/shared/_header.html.erb
|
487
|
+
- test/dummy-sorcery/app/controllers/application_controller.rb
|
488
|
+
- test/dummy-sorcery/app/controllers/home_controller.rb
|
489
|
+
- test/dummy-sorcery/public/404.html
|
490
|
+
- test/dummy-sorcery/public/favicon.ico
|
491
|
+
- test/dummy-sorcery/public/500.html
|
492
|
+
- test/dummy-sorcery/public/422.html
|
493
|
+
- test/dummy-sorcery/config/boot.rb
|
494
|
+
- test/dummy-sorcery/config/database.yml
|
495
|
+
- test/dummy-sorcery/config/application.rb
|
496
|
+
- test/dummy-sorcery/config/locales/en.yml
|
497
|
+
- test/dummy-sorcery/config/locales/devise.en.yml
|
498
|
+
- test/dummy-sorcery/config/routes.rb
|
499
|
+
- test/dummy-sorcery/config/environments/development.rb
|
500
|
+
- test/dummy-sorcery/config/environments/test.rb
|
501
|
+
- test/dummy-sorcery/config/environments/production.rb
|
502
|
+
- test/dummy-sorcery/config/secrets.yml
|
503
|
+
- test/dummy-sorcery/config/environment.rb
|
504
|
+
- test/dummy-sorcery/config/initializers/session_store.rb
|
505
|
+
- test/dummy-sorcery/config/initializers/sorcery.rb
|
506
|
+
- test/dummy-sorcery/config/initializers/cookies_serializer.rb
|
507
|
+
- test/dummy-sorcery/config/initializers/inflections.rb
|
508
|
+
- test/dummy-sorcery/config/initializers/backtrace_silencers.rb
|
509
|
+
- test/dummy-sorcery/config/initializers/mime_types.rb
|
510
|
+
- test/dummy-sorcery/config/initializers/assets.rb
|
511
|
+
- test/dummy-sorcery/config/initializers/wrap_parameters.rb
|
512
|
+
- test/dummy-sorcery/config/initializers/filter_parameter_logging.rb
|
513
|
+
- test/dummy-sorcery/config/initializers/any_login.rb
|
514
|
+
- test/dummy-sorcery/Rakefile
|
515
|
+
- test/dummy-sorcery/db/schema.rb
|
516
|
+
- test/dummy-sorcery/db/migrate/20151019154558_sorcery_core.rb
|
517
|
+
- test/dummy-sorcery/db/migrate/20150907190739_create_users.rb
|
518
|
+
- test/dummy-sorcery/db/migrate/20150907190846_add_devise_to_users.rb
|
519
|
+
- test/dummy-sorcery/db/migrate/20150909210357_populate_test_users.rb
|
520
|
+
- test/dummy-sorcery/config.ru
|
521
|
+
- test/dummy-sorcery/bin/rails
|
522
|
+
- test/dummy-sorcery/bin/rake
|
523
|
+
- test/dummy-sorcery/bin/bundle
|
524
|
+
- test/dummy-sorcery/bin/setup
|
525
|
+
- test/dummy-sorcery/README.rdoc
|
526
|
+
- test/any_login/collection_test.rb
|
527
|
+
- test/test_helper.rb
|
544
528
|
- test/dummy-authlogic/app/helpers/application_helper.rb
|
545
529
|
- test/dummy-authlogic/app/helpers/home_helper.rb
|
546
530
|
- test/dummy-authlogic/app/models/user.rb
|
547
531
|
- test/dummy-authlogic/app/models/user_session.rb
|
548
|
-
- test/dummy-authlogic/app/
|
532
|
+
- test/dummy-authlogic/app/assets/javascripts/home.js
|
533
|
+
- test/dummy-authlogic/app/assets/javascripts/bootstrap.min.js
|
534
|
+
- test/dummy-authlogic/app/assets/javascripts/application.js
|
535
|
+
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff
|
536
|
+
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.ttf
|
537
|
+
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.svg
|
538
|
+
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.eot
|
539
|
+
- test/dummy-authlogic/app/assets/fonts/glyphicons-halflings-regular.woff2
|
540
|
+
- test/dummy-authlogic/app/assets/stylesheets/home.css
|
541
|
+
- test/dummy-authlogic/app/assets/stylesheets/bootstrap.min.css
|
542
|
+
- test/dummy-authlogic/app/assets/stylesheets/bootstrap-theme.min.css
|
543
|
+
- test/dummy-authlogic/app/assets/stylesheets/application.css
|
544
|
+
- test/dummy-authlogic/app/views/user_sessions/new.html.erb
|
549
545
|
- test/dummy-authlogic/app/views/home/index.html.erb
|
546
|
+
- test/dummy-authlogic/app/views/home/about.html.erb
|
550
547
|
- test/dummy-authlogic/app/views/layouts/application.html.erb
|
551
548
|
- test/dummy-authlogic/app/views/shared/_footer.html.erb
|
552
549
|
- test/dummy-authlogic/app/views/shared/_header.html.erb
|
553
|
-
- test/dummy-authlogic/app/
|
554
|
-
- test/dummy-authlogic/
|
555
|
-
- test/dummy-authlogic/
|
556
|
-
- test/dummy-authlogic/
|
557
|
-
- test/dummy-authlogic/
|
558
|
-
- test/dummy-authlogic/
|
550
|
+
- test/dummy-authlogic/app/controllers/application_controller.rb
|
551
|
+
- test/dummy-authlogic/app/controllers/user_sessions_controller.rb
|
552
|
+
- test/dummy-authlogic/app/controllers/home_controller.rb
|
553
|
+
- test/dummy-authlogic/public/404.html
|
554
|
+
- test/dummy-authlogic/public/favicon.ico
|
555
|
+
- test/dummy-authlogic/public/500.html
|
556
|
+
- test/dummy-authlogic/public/422.html
|
559
557
|
- test/dummy-authlogic/config/boot.rb
|
560
558
|
- test/dummy-authlogic/config/database.yml
|
561
|
-
- test/dummy-authlogic/config/
|
559
|
+
- test/dummy-authlogic/config/application.rb
|
560
|
+
- test/dummy-authlogic/config/locales/en.yml
|
561
|
+
- test/dummy-authlogic/config/locales/devise.en.yml
|
562
|
+
- test/dummy-authlogic/config/routes.rb
|
562
563
|
- test/dummy-authlogic/config/environments/development.rb
|
563
|
-
- test/dummy-authlogic/config/environments/production.rb
|
564
564
|
- test/dummy-authlogic/config/environments/test.rb
|
565
|
-
- test/dummy-authlogic/config/
|
566
|
-
- test/dummy-authlogic/config/
|
567
|
-
- test/dummy-authlogic/config/
|
565
|
+
- test/dummy-authlogic/config/environments/production.rb
|
566
|
+
- test/dummy-authlogic/config/secrets.yml
|
567
|
+
- test/dummy-authlogic/config/environment.rb
|
568
|
+
- test/dummy-authlogic/config/initializers/session_store.rb
|
568
569
|
- test/dummy-authlogic/config/initializers/cookies_serializer.rb
|
569
|
-
- test/dummy-authlogic/config/initializers/filter_parameter_logging.rb
|
570
570
|
- test/dummy-authlogic/config/initializers/inflections.rb
|
571
|
+
- test/dummy-authlogic/config/initializers/backtrace_silencers.rb
|
571
572
|
- test/dummy-authlogic/config/initializers/mime_types.rb
|
572
|
-
- test/dummy-authlogic/config/initializers/
|
573
|
+
- test/dummy-authlogic/config/initializers/assets.rb
|
573
574
|
- test/dummy-authlogic/config/initializers/wrap_parameters.rb
|
574
|
-
- test/dummy-authlogic/config/
|
575
|
-
- test/dummy-authlogic/config/
|
576
|
-
- test/dummy-authlogic/
|
577
|
-
- test/dummy-authlogic/
|
578
|
-
- test/dummy-authlogic/config.ru
|
575
|
+
- test/dummy-authlogic/config/initializers/filter_parameter_logging.rb
|
576
|
+
- test/dummy-authlogic/config/initializers/any_login.rb
|
577
|
+
- test/dummy-authlogic/Rakefile
|
578
|
+
- test/dummy-authlogic/db/schema.rb
|
579
579
|
- test/dummy-authlogic/db/development.sqlite3
|
580
|
+
- test/dummy-authlogic/db/migrate/20150928123254_change_users.rb
|
580
581
|
- test/dummy-authlogic/db/migrate/20150907190739_create_users.rb
|
581
582
|
- test/dummy-authlogic/db/migrate/20150907190846_add_devise_to_users.rb
|
582
583
|
- test/dummy-authlogic/db/migrate/20150909210357_populate_test_users.rb
|
583
|
-
- test/dummy-authlogic/
|
584
|
-
- test/dummy-authlogic/
|
585
|
-
- test/dummy-authlogic/
|
586
|
-
- test/dummy-authlogic/
|
587
|
-
- test/dummy-authlogic/
|
588
|
-
- test/dummy-authlogic/public/favicon.ico
|
589
|
-
- test/dummy-authlogic/Rakefile
|
584
|
+
- test/dummy-authlogic/config.ru
|
585
|
+
- test/dummy-authlogic/bin/rails
|
586
|
+
- test/dummy-authlogic/bin/rake
|
587
|
+
- test/dummy-authlogic/bin/bundle
|
588
|
+
- test/dummy-authlogic/bin/setup
|
590
589
|
- test/dummy-authlogic/README.rdoc
|
591
|
-
- test/dummy
|
592
|
-
- test/dummy
|
593
|
-
- test/dummy
|
594
|
-
- test/dummy
|
595
|
-
- test/dummy
|
596
|
-
- test/dummy
|
597
|
-
- test/dummy
|
598
|
-
- test/dummy
|
599
|
-
- test/dummy
|
600
|
-
- test/dummy
|
601
|
-
- test/dummy
|
602
|
-
- test/dummy
|
603
|
-
- test/dummy
|
604
|
-
- test/dummy
|
590
|
+
- test/dummy/app/helpers/application_helper.rb
|
591
|
+
- test/dummy/app/helpers/home_helper.rb
|
592
|
+
- test/dummy/app/models/user.rb
|
593
|
+
- test/dummy/app/assets/javascripts/home.js
|
594
|
+
- test/dummy/app/assets/javascripts/bootstrap.min.js
|
595
|
+
- test/dummy/app/assets/javascripts/application.js
|
596
|
+
- test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff
|
597
|
+
- test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf
|
598
|
+
- test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg
|
599
|
+
- test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot
|
600
|
+
- test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2
|
601
|
+
- test/dummy/app/assets/stylesheets/home.css
|
602
|
+
- test/dummy/app/assets/stylesheets/bootstrap.min.css
|
603
|
+
- test/dummy/app/assets/stylesheets/bootstrap-theme.min.css
|
604
|
+
- test/dummy/app/assets/stylesheets/application.css
|
605
|
+
- test/dummy/app/views/home/index.html.erb
|
606
|
+
- test/dummy/app/views/home/about.html.erb
|
607
|
+
- test/dummy/app/views/layouts/application.html.erb
|
608
|
+
- test/dummy/app/views/shared/_footer.html.erb
|
609
|
+
- test/dummy/app/views/shared/_header.html.erb
|
610
|
+
- test/dummy/app/controllers/application_controller.rb
|
611
|
+
- test/dummy/app/controllers/home_controller.rb
|
612
|
+
- test/dummy/public/404.html
|
613
|
+
- test/dummy/public/favicon.ico
|
614
|
+
- test/dummy/public/500.html
|
615
|
+
- test/dummy/public/422.html
|
616
|
+
- test/dummy/config/boot.rb
|
617
|
+
- test/dummy/config/database.yml
|
618
|
+
- test/dummy/config/application.rb
|
619
|
+
- test/dummy/config/locales/en.yml
|
620
|
+
- test/dummy/config/locales/devise.en.yml
|
621
|
+
- test/dummy/config/routes.rb
|
622
|
+
- test/dummy/config/environments/development.rb
|
623
|
+
- test/dummy/config/environments/test.rb
|
624
|
+
- test/dummy/config/environments/production.rb
|
625
|
+
- test/dummy/config/secrets.yml
|
626
|
+
- test/dummy/config/environment.rb
|
627
|
+
- test/dummy/config/initializers/session_store.rb
|
628
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
629
|
+
- test/dummy/config/initializers/inflections.rb
|
630
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
631
|
+
- test/dummy/config/initializers/mime_types.rb
|
632
|
+
- test/dummy/config/initializers/assets.rb
|
633
|
+
- test/dummy/config/initializers/devise.rb
|
634
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
635
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
636
|
+
- test/dummy/config/initializers/any_login.rb
|
637
|
+
- test/dummy/Rakefile
|
638
|
+
- test/dummy/db/schema.rb
|
639
|
+
- test/dummy/db/test.sqlite3
|
640
|
+
- test/dummy/db/migrate/20150907190739_create_users.rb
|
641
|
+
- test/dummy/db/migrate/20150907190846_add_devise_to_users.rb
|
642
|
+
- test/dummy/db/migrate/20150909210357_populate_test_users.rb
|
643
|
+
- test/dummy/config.ru
|
644
|
+
- test/dummy/bin/rails
|
645
|
+
- test/dummy/bin/rake
|
646
|
+
- test/dummy/bin/bundle
|
647
|
+
- test/dummy/bin/setup
|
648
|
+
- test/dummy/README.rdoc
|
605
649
|
- test/dummy-clearance/app/helpers/application_helper.rb
|
606
650
|
- test/dummy-clearance/app/helpers/home_helper.rb
|
607
651
|
- test/dummy-clearance/app/models/user.rb
|
608
652
|
- test/dummy-clearance/app/models/user_session.rb
|
609
|
-
- test/dummy-clearance/app/
|
653
|
+
- test/dummy-clearance/app/assets/javascripts/home.js
|
654
|
+
- test/dummy-clearance/app/assets/javascripts/bootstrap.min.js
|
655
|
+
- test/dummy-clearance/app/assets/javascripts/application.js
|
656
|
+
- test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff
|
657
|
+
- test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.ttf
|
658
|
+
- test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.svg
|
659
|
+
- test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.eot
|
660
|
+
- test/dummy-clearance/app/assets/fonts/glyphicons-halflings-regular.woff2
|
661
|
+
- test/dummy-clearance/app/assets/stylesheets/home.css
|
662
|
+
- test/dummy-clearance/app/assets/stylesheets/bootstrap.min.css
|
663
|
+
- test/dummy-clearance/app/assets/stylesheets/bootstrap-theme.min.css
|
664
|
+
- test/dummy-clearance/app/assets/stylesheets/application.css
|
665
|
+
- test/dummy-clearance/app/views/user_sessions/new.html.erb
|
610
666
|
- test/dummy-clearance/app/views/home/index.html.erb
|
667
|
+
- test/dummy-clearance/app/views/home/about.html.erb
|
611
668
|
- test/dummy-clearance/app/views/layouts/application.html.erb
|
612
669
|
- test/dummy-clearance/app/views/shared/_footer.html.erb
|
613
670
|
- test/dummy-clearance/app/views/shared/_header.html.erb
|
614
|
-
- test/dummy-clearance/app/
|
615
|
-
- test/dummy-clearance/
|
616
|
-
- test/dummy-clearance/
|
617
|
-
- test/dummy-clearance/
|
618
|
-
- test/dummy-clearance/
|
619
|
-
- test/dummy-clearance/
|
671
|
+
- test/dummy-clearance/app/controllers/application_controller.rb
|
672
|
+
- test/dummy-clearance/app/controllers/home_controller.rb
|
673
|
+
- test/dummy-clearance/public/404.html
|
674
|
+
- test/dummy-clearance/public/favicon.ico
|
675
|
+
- test/dummy-clearance/public/500.html
|
676
|
+
- test/dummy-clearance/public/422.html
|
620
677
|
- test/dummy-clearance/config/boot.rb
|
621
678
|
- test/dummy-clearance/config/database.yml
|
622
|
-
- test/dummy-clearance/config/
|
679
|
+
- test/dummy-clearance/config/application.rb
|
680
|
+
- test/dummy-clearance/config/locales/en.yml
|
681
|
+
- test/dummy-clearance/config/locales/devise.en.yml
|
682
|
+
- test/dummy-clearance/config/routes.rb
|
623
683
|
- test/dummy-clearance/config/environments/development.rb
|
624
|
-
- test/dummy-clearance/config/environments/production.rb
|
625
684
|
- test/dummy-clearance/config/environments/test.rb
|
626
|
-
- test/dummy-clearance/config/
|
627
|
-
- test/dummy-clearance/config/
|
628
|
-
- test/dummy-clearance/config/
|
629
|
-
- test/dummy-clearance/config/initializers/
|
685
|
+
- test/dummy-clearance/config/environments/production.rb
|
686
|
+
- test/dummy-clearance/config/secrets.yml
|
687
|
+
- test/dummy-clearance/config/environment.rb
|
688
|
+
- test/dummy-clearance/config/initializers/session_store.rb
|
630
689
|
- test/dummy-clearance/config/initializers/cookies_serializer.rb
|
631
|
-
- test/dummy-clearance/config/initializers/filter_parameter_logging.rb
|
632
690
|
- test/dummy-clearance/config/initializers/inflections.rb
|
691
|
+
- test/dummy-clearance/config/initializers/backtrace_silencers.rb
|
633
692
|
- test/dummy-clearance/config/initializers/mime_types.rb
|
634
|
-
- test/dummy-clearance/config/initializers/
|
693
|
+
- test/dummy-clearance/config/initializers/assets.rb
|
694
|
+
- test/dummy-clearance/config/initializers/clearance.rb
|
635
695
|
- test/dummy-clearance/config/initializers/wrap_parameters.rb
|
636
|
-
- test/dummy-clearance/config/
|
637
|
-
- test/dummy-clearance/config/
|
638
|
-
- test/dummy-clearance/
|
639
|
-
- test/dummy-clearance/
|
640
|
-
- test/dummy-clearance/
|
641
|
-
- test/dummy-clearance/db/development.sqlite3
|
696
|
+
- test/dummy-clearance/config/initializers/filter_parameter_logging.rb
|
697
|
+
- test/dummy-clearance/config/initializers/any_login.rb
|
698
|
+
- test/dummy-clearance/Rakefile
|
699
|
+
- test/dummy-clearance/db/schema.rb
|
700
|
+
- test/dummy-clearance/db/migrate/20150928123254_change_users.rb
|
642
701
|
- test/dummy-clearance/db/migrate/20150907190739_create_users.rb
|
702
|
+
- test/dummy-clearance/db/migrate/20151007170422_add_clearance_to_users.rb
|
643
703
|
- test/dummy-clearance/db/migrate/20150907190846_add_devise_to_users.rb
|
644
704
|
- test/dummy-clearance/db/migrate/20150909210357_populate_test_users.rb
|
645
|
-
- test/dummy-clearance/
|
646
|
-
- test/dummy-clearance/
|
647
|
-
- test/dummy-clearance/
|
648
|
-
- test/dummy-clearance/
|
649
|
-
- test/dummy-clearance/
|
650
|
-
- test/dummy-clearance/public/500.html
|
651
|
-
- test/dummy-clearance/public/favicon.ico
|
652
|
-
- test/dummy-clearance/Rakefile
|
705
|
+
- test/dummy-clearance/config.ru
|
706
|
+
- test/dummy-clearance/bin/rails
|
707
|
+
- test/dummy-clearance/bin/rake
|
708
|
+
- test/dummy-clearance/bin/bundle
|
709
|
+
- test/dummy-clearance/bin/setup
|
653
710
|
- test/dummy-clearance/README.rdoc
|
654
|
-
- test/
|
655
|
-
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.svg
|
656
|
-
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.ttf
|
657
|
-
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff
|
658
|
-
- test/dummy-sorcery/app/assets/fonts/glyphicons-halflings-regular.woff2
|
659
|
-
- test/dummy-sorcery/app/assets/javascripts/application.js
|
660
|
-
- test/dummy-sorcery/app/assets/javascripts/bootstrap.min.js
|
661
|
-
- test/dummy-sorcery/app/assets/javascripts/home.js
|
662
|
-
- test/dummy-sorcery/app/assets/stylesheets/application.css
|
663
|
-
- test/dummy-sorcery/app/assets/stylesheets/bootstrap-theme.min.css
|
664
|
-
- test/dummy-sorcery/app/assets/stylesheets/bootstrap.min.css
|
665
|
-
- test/dummy-sorcery/app/assets/stylesheets/home.css
|
666
|
-
- test/dummy-sorcery/app/controllers/application_controller.rb
|
667
|
-
- test/dummy-sorcery/app/controllers/home_controller.rb
|
668
|
-
- test/dummy-sorcery/app/helpers/application_helper.rb
|
669
|
-
- test/dummy-sorcery/app/helpers/home_helper.rb
|
670
|
-
- test/dummy-sorcery/app/models/user.rb
|
671
|
-
- test/dummy-sorcery/app/views/home/about.html.erb
|
672
|
-
- test/dummy-sorcery/app/views/home/index.html.erb
|
673
|
-
- test/dummy-sorcery/app/views/layouts/application.html.erb
|
674
|
-
- test/dummy-sorcery/app/views/shared/_footer.html.erb
|
675
|
-
- test/dummy-sorcery/app/views/shared/_header.html.erb
|
676
|
-
- test/dummy-sorcery/bin/bundle
|
677
|
-
- test/dummy-sorcery/bin/rails
|
678
|
-
- test/dummy-sorcery/bin/rake
|
679
|
-
- test/dummy-sorcery/bin/setup
|
680
|
-
- test/dummy-sorcery/config/application.rb
|
681
|
-
- test/dummy-sorcery/config/boot.rb
|
682
|
-
- test/dummy-sorcery/config/database.yml
|
683
|
-
- test/dummy-sorcery/config/environment.rb
|
684
|
-
- test/dummy-sorcery/config/environments/development.rb
|
685
|
-
- test/dummy-sorcery/config/environments/production.rb
|
686
|
-
- test/dummy-sorcery/config/environments/test.rb
|
687
|
-
- test/dummy-sorcery/config/initializers/any_login.rb
|
688
|
-
- test/dummy-sorcery/config/initializers/assets.rb
|
689
|
-
- test/dummy-sorcery/config/initializers/backtrace_silencers.rb
|
690
|
-
- test/dummy-sorcery/config/initializers/cookies_serializer.rb
|
691
|
-
- test/dummy-sorcery/config/initializers/filter_parameter_logging.rb
|
692
|
-
- test/dummy-sorcery/config/initializers/inflections.rb
|
693
|
-
- test/dummy-sorcery/config/initializers/mime_types.rb
|
694
|
-
- test/dummy-sorcery/config/initializers/session_store.rb
|
695
|
-
- test/dummy-sorcery/config/initializers/sorcery.rb
|
696
|
-
- test/dummy-sorcery/config/initializers/wrap_parameters.rb
|
697
|
-
- test/dummy-sorcery/config/locales/devise.en.yml
|
698
|
-
- test/dummy-sorcery/config/locales/en.yml
|
699
|
-
- test/dummy-sorcery/config/routes.rb
|
700
|
-
- test/dummy-sorcery/config/secrets.yml
|
701
|
-
- test/dummy-sorcery/config.ru
|
702
|
-
- test/dummy-sorcery/db/development.sqlite3
|
703
|
-
- test/dummy-sorcery/db/migrate/20150907190739_create_users.rb
|
704
|
-
- test/dummy-sorcery/db/migrate/20150907190846_add_devise_to_users.rb
|
705
|
-
- test/dummy-sorcery/db/migrate/20150909210357_populate_test_users.rb
|
706
|
-
- test/dummy-sorcery/db/migrate/20151019154558_sorcery_core.rb
|
707
|
-
- test/dummy-sorcery/db/schema.rb
|
708
|
-
- test/dummy-sorcery/db/test.sqlite3
|
709
|
-
- test/dummy-sorcery/public/404.html
|
710
|
-
- test/dummy-sorcery/public/422.html
|
711
|
-
- test/dummy-sorcery/public/500.html
|
712
|
-
- test/dummy-sorcery/public/favicon.ico
|
713
|
-
- test/dummy-sorcery/Rakefile
|
714
|
-
- test/dummy-sorcery/README.rdoc
|
715
|
-
- test/integration/navigation_test.rb
|
716
|
-
- test/test_helper.rb
|
711
|
+
- test/any_login_test.rb
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|