authlogic 3.8.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +7 -0
  2. data/lib/authlogic/acts_as_authentic/base.rb +33 -36
  3. data/lib/authlogic/acts_as_authentic/email.rb +8 -141
  4. data/lib/authlogic/acts_as_authentic/logged_in_status.rb +17 -10
  5. data/lib/authlogic/acts_as_authentic/login.rb +14 -165
  6. data/lib/authlogic/acts_as_authentic/magic_columns.rb +13 -10
  7. data/lib/authlogic/acts_as_authentic/password.rb +186 -254
  8. data/lib/authlogic/acts_as_authentic/perishable_token.rb +30 -22
  9. data/lib/authlogic/acts_as_authentic/persistence_token.rb +19 -18
  10. data/lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb +53 -0
  11. data/lib/authlogic/acts_as_authentic/queries/find_with_case.rb +83 -0
  12. data/lib/authlogic/acts_as_authentic/session_maintenance.rb +94 -62
  13. data/lib/authlogic/acts_as_authentic/single_access_token.rb +28 -14
  14. data/lib/authlogic/config.rb +29 -10
  15. data/lib/authlogic/controller_adapters/abstract_adapter.rb +43 -13
  16. data/lib/authlogic/controller_adapters/rack_adapter.rb +11 -5
  17. data/lib/authlogic/controller_adapters/rails_adapter.rb +11 -29
  18. data/lib/authlogic/controller_adapters/sinatra_adapter.rb +8 -2
  19. data/lib/authlogic/cookie_credentials.rb +63 -0
  20. data/lib/authlogic/crypto_providers/bcrypt.rb +24 -18
  21. data/lib/authlogic/crypto_providers/md5/v2.rb +35 -0
  22. data/lib/authlogic/crypto_providers/md5.rb +8 -6
  23. data/lib/authlogic/crypto_providers/scrypt.rb +24 -17
  24. data/lib/authlogic/crypto_providers/sha1/v2.rb +41 -0
  25. data/lib/authlogic/crypto_providers/sha1.rb +12 -5
  26. data/lib/authlogic/crypto_providers/sha256/v2.rb +58 -0
  27. data/lib/authlogic/crypto_providers/sha256.rb +18 -9
  28. data/lib/authlogic/crypto_providers/sha512/v2.rb +39 -0
  29. data/lib/authlogic/crypto_providers/sha512.rb +9 -26
  30. data/lib/authlogic/crypto_providers.rb +77 -1
  31. data/lib/authlogic/errors.rb +35 -0
  32. data/lib/authlogic/i18n/translator.rb +4 -1
  33. data/lib/authlogic/i18n.rb +29 -20
  34. data/lib/authlogic/random.rb +12 -28
  35. data/lib/authlogic/session/base.rb +2087 -33
  36. data/lib/authlogic/session/magic_column/assigns_last_request_at.rb +46 -0
  37. data/lib/authlogic/test_case/mock_controller.rb +7 -4
  38. data/lib/authlogic/test_case/mock_cookie_jar.rb +19 -3
  39. data/lib/authlogic/test_case/mock_logger.rb +2 -0
  40. data/lib/authlogic/test_case/mock_request.rb +8 -3
  41. data/lib/authlogic/test_case/rails_request_adapter.rb +5 -2
  42. data/lib/authlogic/test_case.rb +74 -2
  43. data/lib/authlogic/version.rb +22 -0
  44. data/lib/authlogic.rb +33 -54
  45. metadata +208 -234
  46. data/.github/ISSUE_TEMPLATE.md +0 -13
  47. data/.gitignore +0 -14
  48. data/.rubocop.yml +0 -33
  49. data/.rubocop_todo.yml +0 -391
  50. data/.travis.yml +0 -48
  51. data/CHANGELOG.md +0 -5
  52. data/CONTRIBUTING.md +0 -60
  53. data/Gemfile +0 -5
  54. data/LICENSE +0 -20
  55. data/README.md +0 -294
  56. data/Rakefile +0 -21
  57. data/authlogic.gemspec +0 -27
  58. data/lib/authlogic/acts_as_authentic/restful_authentication.rb +0 -70
  59. data/lib/authlogic/acts_as_authentic/validations_scope.rb +0 -32
  60. data/lib/authlogic/authenticates_many/association.rb +0 -50
  61. data/lib/authlogic/authenticates_many/base.rb +0 -65
  62. data/lib/authlogic/crypto_providers/aes256.rb +0 -66
  63. data/lib/authlogic/crypto_providers/wordpress.rb +0 -43
  64. data/lib/authlogic/regex.rb +0 -48
  65. data/lib/authlogic/session/activation.rb +0 -70
  66. data/lib/authlogic/session/active_record_trickery.rb +0 -61
  67. data/lib/authlogic/session/brute_force_protection.rb +0 -120
  68. data/lib/authlogic/session/callbacks.rb +0 -105
  69. data/lib/authlogic/session/cookies.rb +0 -244
  70. data/lib/authlogic/session/existence.rb +0 -93
  71. data/lib/authlogic/session/foundation.rb +0 -55
  72. data/lib/authlogic/session/http_auth.rb +0 -100
  73. data/lib/authlogic/session/id.rb +0 -48
  74. data/lib/authlogic/session/klass.rb +0 -70
  75. data/lib/authlogic/session/magic_columns.rb +0 -116
  76. data/lib/authlogic/session/magic_states.rb +0 -76
  77. data/lib/authlogic/session/params.rb +0 -116
  78. data/lib/authlogic/session/password.rb +0 -308
  79. data/lib/authlogic/session/perishable_token.rb +0 -23
  80. data/lib/authlogic/session/persistence.rb +0 -71
  81. data/lib/authlogic/session/priority_record.rb +0 -35
  82. data/lib/authlogic/session/scopes.rb +0 -119
  83. data/lib/authlogic/session/session.rb +0 -67
  84. data/lib/authlogic/session/timeout.rb +0 -103
  85. data/lib/authlogic/session/unauthorized_record.rb +0 -51
  86. data/lib/authlogic/session/validation.rb +0 -93
  87. data/test/acts_as_authentic_test/base_test.rb +0 -25
  88. data/test/acts_as_authentic_test/email_test.rb +0 -240
  89. data/test/acts_as_authentic_test/logged_in_status_test.rb +0 -62
  90. data/test/acts_as_authentic_test/login_test.rb +0 -156
  91. data/test/acts_as_authentic_test/magic_columns_test.rb +0 -27
  92. data/test/acts_as_authentic_test/password_test.rb +0 -249
  93. data/test/acts_as_authentic_test/perishable_token_test.rb +0 -90
  94. data/test/acts_as_authentic_test/persistence_token_test.rb +0 -56
  95. data/test/acts_as_authentic_test/restful_authentication_test.rb +0 -37
  96. data/test/acts_as_authentic_test/session_maintenance_test.rb +0 -96
  97. data/test/acts_as_authentic_test/single_access_test.rb +0 -44
  98. data/test/authenticates_many_test.rb +0 -31
  99. data/test/config_test.rb +0 -36
  100. data/test/crypto_provider_test/aes256_test.rb +0 -14
  101. data/test/crypto_provider_test/bcrypt_test.rb +0 -14
  102. data/test/crypto_provider_test/scrypt_test.rb +0 -14
  103. data/test/crypto_provider_test/sha1_test.rb +0 -23
  104. data/test/crypto_provider_test/sha256_test.rb +0 -14
  105. data/test/crypto_provider_test/sha512_test.rb +0 -14
  106. data/test/fixtures/companies.yml +0 -5
  107. data/test/fixtures/employees.yml +0 -17
  108. data/test/fixtures/projects.yml +0 -3
  109. data/test/fixtures/users.yml +0 -41
  110. data/test/gemfiles/Gemfile.rails-3.2.x +0 -7
  111. data/test/gemfiles/Gemfile.rails-4.0.x +0 -7
  112. data/test/gemfiles/Gemfile.rails-4.1.x +0 -7
  113. data/test/gemfiles/Gemfile.rails-4.2.x +0 -7
  114. data/test/gemfiles/Gemfile.rails-5.0.x +0 -6
  115. data/test/gemfiles/Gemfile.rails-5.1.x +0 -6
  116. data/test/gemfiles/Gemfile.rails-5.2.x +0 -6
  117. data/test/i18n/lol.yml +0 -4
  118. data/test/i18n_test.rb +0 -33
  119. data/test/libs/affiliate.rb +0 -7
  120. data/test/libs/company.rb +0 -6
  121. data/test/libs/employee.rb +0 -7
  122. data/test/libs/employee_session.rb +0 -2
  123. data/test/libs/ldaper.rb +0 -3
  124. data/test/libs/project.rb +0 -3
  125. data/test/libs/user.rb +0 -7
  126. data/test/libs/user_session.rb +0 -25
  127. data/test/random_test.rb +0 -43
  128. data/test/session_test/activation_test.rb +0 -43
  129. data/test/session_test/active_record_trickery_test.rb +0 -75
  130. data/test/session_test/brute_force_protection_test.rb +0 -108
  131. data/test/session_test/callbacks_test.rb +0 -34
  132. data/test/session_test/cookies_test.rb +0 -201
  133. data/test/session_test/credentials_test.rb +0 -0
  134. data/test/session_test/existence_test.rb +0 -75
  135. data/test/session_test/foundation_test.rb +0 -6
  136. data/test/session_test/http_auth_test.rb +0 -56
  137. data/test/session_test/id_test.rb +0 -17
  138. data/test/session_test/klass_test.rb +0 -40
  139. data/test/session_test/magic_columns_test.rb +0 -62
  140. data/test/session_test/magic_states_test.rb +0 -58
  141. data/test/session_test/params_test.rb +0 -53
  142. data/test/session_test/password_test.rb +0 -105
  143. data/test/session_test/perishability_test.rb +0 -15
  144. data/test/session_test/persistence_test.rb +0 -32
  145. data/test/session_test/scopes_test.rb +0 -60
  146. data/test/session_test/session_test.rb +0 -78
  147. data/test/session_test/timeout_test.rb +0 -82
  148. data/test/session_test/unauthorized_record_test.rb +0 -13
  149. data/test/session_test/validation_test.rb +0 -23
  150. data/test/test_helper.rb +0 -233
metadata CHANGED
@@ -1,165 +1,288 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
5
- prerelease:
4
+ version: 6.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ben Johnson
8
+ - Tieg Zaharia
9
+ - Jared Beck
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2018-02-08 00:00:00.000000000 Z
13
+ date: 2020-03-24 00:00:00.000000000 Z
13
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activemodel
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '5.2'
22
+ - - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: '6.1'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '5.2'
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: '6.1'
14
35
  - !ruby/object:Gem::Dependency
15
36
  name: activerecord
16
37
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
38
  requirements:
19
- - - ! '>='
39
+ - - ">="
20
40
  - !ruby/object:Gem::Version
21
- version: '3.2'
22
- - - <
41
+ version: '5.2'
42
+ - - "<"
23
43
  - !ruby/object:Gem::Version
24
- version: '5.3'
44
+ version: '6.1'
25
45
  type: :runtime
26
46
  prerelease: false
27
47
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
48
  requirements:
30
- - - ! '>='
49
+ - - ">="
31
50
  - !ruby/object:Gem::Version
32
- version: '3.2'
33
- - - <
51
+ version: '5.2'
52
+ - - "<"
34
53
  - !ruby/object:Gem::Version
35
- version: '5.3'
54
+ version: '6.1'
36
55
  - !ruby/object:Gem::Dependency
37
56
  name: activesupport
38
57
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
58
  requirements:
41
- - - ! '>='
59
+ - - ">="
42
60
  - !ruby/object:Gem::Version
43
- version: '3.2'
44
- - - <
61
+ version: '5.2'
62
+ - - "<"
45
63
  - !ruby/object:Gem::Version
46
- version: '5.3'
64
+ version: '6.1'
47
65
  type: :runtime
48
66
  prerelease: false
49
67
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
68
  requirements:
52
- - - ! '>='
69
+ - - ">="
53
70
  - !ruby/object:Gem::Version
54
- version: '3.2'
55
- - - <
71
+ version: '5.2'
72
+ - - "<"
56
73
  - !ruby/object:Gem::Version
57
- version: '5.3'
74
+ version: '6.1'
58
75
  - !ruby/object:Gem::Dependency
59
76
  name: request_store
60
77
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
78
  requirements:
63
- - - ~>
79
+ - - "~>"
64
80
  - !ruby/object:Gem::Version
65
81
  version: '1.0'
66
82
  type: :runtime
67
83
  prerelease: false
68
84
  version_requirements: !ruby/object:Gem::Requirement
69
- none: false
70
85
  requirements:
71
- - - ~>
86
+ - - "~>"
72
87
  - !ruby/object:Gem::Version
73
88
  version: '1.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: bcrypt
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.1'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: byebug
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '10.0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '10.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: coveralls
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 0.8.22
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 0.8.22
131
+ - !ruby/object:Gem::Dependency
132
+ name: minitest-reporters
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '1.3'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '1.3'
145
+ - !ruby/object:Gem::Dependency
146
+ name: mysql2
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 0.5.2
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 0.5.2
159
+ - !ruby/object:Gem::Dependency
160
+ name: pg
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: 1.1.4
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: 1.1.4
173
+ - !ruby/object:Gem::Dependency
174
+ name: rubocop
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: 0.67.2
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: 0.67.2
187
+ - !ruby/object:Gem::Dependency
188
+ name: rubocop-performance
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '1.1'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.1'
74
201
  - !ruby/object:Gem::Dependency
75
202
  name: scrypt
76
203
  requirement: !ruby/object:Gem::Requirement
77
- none: false
78
204
  requirements:
79
- - - ! '>='
205
+ - - ">="
80
206
  - !ruby/object:Gem::Version
81
207
  version: '1.2'
82
- - - <
208
+ - - "<"
83
209
  - !ruby/object:Gem::Version
84
210
  version: '4.0'
85
- type: :runtime
211
+ type: :development
86
212
  prerelease: false
87
213
  version_requirements: !ruby/object:Gem::Requirement
88
- none: false
89
214
  requirements:
90
- - - ! '>='
215
+ - - ">="
91
216
  - !ruby/object:Gem::Version
92
217
  version: '1.2'
93
- - - <
218
+ - - "<"
94
219
  - !ruby/object:Gem::Version
95
220
  version: '4.0'
96
221
  - !ruby/object:Gem::Dependency
97
- name: bcrypt
222
+ name: simplecov
98
223
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
224
  requirements:
101
- - - ~>
225
+ - - "~>"
102
226
  - !ruby/object:Gem::Version
103
- version: '3.1'
227
+ version: 0.16.1
104
228
  type: :development
105
229
  prerelease: false
106
230
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
231
  requirements:
109
- - - ~>
232
+ - - "~>"
110
233
  - !ruby/object:Gem::Version
111
- version: '3.1'
234
+ version: 0.16.1
112
235
  - !ruby/object:Gem::Dependency
113
- name: timecop
236
+ name: simplecov-console
114
237
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
238
  requirements:
117
- - - ~>
239
+ - - "~>"
118
240
  - !ruby/object:Gem::Version
119
- version: '0.7'
241
+ version: 0.4.2
120
242
  type: :development
121
243
  prerelease: false
122
244
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
245
  requirements:
125
- - - ~>
246
+ - - "~>"
126
247
  - !ruby/object:Gem::Version
127
- version: '0.7'
248
+ version: 0.4.2
128
249
  - !ruby/object:Gem::Dependency
129
- name: rubocop
250
+ name: sqlite3
130
251
  requirement: !ruby/object:Gem::Requirement
131
- none: false
132
252
  requirements:
133
- - - ~>
253
+ - - "~>"
134
254
  - !ruby/object:Gem::Version
135
- version: 0.41.2
255
+ version: 1.4.0
136
256
  type: :development
137
257
  prerelease: false
138
258
  version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
259
  requirements:
141
- - - ~>
260
+ - - "~>"
142
261
  - !ruby/object:Gem::Version
143
- version: 0.41.2
262
+ version: 1.4.0
263
+ - !ruby/object:Gem::Dependency
264
+ name: timecop
265
+ requirement: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - "~>"
268
+ - !ruby/object:Gem::Version
269
+ version: '0.7'
270
+ type: :development
271
+ prerelease: false
272
+ version_requirements: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - "~>"
275
+ - !ruby/object:Gem::Version
276
+ version: '0.7'
144
277
  description:
145
278
  email:
146
279
  - bjohnson@binarylogic.com
280
+ - tieg.zaharia@gmail.com
281
+ - jared@jaredbeck.com
147
282
  executables: []
148
283
  extensions: []
149
284
  extra_rdoc_files: []
150
285
  files:
151
- - .github/ISSUE_TEMPLATE.md
152
- - .gitignore
153
- - .rubocop.yml
154
- - .rubocop_todo.yml
155
- - .travis.yml
156
- - CHANGELOG.md
157
- - CONTRIBUTING.md
158
- - Gemfile
159
- - LICENSE
160
- - README.md
161
- - Rakefile
162
- - authlogic.gemspec
163
286
  - lib/authlogic.rb
164
287
  - lib/authlogic/acts_as_authentic/base.rb
165
288
  - lib/authlogic/acts_as_authentic/email.rb
@@ -169,210 +292,61 @@ files:
169
292
  - lib/authlogic/acts_as_authentic/password.rb
170
293
  - lib/authlogic/acts_as_authentic/perishable_token.rb
171
294
  - lib/authlogic/acts_as_authentic/persistence_token.rb
172
- - lib/authlogic/acts_as_authentic/restful_authentication.rb
295
+ - lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb
296
+ - lib/authlogic/acts_as_authentic/queries/find_with_case.rb
173
297
  - lib/authlogic/acts_as_authentic/session_maintenance.rb
174
298
  - lib/authlogic/acts_as_authentic/single_access_token.rb
175
- - lib/authlogic/acts_as_authentic/validations_scope.rb
176
- - lib/authlogic/authenticates_many/association.rb
177
- - lib/authlogic/authenticates_many/base.rb
178
299
  - lib/authlogic/config.rb
179
300
  - lib/authlogic/controller_adapters/abstract_adapter.rb
180
301
  - lib/authlogic/controller_adapters/rack_adapter.rb
181
302
  - lib/authlogic/controller_adapters/rails_adapter.rb
182
303
  - lib/authlogic/controller_adapters/sinatra_adapter.rb
304
+ - lib/authlogic/cookie_credentials.rb
183
305
  - lib/authlogic/crypto_providers.rb
184
- - lib/authlogic/crypto_providers/aes256.rb
185
306
  - lib/authlogic/crypto_providers/bcrypt.rb
186
307
  - lib/authlogic/crypto_providers/md5.rb
308
+ - lib/authlogic/crypto_providers/md5/v2.rb
187
309
  - lib/authlogic/crypto_providers/scrypt.rb
188
310
  - lib/authlogic/crypto_providers/sha1.rb
311
+ - lib/authlogic/crypto_providers/sha1/v2.rb
189
312
  - lib/authlogic/crypto_providers/sha256.rb
313
+ - lib/authlogic/crypto_providers/sha256/v2.rb
190
314
  - lib/authlogic/crypto_providers/sha512.rb
191
- - lib/authlogic/crypto_providers/wordpress.rb
315
+ - lib/authlogic/crypto_providers/sha512/v2.rb
316
+ - lib/authlogic/errors.rb
192
317
  - lib/authlogic/i18n.rb
193
318
  - lib/authlogic/i18n/translator.rb
194
319
  - lib/authlogic/random.rb
195
- - lib/authlogic/regex.rb
196
- - lib/authlogic/session/activation.rb
197
- - lib/authlogic/session/active_record_trickery.rb
198
320
  - lib/authlogic/session/base.rb
199
- - lib/authlogic/session/brute_force_protection.rb
200
- - lib/authlogic/session/callbacks.rb
201
- - lib/authlogic/session/cookies.rb
202
- - lib/authlogic/session/existence.rb
203
- - lib/authlogic/session/foundation.rb
204
- - lib/authlogic/session/http_auth.rb
205
- - lib/authlogic/session/id.rb
206
- - lib/authlogic/session/klass.rb
207
- - lib/authlogic/session/magic_columns.rb
208
- - lib/authlogic/session/magic_states.rb
209
- - lib/authlogic/session/params.rb
210
- - lib/authlogic/session/password.rb
211
- - lib/authlogic/session/perishable_token.rb
212
- - lib/authlogic/session/persistence.rb
213
- - lib/authlogic/session/priority_record.rb
214
- - lib/authlogic/session/scopes.rb
215
- - lib/authlogic/session/session.rb
216
- - lib/authlogic/session/timeout.rb
217
- - lib/authlogic/session/unauthorized_record.rb
218
- - lib/authlogic/session/validation.rb
321
+ - lib/authlogic/session/magic_column/assigns_last_request_at.rb
219
322
  - lib/authlogic/test_case.rb
220
323
  - lib/authlogic/test_case/mock_controller.rb
221
324
  - lib/authlogic/test_case/mock_cookie_jar.rb
222
325
  - lib/authlogic/test_case/mock_logger.rb
223
326
  - lib/authlogic/test_case/mock_request.rb
224
327
  - lib/authlogic/test_case/rails_request_adapter.rb
225
- - test/acts_as_authentic_test/base_test.rb
226
- - test/acts_as_authentic_test/email_test.rb
227
- - test/acts_as_authentic_test/logged_in_status_test.rb
228
- - test/acts_as_authentic_test/login_test.rb
229
- - test/acts_as_authentic_test/magic_columns_test.rb
230
- - test/acts_as_authentic_test/password_test.rb
231
- - test/acts_as_authentic_test/perishable_token_test.rb
232
- - test/acts_as_authentic_test/persistence_token_test.rb
233
- - test/acts_as_authentic_test/restful_authentication_test.rb
234
- - test/acts_as_authentic_test/session_maintenance_test.rb
235
- - test/acts_as_authentic_test/single_access_test.rb
236
- - test/authenticates_many_test.rb
237
- - test/config_test.rb
238
- - test/crypto_provider_test/aes256_test.rb
239
- - test/crypto_provider_test/bcrypt_test.rb
240
- - test/crypto_provider_test/scrypt_test.rb
241
- - test/crypto_provider_test/sha1_test.rb
242
- - test/crypto_provider_test/sha256_test.rb
243
- - test/crypto_provider_test/sha512_test.rb
244
- - test/fixtures/companies.yml
245
- - test/fixtures/employees.yml
246
- - test/fixtures/projects.yml
247
- - test/fixtures/users.yml
248
- - test/gemfiles/Gemfile.rails-3.2.x
249
- - test/gemfiles/Gemfile.rails-4.0.x
250
- - test/gemfiles/Gemfile.rails-4.1.x
251
- - test/gemfiles/Gemfile.rails-4.2.x
252
- - test/gemfiles/Gemfile.rails-5.0.x
253
- - test/gemfiles/Gemfile.rails-5.1.x
254
- - test/gemfiles/Gemfile.rails-5.2.x
255
- - test/i18n/lol.yml
256
- - test/i18n_test.rb
257
- - test/libs/affiliate.rb
258
- - test/libs/company.rb
259
- - test/libs/employee.rb
260
- - test/libs/employee_session.rb
261
- - test/libs/ldaper.rb
262
- - test/libs/project.rb
263
- - test/libs/user.rb
264
- - test/libs/user_session.rb
265
- - test/random_test.rb
266
- - test/session_test/activation_test.rb
267
- - test/session_test/active_record_trickery_test.rb
268
- - test/session_test/brute_force_protection_test.rb
269
- - test/session_test/callbacks_test.rb
270
- - test/session_test/cookies_test.rb
271
- - test/session_test/credentials_test.rb
272
- - test/session_test/existence_test.rb
273
- - test/session_test/foundation_test.rb
274
- - test/session_test/http_auth_test.rb
275
- - test/session_test/id_test.rb
276
- - test/session_test/klass_test.rb
277
- - test/session_test/magic_columns_test.rb
278
- - test/session_test/magic_states_test.rb
279
- - test/session_test/params_test.rb
280
- - test/session_test/password_test.rb
281
- - test/session_test/perishability_test.rb
282
- - test/session_test/persistence_test.rb
283
- - test/session_test/scopes_test.rb
284
- - test/session_test/session_test.rb
285
- - test/session_test/timeout_test.rb
286
- - test/session_test/unauthorized_record_test.rb
287
- - test/session_test/validation_test.rb
288
- - test/test_helper.rb
328
+ - lib/authlogic/version.rb
289
329
  homepage: http://github.com/binarylogic/authlogic
290
330
  licenses:
291
331
  - MIT
332
+ metadata: {}
292
333
  post_install_message:
293
334
  rdoc_options: []
294
335
  require_paths:
295
336
  - lib
296
337
  required_ruby_version: !ruby/object:Gem::Requirement
297
- none: false
298
338
  requirements:
299
- - - ! '>='
339
+ - - ">="
300
340
  - !ruby/object:Gem::Version
301
- version: '0'
341
+ version: 2.4.0
302
342
  required_rubygems_version: !ruby/object:Gem::Requirement
303
- none: false
304
343
  requirements:
305
- - - ! '>='
344
+ - - ">="
306
345
  - !ruby/object:Gem::Version
307
346
  version: '0'
308
347
  requirements: []
309
- rubyforge_project:
310
- rubygems_version: 1.8.23.2
348
+ rubygems_version: 3.0.3
311
349
  signing_key:
312
- specification_version: 3
313
- summary: A clean, simple, and unobtrusive ruby authentication solution.
314
- test_files:
315
- - test/acts_as_authentic_test/base_test.rb
316
- - test/acts_as_authentic_test/email_test.rb
317
- - test/acts_as_authentic_test/logged_in_status_test.rb
318
- - test/acts_as_authentic_test/login_test.rb
319
- - test/acts_as_authentic_test/magic_columns_test.rb
320
- - test/acts_as_authentic_test/password_test.rb
321
- - test/acts_as_authentic_test/perishable_token_test.rb
322
- - test/acts_as_authentic_test/persistence_token_test.rb
323
- - test/acts_as_authentic_test/restful_authentication_test.rb
324
- - test/acts_as_authentic_test/session_maintenance_test.rb
325
- - test/acts_as_authentic_test/single_access_test.rb
326
- - test/authenticates_many_test.rb
327
- - test/config_test.rb
328
- - test/crypto_provider_test/aes256_test.rb
329
- - test/crypto_provider_test/bcrypt_test.rb
330
- - test/crypto_provider_test/scrypt_test.rb
331
- - test/crypto_provider_test/sha1_test.rb
332
- - test/crypto_provider_test/sha256_test.rb
333
- - test/crypto_provider_test/sha512_test.rb
334
- - test/fixtures/companies.yml
335
- - test/fixtures/employees.yml
336
- - test/fixtures/projects.yml
337
- - test/fixtures/users.yml
338
- - test/gemfiles/Gemfile.rails-3.2.x
339
- - test/gemfiles/Gemfile.rails-4.0.x
340
- - test/gemfiles/Gemfile.rails-4.1.x
341
- - test/gemfiles/Gemfile.rails-4.2.x
342
- - test/gemfiles/Gemfile.rails-5.0.x
343
- - test/gemfiles/Gemfile.rails-5.1.x
344
- - test/gemfiles/Gemfile.rails-5.2.x
345
- - test/i18n/lol.yml
346
- - test/i18n_test.rb
347
- - test/libs/affiliate.rb
348
- - test/libs/company.rb
349
- - test/libs/employee.rb
350
- - test/libs/employee_session.rb
351
- - test/libs/ldaper.rb
352
- - test/libs/project.rb
353
- - test/libs/user.rb
354
- - test/libs/user_session.rb
355
- - test/random_test.rb
356
- - test/session_test/activation_test.rb
357
- - test/session_test/active_record_trickery_test.rb
358
- - test/session_test/brute_force_protection_test.rb
359
- - test/session_test/callbacks_test.rb
360
- - test/session_test/cookies_test.rb
361
- - test/session_test/credentials_test.rb
362
- - test/session_test/existence_test.rb
363
- - test/session_test/foundation_test.rb
364
- - test/session_test/http_auth_test.rb
365
- - test/session_test/id_test.rb
366
- - test/session_test/klass_test.rb
367
- - test/session_test/magic_columns_test.rb
368
- - test/session_test/magic_states_test.rb
369
- - test/session_test/params_test.rb
370
- - test/session_test/password_test.rb
371
- - test/session_test/perishability_test.rb
372
- - test/session_test/persistence_test.rb
373
- - test/session_test/scopes_test.rb
374
- - test/session_test/session_test.rb
375
- - test/session_test/timeout_test.rb
376
- - test/session_test/unauthorized_record_test.rb
377
- - test/session_test/validation_test.rb
378
- - test/test_helper.rb
350
+ specification_version: 4
351
+ summary: An unobtrusive ruby authentication library based on ActiveRecord.
352
+ test_files: []
@@ -1,13 +0,0 @@
1
- Thanks for your interest in authlogic! Our volunteers' time is limited, so we
2
- can only respond on GitHub to bug reports and feature requests. Please ask
3
- usage questions on StackOverflow so that the whole community has a chance to
4
- answer your question.
5
-
6
- http://stackoverflow.com/questions/tagged/authlogic
7
-
8
- Do not disclose security issues in public. See our contributing guide
9
- for instructions.
10
-
11
- https://github.com/binarylogic/authlogic/blob/master/CONTRIBUTING.md
12
-
13
- Thanks for your contribution!
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- .DS_Store
2
- .swp
3
- *.log
4
- *.sqlite3
5
- pkg/*
6
- coverage/*
7
- doc/*
8
- benchmarks/*
9
- .rvmrc
10
- test/gemfiles/Gemfile*.lock
11
- .bundle
12
- Gemfile.lock
13
- .ruby-gemset
14
- .ruby-version
data/.rubocop.yml DELETED
@@ -1,33 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- # You can run the authlogic test suite with any supported version of MRI, but the
5
- # linter will only care about this `TargetRubyVersion`. This should be set to the
6
- # lowest version of MRI that authlogic supports.
7
- TargetRubyVersion: 1.9
8
-
9
- # Compared to metrics like AbcSize, MethodLength has questionable value.
10
- Metrics/MethodLength:
11
- Enabled: false
12
-
13
- # Please use normal indentation when aligning parameters.
14
- #
15
- # Good:
16
- #
17
- # method_call(
18
- # a,
19
- # b
20
- # )
21
- #
22
- # method_call(a,
23
- # b
24
- # )
25
- #
26
- # Bad:
27
- #
28
- # method_call(a,
29
- # b)
30
- #
31
- # The latter is harder to maintain and uses too much horizontal space.
32
- Style/AlignParameters:
33
- EnforcedStyle: with_fixed_indentation