janus 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +3 -0
- data/.gitignore +4 -0
- data/.travis.yml +18 -0
- data/LICENSE +20 -0
- data/README.rdoc +4 -5
- data/Rakefile +22 -0
- data/VERSION +1 -0
- data/certs/ysbaddaden.pem +21 -0
- data/janus.gemspec +28 -0
- data/lib/generators/janus/resource_generator.rb +17 -1
- data/lib/generators/templates/janus.rb +9 -5
- data/lib/generators/templates/mailer.rb +3 -0
- data/lib/generators/templates/mailer/confirmation_instructions.html.erb +7 -0
- data/lib/generators/templates/mailer/confirmation_instructions.text.erb +7 -0
- data/lib/generators/templates/mailer/reset_password_instructions.html.erb +9 -0
- data/lib/generators/templates/mailer/reset_password_instructions.text.erb +7 -0
- data/lib/janus.rb +3 -0
- data/lib/janus/config.rb +9 -3
- data/lib/janus/controllers/confirmations_controller.rb +1 -1
- data/lib/janus/controllers/internal_helpers.rb +8 -1
- data/lib/janus/controllers/passwords_controller.rb +1 -1
- data/lib/janus/controllers/registrations_controller.rb +1 -1
- data/lib/janus/controllers/sessions_controller.rb +6 -5
- data/lib/janus/models/confirmable.rb +2 -0
- data/lib/janus/models/database_authenticatable.rb +4 -2
- data/lib/janus/models/rememberable.rb +2 -0
- data/lib/janus/models/remote_authenticatable.rb +2 -0
- data/lib/janus/models/remote_token.rb +6 -5
- data/lib/janus/models/token_authenticatable.rb +79 -0
- data/lib/janus/models/trackable.rb +2 -0
- data/lib/janus/strategies.rb +1 -1
- data/lib/janus/strategies/token_authenticatable.rb +22 -0
- data/lib/janus/version.rb +10 -0
- data/test/fixtures/admins.yml +5 -0
- data/test/fixtures/users.yml +10 -0
- data/test/functional/admins/sessions_controller_test.rb +13 -0
- data/test/functional/home_controller_test.rb +8 -0
- data/test/functional/janus/mailer_test.rb +14 -0
- data/test/functional/janus/manager_test.rb +94 -0
- data/test/functional/users/confirmations_controller_test.rb +68 -0
- data/test/functional/users/passwords_controller_test.rb +131 -0
- data/test/functional/users/registrations_controller_test.rb +112 -0
- data/test/functional/users/sessions_controller_test.rb +100 -0
- data/test/functional/users_controller_test.rb +29 -0
- data/test/generators/install_generator_test.rb +16 -0
- data/test/generators/resource_generator_test.rb +80 -0
- data/test/integration/users/rememberable_test.rb +32 -0
- data/test/integration/users/remote_test.rb +72 -0
- data/test/integration/users/sessions_test.rb +18 -0
- data/test/integration/users/token_authenticatable_test.rb +42 -0
- data/test/integration/users/trackable_test.rb +22 -0
- data/test/rails_app/.gitignore +4 -0
- data/test/rails_app/Rakefile +7 -0
- data/test/rails_app/app/controllers/admins/sessions_controller.rb +11 -0
- data/test/rails_app/app/controllers/application_controller.rb +9 -0
- data/test/rails_app/app/controllers/blogs_controller.rb +6 -0
- data/test/rails_app/app/controllers/home_controller.rb +4 -0
- data/test/rails_app/app/controllers/users/confirmations_controller.rb +3 -0
- data/test/rails_app/app/controllers/users/passwords_controller.rb +3 -0
- data/test/rails_app/app/controllers/users/registrations_controller.rb +17 -0
- data/test/rails_app/app/controllers/users/sessions_controller.rb +11 -0
- data/test/rails_app/app/controllers/users_controller.rb +9 -0
- data/test/rails_app/app/helpers/application_helper.rb +2 -0
- data/test/rails_app/app/mailers/user_mailer.rb +3 -0
- data/test/rails_app/app/models/admin.rb +3 -0
- data/test/rails_app/app/models/remote_token.rb +6 -0
- data/test/rails_app/app/models/user.rb +8 -0
- data/test/rails_app/app/views/admins/sessions/new.html.erb +30 -0
- data/test/rails_app/app/views/blogs/show.html.erb +2 -0
- data/test/rails_app/app/views/home/index.html.erb +2 -0
- data/test/rails_app/app/views/layouts/application.html.erb +28 -0
- data/test/rails_app/app/views/user_mailer/confirmation_instructions.html.erb +7 -0
- data/test/rails_app/app/views/user_mailer/confirmation_instructions.text.erb +7 -0
- data/test/rails_app/app/views/user_mailer/reset_password_instructions.html.erb +9 -0
- data/test/rails_app/app/views/user_mailer/reset_password_instructions.text.erb +7 -0
- data/test/rails_app/app/views/users/confirmations/new.html.erb +16 -0
- data/test/rails_app/app/views/users/passwords/edit.html.erb +21 -0
- data/test/rails_app/app/views/users/passwords/new.html.erb +16 -0
- data/test/rails_app/app/views/users/registrations/edit.html.erb +31 -0
- data/test/rails_app/app/views/users/registrations/new.html.erb +26 -0
- data/test/rails_app/app/views/users/sessions/new.html.erb +30 -0
- data/test/rails_app/app/views/users/show.html.erb +2 -0
- data/test/rails_app/config.ru +4 -0
- data/test/rails_app/config/application.rb +43 -0
- data/test/rails_app/config/boot.rb +6 -0
- data/test/rails_app/config/database.yml +22 -0
- data/test/rails_app/config/environment.rb +5 -0
- data/test/rails_app/config/environments/development.rb +23 -0
- data/test/rails_app/config/environments/production.rb +50 -0
- data/test/rails_app/config/environments/test.rb +34 -0
- data/test/rails_app/config/initializers/janus.rb +25 -0
- data/test/rails_app/config/initializers/secret_token.rb +8 -0
- data/test/rails_app/config/initializers/session_store.rb +8 -0
- data/test/rails_app/config/locales/janus.en.yml +65 -0
- data/test/rails_app/config/routes.rb +13 -0
- data/test/rails_app/db/migrate/20110323153820_create_users.rb +40 -0
- data/test/rails_app/db/migrate/20110331153546_create_remote_tokens.rb +15 -0
- data/test/rails_app/db/migrate/20130412104138_create_admins.rb +10 -0
- data/test/rails_app/db/schema.rb +58 -0
- data/test/rails_app/db/seeds.rb +7 -0
- data/test/rails_app/lib/tasks/.gitkeep +0 -0
- data/test/rails_app/public/404.html +26 -0
- data/test/rails_app/public/422.html +26 -0
- data/test/rails_app/public/500.html +26 -0
- data/test/rails_app/script/rails +6 -0
- data/test/test_helper.rb +121 -0
- data/test/unit/confirmable_test.rb +36 -0
- data/test/unit/janus_test.rb +27 -0
- data/test/unit/rememberable_test.rb +47 -0
- data/test/unit/remote_authenticatable_test.rb +37 -0
- data/test/unit/remote_token_test.rb +9 -0
- data/test/unit/reset_password_test.rb +45 -0
- data/test/unit/token_authenticatable_test.rb +41 -0
- data/test/unit/trackable_test.rb +21 -0
- data/test/unit/user_test.rb +68 -0
- metadata +303 -21
- metadata.gz.sig +0 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TrackableTest < ActiveSupport::TestCase
|
4
|
+
test "track!" do
|
5
|
+
users(:julien).track!('127.0.0.1')
|
6
|
+
users(:julien).reload
|
7
|
+
|
8
|
+
assert_nil users(:julien).last_sign_in_at
|
9
|
+
assert_nil users(:julien).last_sign_in_ip
|
10
|
+
assert_not_nil users(:julien).current_sign_in_at
|
11
|
+
assert_equal '127.0.0.1', users(:julien).current_sign_in_ip
|
12
|
+
|
13
|
+
users(:julien).track!('127.0.0.2')
|
14
|
+
users(:julien).reload
|
15
|
+
|
16
|
+
assert_not_nil users(:julien).last_sign_in_at
|
17
|
+
assert_not_nil users(:julien).last_sign_in_ip
|
18
|
+
assert_not_nil users(:julien).current_sign_in_at
|
19
|
+
assert_equal '127.0.0.2', users(:julien).current_sign_in_ip
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UserTest < ActiveSupport::TestCase
|
4
|
+
setup do
|
5
|
+
@user = users(:julien)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "valid_password?" do
|
9
|
+
user = User.new(:password => "azerty")
|
10
|
+
assert user.valid_password?("azerty")
|
11
|
+
refute user.valid_password?("secret")
|
12
|
+
|
13
|
+
assert @user.valid_password?('secret')
|
14
|
+
assert users(:martha).valid_password?('vacances')
|
15
|
+
end
|
16
|
+
|
17
|
+
test "valid_password? with scrypt" do
|
18
|
+
with_encryptor :scrypt do
|
19
|
+
user = User.new(:password => "a good secret")
|
20
|
+
assert user.valid_password?("a good secret")
|
21
|
+
refute user.valid_password?("some lame guessing")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
test "should validate current_password on update" do
|
26
|
+
@user.update_attributes(:email => 'julien@example.fr', :current_password => 'secret')
|
27
|
+
assert @user.persisted?, @user.errors.to_xml
|
28
|
+
|
29
|
+
@user.update_attributes(:email => 'julien@example.fr', :current_password => 'bad secret')
|
30
|
+
assert @user.errors[:current_password].any?, @user.errors.to_xml
|
31
|
+
end
|
32
|
+
|
33
|
+
test "password" do
|
34
|
+
user = User.new(:password => "my pwd")
|
35
|
+
assert_equal "my pwd", user.password
|
36
|
+
assert_not_nil user.encrypted_password
|
37
|
+
end
|
38
|
+
|
39
|
+
test "should confirm password" do
|
40
|
+
user = User.create(:password => "my pwd", :password_confirmation => "my pwd")
|
41
|
+
assert user.errors[:password].empty?, user.errors.to_xml
|
42
|
+
|
43
|
+
user = User.create(:password => "my pwd", :password_confirmation => "my PWD")
|
44
|
+
assert user.errors[:password].any? || user.errors[:password_confirmation].any?, user.errors.to_xml
|
45
|
+
end
|
46
|
+
|
47
|
+
test "clean_up_passwords" do
|
48
|
+
user = User.new(:email => 'julien@example.com', :password => 'abc', :password_confirmation => 'def')
|
49
|
+
assert_not_nil user.email
|
50
|
+
assert_not_nil user.password
|
51
|
+
assert_not_nil user.password_confirmation
|
52
|
+
|
53
|
+
user.clean_up_passwords
|
54
|
+
assert_not_nil user.email
|
55
|
+
assert_nil user.password
|
56
|
+
assert_nil user.password_confirmation
|
57
|
+
end
|
58
|
+
|
59
|
+
test "should update" do
|
60
|
+
@user.update_attributes(:email => 'julien@example.fr')
|
61
|
+
assert @user.persisted?
|
62
|
+
end
|
63
|
+
|
64
|
+
test "find_for_database_authentication" do
|
65
|
+
assert_equal @user, User.find_for_database_authentication(:email => @user.email)
|
66
|
+
assert_equal users(:martha), User.find_for_database_authentication(:email => users(:martha).email)
|
67
|
+
end
|
68
|
+
end
|
metadata
CHANGED
@@ -1,46 +1,161 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: janus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Julien Portalier
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZqdWxp
|
14
|
+
ZW4xGTAXBgoJkiaJk/IsZAEZFglwb3J0YWxpZXIxEzARBgoJkiaJk/IsZAEZFgNj
|
15
|
+
b20wHhcNMTQwMTE0MjIzMTQ4WhcNMTUwMTE0MjIzMTQ4WjBBMQ8wDQYDVQQDDAZq
|
16
|
+
dWxpZW4xGTAXBgoJkiaJk/IsZAEZFglwb3J0YWxpZXIxEzARBgoJkiaJk/IsZAEZ
|
17
|
+
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDpxWuWRJXEz2+p
|
18
|
+
2EW4NOPzkKloRLWoj+WQnqhQKT46GbH3ToDId8AMELTDIKpTQFiG2ty6D7S4IBFv
|
19
|
+
7ceFKNk/EJc17mSYE1DzrtItor2/eeGC1zeNfvLjyDtyHKyKUZ891C1D0so5coUx
|
20
|
+
2YbDW5npFkJkPaA5GneH7DFaCoIFLrD7ekbzaZAjlH+EH2fhd1XLhSsPEIiE+OnD
|
21
|
+
ilWnsPoRJAZwQOiVAtvh7xuc+29uSNndIIm2rU00SxbJnzsAq9ZddwPpMU/UcQpD
|
22
|
+
4gCBCaNGzrLz4+upQdYEOuggM7rR3P934qfhIwb+aRGglqdNunmUrdCuhsGXrxq2
|
23
|
+
FvqwDvFZAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
+
BBQoESDCnNz3LmbpUzOrGeXOpk9sqjAfBgNVHREEGDAWgRRqdWxpZW5AcG9ydGFs
|
25
|
+
aWVyLmNvbTAfBgNVHRIEGDAWgRRqdWxpZW5AcG9ydGFsaWVyLmNvbTANBgkqhkiG
|
26
|
+
9w0BAQUFAAOCAQEAML4w0F/VF0gi5JqMqYSO05TakAauG8jQX0hov5H8M0Xhl79G
|
27
|
+
BdUllH0QEw0cP6J2g46zAk0FGHIGthx0OKKi5YMYTs/KPqOVIAcJslt2sGIC1Ukm
|
28
|
+
wpOWIg1XMe68+JVTktBKcBFAvc0pLtty1TgdSd2wr7KQgfmBU9I8G6AoPYhJOhkG
|
29
|
+
SHTTSX3ms2/XePuSnyOfir/AQC7U0NalnKLNdwY9gkEdNwiTf5Ga/lZVDQ607bow
|
30
|
+
KVqCN//9bevjMk5OiMi9X3Wu/GtVWDwC6OTWFWKd54KgbuWlakO8LC1SMmStnCIF
|
31
|
+
W4qpyMWMZMcB4ZN/0mUVzY5xwrislBtsmQVUSw==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
13
34
|
dependencies:
|
14
35
|
- !ruby/object:Gem::Dependency
|
15
36
|
name: addressable
|
16
37
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
38
|
requirements:
|
19
|
-
- -
|
39
|
+
- - '>='
|
20
40
|
- !ruby/object:Gem::Version
|
21
41
|
version: '0'
|
22
42
|
type: :runtime
|
23
43
|
prerelease: false
|
24
44
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
45
|
requirements:
|
27
|
-
- -
|
46
|
+
- - '>='
|
28
47
|
- !ruby/object:Gem::Version
|
29
48
|
version: '0'
|
30
|
-
|
31
|
-
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rails
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 3.0.0
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.0.0
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: sqlite3
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: bcrypt-ruby
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
type: :development
|
85
|
+
prerelease: false
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: scrypt
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: minitest
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: capybara
|
121
|
+
requirement: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
type: :development
|
127
|
+
prerelease: false
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
description: Authentication engine for Ruby on Rails
|
134
|
+
email:
|
135
|
+
- julien@portalier.com
|
32
136
|
executables: []
|
33
137
|
extensions: []
|
34
|
-
extra_rdoc_files:
|
35
|
-
- README.rdoc
|
138
|
+
extra_rdoc_files: []
|
36
139
|
files:
|
140
|
+
- .gitignore
|
141
|
+
- .travis.yml
|
142
|
+
- LICENSE
|
37
143
|
- README.rdoc
|
144
|
+
- Rakefile
|
145
|
+
- VERSION
|
146
|
+
- certs/ysbaddaden.pem
|
147
|
+
- janus.gemspec
|
38
148
|
- lib/generators/janus/install_generator.rb
|
39
149
|
- lib/generators/janus/resource_generator.rb
|
40
150
|
- lib/generators/templates/confirmations/new.html.erb
|
41
151
|
- lib/generators/templates/confirmations_controller.erb
|
42
152
|
- lib/generators/templates/janus.en.yml
|
43
153
|
- lib/generators/templates/janus.rb
|
154
|
+
- lib/generators/templates/mailer.rb
|
155
|
+
- lib/generators/templates/mailer/confirmation_instructions.html.erb
|
156
|
+
- lib/generators/templates/mailer/confirmation_instructions.text.erb
|
157
|
+
- lib/generators/templates/mailer/reset_password_instructions.html.erb
|
158
|
+
- lib/generators/templates/mailer/reset_password_instructions.text.erb
|
44
159
|
- lib/generators/templates/model.erb
|
45
160
|
- lib/generators/templates/passwords/edit.html.erb
|
46
161
|
- lib/generators/templates/passwords/new.html.erb
|
@@ -72,6 +187,7 @@ files:
|
|
72
187
|
- lib/janus/models/rememberable.rb
|
73
188
|
- lib/janus/models/remote_authenticatable.rb
|
74
189
|
- lib/janus/models/remote_token.rb
|
190
|
+
- lib/janus/models/token_authenticatable.rb
|
75
191
|
- lib/janus/models/trackable.rb
|
76
192
|
- lib/janus/rails.rb
|
77
193
|
- lib/janus/routes.rb
|
@@ -81,29 +197,195 @@ files:
|
|
81
197
|
- lib/janus/strategies/database_authenticatable.rb
|
82
198
|
- lib/janus/strategies/rememberable.rb
|
83
199
|
- lib/janus/strategies/remote_authenticatable.rb
|
200
|
+
- lib/janus/strategies/token_authenticatable.rb
|
84
201
|
- lib/janus/test_helper.rb
|
202
|
+
- lib/janus/version.rb
|
203
|
+
- test/fixtures/admins.yml
|
204
|
+
- test/fixtures/users.yml
|
205
|
+
- test/functional/admins/sessions_controller_test.rb
|
206
|
+
- test/functional/home_controller_test.rb
|
207
|
+
- test/functional/janus/mailer_test.rb
|
208
|
+
- test/functional/janus/manager_test.rb
|
209
|
+
- test/functional/users/confirmations_controller_test.rb
|
210
|
+
- test/functional/users/passwords_controller_test.rb
|
211
|
+
- test/functional/users/registrations_controller_test.rb
|
212
|
+
- test/functional/users/sessions_controller_test.rb
|
213
|
+
- test/functional/users_controller_test.rb
|
214
|
+
- test/generators/install_generator_test.rb
|
215
|
+
- test/generators/resource_generator_test.rb
|
216
|
+
- test/integration/users/rememberable_test.rb
|
217
|
+
- test/integration/users/remote_test.rb
|
218
|
+
- test/integration/users/sessions_test.rb
|
219
|
+
- test/integration/users/token_authenticatable_test.rb
|
220
|
+
- test/integration/users/trackable_test.rb
|
221
|
+
- test/rails_app/.gitignore
|
222
|
+
- test/rails_app/Rakefile
|
223
|
+
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
224
|
+
- test/rails_app/app/controllers/application_controller.rb
|
225
|
+
- test/rails_app/app/controllers/blogs_controller.rb
|
226
|
+
- test/rails_app/app/controllers/home_controller.rb
|
227
|
+
- test/rails_app/app/controllers/users/confirmations_controller.rb
|
228
|
+
- test/rails_app/app/controllers/users/passwords_controller.rb
|
229
|
+
- test/rails_app/app/controllers/users/registrations_controller.rb
|
230
|
+
- test/rails_app/app/controllers/users/sessions_controller.rb
|
231
|
+
- test/rails_app/app/controllers/users_controller.rb
|
232
|
+
- test/rails_app/app/helpers/application_helper.rb
|
233
|
+
- test/rails_app/app/mailers/user_mailer.rb
|
234
|
+
- test/rails_app/app/models/admin.rb
|
235
|
+
- test/rails_app/app/models/remote_token.rb
|
236
|
+
- test/rails_app/app/models/user.rb
|
237
|
+
- test/rails_app/app/views/admins/sessions/new.html.erb
|
238
|
+
- test/rails_app/app/views/blogs/show.html.erb
|
239
|
+
- test/rails_app/app/views/home/index.html.erb
|
240
|
+
- test/rails_app/app/views/layouts/application.html.erb
|
241
|
+
- test/rails_app/app/views/user_mailer/confirmation_instructions.html.erb
|
242
|
+
- test/rails_app/app/views/user_mailer/confirmation_instructions.text.erb
|
243
|
+
- test/rails_app/app/views/user_mailer/reset_password_instructions.html.erb
|
244
|
+
- test/rails_app/app/views/user_mailer/reset_password_instructions.text.erb
|
245
|
+
- test/rails_app/app/views/users/confirmations/new.html.erb
|
246
|
+
- test/rails_app/app/views/users/passwords/edit.html.erb
|
247
|
+
- test/rails_app/app/views/users/passwords/new.html.erb
|
248
|
+
- test/rails_app/app/views/users/registrations/edit.html.erb
|
249
|
+
- test/rails_app/app/views/users/registrations/new.html.erb
|
250
|
+
- test/rails_app/app/views/users/sessions/new.html.erb
|
251
|
+
- test/rails_app/app/views/users/show.html.erb
|
252
|
+
- test/rails_app/config.ru
|
253
|
+
- test/rails_app/config/application.rb
|
254
|
+
- test/rails_app/config/boot.rb
|
255
|
+
- test/rails_app/config/database.yml
|
256
|
+
- test/rails_app/config/environment.rb
|
257
|
+
- test/rails_app/config/environments/development.rb
|
258
|
+
- test/rails_app/config/environments/production.rb
|
259
|
+
- test/rails_app/config/environments/test.rb
|
260
|
+
- test/rails_app/config/initializers/janus.rb
|
261
|
+
- test/rails_app/config/initializers/secret_token.rb
|
262
|
+
- test/rails_app/config/initializers/session_store.rb
|
263
|
+
- test/rails_app/config/locales/janus.en.yml
|
264
|
+
- test/rails_app/config/routes.rb
|
265
|
+
- test/rails_app/db/migrate/20110323153820_create_users.rb
|
266
|
+
- test/rails_app/db/migrate/20110331153546_create_remote_tokens.rb
|
267
|
+
- test/rails_app/db/migrate/20130412104138_create_admins.rb
|
268
|
+
- test/rails_app/db/schema.rb
|
269
|
+
- test/rails_app/db/seeds.rb
|
270
|
+
- test/rails_app/lib/tasks/.gitkeep
|
271
|
+
- test/rails_app/public/404.html
|
272
|
+
- test/rails_app/public/422.html
|
273
|
+
- test/rails_app/public/500.html
|
274
|
+
- test/rails_app/script/rails
|
275
|
+
- test/test_helper.rb
|
276
|
+
- test/unit/confirmable_test.rb
|
277
|
+
- test/unit/janus_test.rb
|
278
|
+
- test/unit/rememberable_test.rb
|
279
|
+
- test/unit/remote_authenticatable_test.rb
|
280
|
+
- test/unit/remote_token_test.rb
|
281
|
+
- test/unit/reset_password_test.rb
|
282
|
+
- test/unit/token_authenticatable_test.rb
|
283
|
+
- test/unit/trackable_test.rb
|
284
|
+
- test/unit/user_test.rb
|
85
285
|
homepage: http://github.com/ysbaddaden/janus
|
86
|
-
licenses:
|
286
|
+
licenses:
|
287
|
+
- MIT
|
288
|
+
metadata: {}
|
87
289
|
post_install_message:
|
88
290
|
rdoc_options: []
|
89
291
|
require_paths:
|
90
292
|
- lib
|
91
293
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
294
|
requirements:
|
94
|
-
- -
|
295
|
+
- - '>='
|
95
296
|
- !ruby/object:Gem::Version
|
96
297
|
version: '0'
|
97
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
299
|
requirements:
|
100
|
-
- -
|
300
|
+
- - '>='
|
101
301
|
- !ruby/object:Gem::Version
|
102
302
|
version: '0'
|
103
303
|
requirements: []
|
104
304
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.
|
305
|
+
rubygems_version: 2.1.11
|
106
306
|
signing_key:
|
107
|
-
specification_version:
|
108
|
-
summary: Authentication engine for Ruby on Rails
|
109
|
-
test_files:
|
307
|
+
specification_version: 4
|
308
|
+
summary: Authentication engine for Ruby on Rails
|
309
|
+
test_files:
|
310
|
+
- test/fixtures/admins.yml
|
311
|
+
- test/fixtures/users.yml
|
312
|
+
- test/functional/admins/sessions_controller_test.rb
|
313
|
+
- test/functional/home_controller_test.rb
|
314
|
+
- test/functional/janus/mailer_test.rb
|
315
|
+
- test/functional/janus/manager_test.rb
|
316
|
+
- test/functional/users/confirmations_controller_test.rb
|
317
|
+
- test/functional/users/passwords_controller_test.rb
|
318
|
+
- test/functional/users/registrations_controller_test.rb
|
319
|
+
- test/functional/users/sessions_controller_test.rb
|
320
|
+
- test/functional/users_controller_test.rb
|
321
|
+
- test/generators/install_generator_test.rb
|
322
|
+
- test/generators/resource_generator_test.rb
|
323
|
+
- test/integration/users/rememberable_test.rb
|
324
|
+
- test/integration/users/remote_test.rb
|
325
|
+
- test/integration/users/sessions_test.rb
|
326
|
+
- test/integration/users/token_authenticatable_test.rb
|
327
|
+
- test/integration/users/trackable_test.rb
|
328
|
+
- test/rails_app/.gitignore
|
329
|
+
- test/rails_app/Rakefile
|
330
|
+
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
331
|
+
- test/rails_app/app/controllers/application_controller.rb
|
332
|
+
- test/rails_app/app/controllers/blogs_controller.rb
|
333
|
+
- test/rails_app/app/controllers/home_controller.rb
|
334
|
+
- test/rails_app/app/controllers/users/confirmations_controller.rb
|
335
|
+
- test/rails_app/app/controllers/users/passwords_controller.rb
|
336
|
+
- test/rails_app/app/controllers/users/registrations_controller.rb
|
337
|
+
- test/rails_app/app/controllers/users/sessions_controller.rb
|
338
|
+
- test/rails_app/app/controllers/users_controller.rb
|
339
|
+
- test/rails_app/app/helpers/application_helper.rb
|
340
|
+
- test/rails_app/app/mailers/user_mailer.rb
|
341
|
+
- test/rails_app/app/models/admin.rb
|
342
|
+
- test/rails_app/app/models/remote_token.rb
|
343
|
+
- test/rails_app/app/models/user.rb
|
344
|
+
- test/rails_app/app/views/admins/sessions/new.html.erb
|
345
|
+
- test/rails_app/app/views/blogs/show.html.erb
|
346
|
+
- test/rails_app/app/views/home/index.html.erb
|
347
|
+
- test/rails_app/app/views/layouts/application.html.erb
|
348
|
+
- test/rails_app/app/views/user_mailer/confirmation_instructions.html.erb
|
349
|
+
- test/rails_app/app/views/user_mailer/confirmation_instructions.text.erb
|
350
|
+
- test/rails_app/app/views/user_mailer/reset_password_instructions.html.erb
|
351
|
+
- test/rails_app/app/views/user_mailer/reset_password_instructions.text.erb
|
352
|
+
- test/rails_app/app/views/users/confirmations/new.html.erb
|
353
|
+
- test/rails_app/app/views/users/passwords/edit.html.erb
|
354
|
+
- test/rails_app/app/views/users/passwords/new.html.erb
|
355
|
+
- test/rails_app/app/views/users/registrations/edit.html.erb
|
356
|
+
- test/rails_app/app/views/users/registrations/new.html.erb
|
357
|
+
- test/rails_app/app/views/users/sessions/new.html.erb
|
358
|
+
- test/rails_app/app/views/users/show.html.erb
|
359
|
+
- test/rails_app/config.ru
|
360
|
+
- test/rails_app/config/application.rb
|
361
|
+
- test/rails_app/config/boot.rb
|
362
|
+
- test/rails_app/config/database.yml
|
363
|
+
- test/rails_app/config/environment.rb
|
364
|
+
- test/rails_app/config/environments/development.rb
|
365
|
+
- test/rails_app/config/environments/production.rb
|
366
|
+
- test/rails_app/config/environments/test.rb
|
367
|
+
- test/rails_app/config/initializers/janus.rb
|
368
|
+
- test/rails_app/config/initializers/secret_token.rb
|
369
|
+
- test/rails_app/config/initializers/session_store.rb
|
370
|
+
- test/rails_app/config/locales/janus.en.yml
|
371
|
+
- test/rails_app/config/routes.rb
|
372
|
+
- test/rails_app/db/migrate/20110323153820_create_users.rb
|
373
|
+
- test/rails_app/db/migrate/20110331153546_create_remote_tokens.rb
|
374
|
+
- test/rails_app/db/migrate/20130412104138_create_admins.rb
|
375
|
+
- test/rails_app/db/schema.rb
|
376
|
+
- test/rails_app/db/seeds.rb
|
377
|
+
- test/rails_app/lib/tasks/.gitkeep
|
378
|
+
- test/rails_app/public/404.html
|
379
|
+
- test/rails_app/public/422.html
|
380
|
+
- test/rails_app/public/500.html
|
381
|
+
- test/rails_app/script/rails
|
382
|
+
- test/test_helper.rb
|
383
|
+
- test/unit/confirmable_test.rb
|
384
|
+
- test/unit/janus_test.rb
|
385
|
+
- test/unit/rememberable_test.rb
|
386
|
+
- test/unit/remote_authenticatable_test.rb
|
387
|
+
- test/unit/remote_token_test.rb
|
388
|
+
- test/unit/reset_password_test.rb
|
389
|
+
- test/unit/token_authenticatable_test.rb
|
390
|
+
- test/unit/trackable_test.rb
|
391
|
+
- test/unit/user_test.rb
|