authlogic 3.8.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
data/.rubocop_todo.yml DELETED
@@ -1,391 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2016-07-18 00:47:31 -0400 using RuboCop version 0.41.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- Lint/AmbiguousOperator:
10
- Exclude:
11
- - 'lib/authlogic/acts_as_authentic/password.rb'
12
- - 'lib/authlogic/session/callbacks.rb'
13
-
14
- # Configuration parameters: AllowSafeAssignment.
15
- Lint/AssignmentInCondition:
16
- Exclude:
17
- - 'lib/authlogic/test_case/mock_cookie_jar.rb'
18
-
19
- # Cop supports --auto-correct.
20
- # Configuration parameters: AlignWith, SupportedStyles.
21
- # SupportedStyles: either, start_of_block, start_of_line
22
- Lint/BlockAlignment:
23
- Exclude:
24
- - 'lib/authlogic.rb'
25
-
26
- # Cop supports --auto-correct.
27
- # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
28
- # SupportedStyles: keyword, variable, start_of_line
29
- Lint/EndAlignment:
30
- Exclude:
31
- - 'lib/authlogic/acts_as_authentic/login.rb'
32
- - 'lib/authlogic/session/scopes.rb'
33
-
34
- Lint/Loop:
35
- Exclude:
36
- - 'lib/authlogic/acts_as_authentic/persistence_token.rb'
37
-
38
- Lint/ShadowingOuterLocalVariable:
39
- Exclude:
40
- - 'lib/authlogic/session/cookies.rb'
41
- - 'lib/authlogic/session/password.rb'
42
-
43
- # Cop supports --auto-correct.
44
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
45
- Lint/UnusedBlockArgument:
46
- Exclude:
47
- - 'lib/authlogic/crypto_providers/wordpress.rb'
48
- - 'lib/authlogic/random.rb'
49
- - 'lib/authlogic/session/callbacks.rb'
50
-
51
- # Cop supports --auto-correct.
52
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
53
- Lint/UnusedMethodArgument:
54
- Exclude:
55
- - 'lib/authlogic/acts_as_authentic/base.rb'
56
- - 'lib/authlogic/acts_as_authentic/password.rb'
57
- - 'lib/authlogic/session/activation.rb'
58
- - 'lib/authlogic/session/active_record_trickery.rb'
59
- - 'lib/authlogic/session/existence.rb'
60
- - 'lib/authlogic/session/scopes.rb'
61
- - 'lib/authlogic/test_case/mock_controller.rb'
62
- - 'lib/authlogic/test_case/mock_cookie_jar.rb'
63
- - 'test/i18n_test.rb'
64
- - 'test/test_helper.rb'
65
-
66
- Lint/UselessAccessModifier:
67
- Exclude:
68
- - 'lib/authlogic/acts_as_authentic/password.rb'
69
-
70
- Metrics/AbcSize:
71
- Max: 82
72
-
73
- Metrics/ClassLength:
74
- Enabled: false
75
-
76
- Metrics/CyclomaticComplexity:
77
- Max: 12
78
-
79
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
80
- # URISchemes: http, https
81
- Metrics/LineLength:
82
- Max: 130
83
-
84
- Metrics/ModuleLength:
85
- Enabled: false
86
-
87
- Metrics/PerceivedComplexity:
88
- Max: 13
89
-
90
- # Cop supports --auto-correct.
91
- Performance/RedundantBlockCall:
92
- Exclude:
93
- - 'lib/authlogic/controller_adapters/abstract_adapter.rb'
94
-
95
- Style/AccessorMethodName:
96
- Exclude:
97
- - 'lib/authlogic/acts_as_authentic/session_maintenance.rb'
98
- - 'test/test_helper.rb'
99
-
100
- # Cop supports --auto-correct.
101
- # Configuration parameters: EnforcedStyle, SupportedStyles.
102
- # SupportedStyles: prefer_alias, prefer_alias_method
103
- Style/Alias:
104
- Enabled: false
105
-
106
- # Cop supports --auto-correct.
107
- Style/AlignArray:
108
- Exclude:
109
- - 'test/acts_as_authentic_test/email_test.rb'
110
-
111
- # Cop supports --auto-correct.
112
- # Configuration parameters: EnforcedStyle, SupportedStyles.
113
- # SupportedStyles: always, conditionals
114
- Style/AndOr:
115
- Exclude:
116
- - 'lib/authlogic/controller_adapters/abstract_adapter.rb'
117
- - 'test/acts_as_authentic_test/password_test.rb'
118
-
119
- # Cop supports --auto-correct.
120
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
121
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
122
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
123
- # FunctionalMethods: let, let!, subject, watch
124
- # IgnoredMethods: lambda, proc, it
125
- Style/BlockDelimiters:
126
- Exclude:
127
- - 'test/config_test.rb'
128
-
129
- # Cop supports --auto-correct.
130
- # Configuration parameters: EnforcedStyle, SupportedStyles.
131
- # SupportedStyles: braces, no_braces, context_dependent
132
- Style/BracesAroundHashParameters:
133
- Exclude:
134
- - 'lib/authlogic/acts_as_authentic/email.rb'
135
- - 'lib/authlogic/acts_as_authentic/login.rb'
136
- - 'lib/authlogic/acts_as_authentic/password.rb'
137
- - 'lib/authlogic/session/active_record_trickery.rb'
138
- - 'test/acts_as_authentic_test/email_test.rb'
139
- - 'test/acts_as_authentic_test/login_test.rb'
140
-
141
- # Configuration parameters: EnforcedStyle, SupportedStyles.
142
- # SupportedStyles: nested, compact
143
- Style/ClassAndModuleChildren:
144
- Exclude:
145
- - 'test/test_helper.rb'
146
-
147
- # Cop supports --auto-correct.
148
- # Configuration parameters: EnforcedStyle, SupportedStyles.
149
- # SupportedStyles: is_a?, kind_of?
150
- Style/ClassCheck:
151
- Exclude:
152
- - 'test/acts_as_authentic_test/email_test.rb'
153
-
154
- Style/ClassVars:
155
- Exclude:
156
- - 'lib/authlogic/i18n.rb'
157
-
158
- # Cop supports --auto-correct.
159
- # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
160
- # SupportedStyles: assign_to_condition, assign_inside_condition
161
- Style/ConditionalAssignment:
162
- Enabled: false
163
-
164
- Style/ConstantName:
165
- Exclude:
166
- - 'lib/authlogic/random.rb'
167
-
168
- Style/Documentation:
169
- Enabled: false
170
-
171
- # Cop supports --auto-correct.
172
- Style/ElseAlignment:
173
- Exclude:
174
- - 'lib/authlogic/acts_as_authentic/login.rb'
175
- - 'lib/authlogic/session/scopes.rb'
176
-
177
- # Cop supports --auto-correct.
178
- # Configuration parameters: EnforcedStyle, SupportedStyles.
179
- # SupportedStyles: empty, nil, both
180
- Style/EmptyElse:
181
- Exclude:
182
- - 'lib/authlogic/session/persistence.rb'
183
-
184
- # Cop supports --auto-correct.
185
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
186
- Style/ExtraSpacing:
187
- Exclude:
188
- - 'test/acts_as_authentic_test/email_test.rb'
189
-
190
- # Cop supports --auto-correct.
191
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
192
- # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
193
- Style/FirstParameterIndentation:
194
- Exclude:
195
- - 'lib/authlogic/session/brute_force_protection.rb'
196
-
197
- # Cop supports --auto-correct.
198
- # Configuration parameters: EnforcedStyle, SupportedStyles.
199
- # SupportedStyles: when_needed, always
200
- Style/FrozenStringLiteralComment:
201
- Enabled: false
202
-
203
- # Configuration parameters: MinBodyLength.
204
- Style/GuardClause:
205
- Enabled: false
206
-
207
- # Cop supports --auto-correct.
208
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
209
- # SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
210
- Style/HashSyntax:
211
- Enabled: false
212
-
213
- # Cop supports --auto-correct.
214
- # Configuration parameters: MaxLineLength.
215
- Style/IfUnlessModifier:
216
- Exclude:
217
- - 'test/test_helper.rb'
218
-
219
- # Cop supports --auto-correct.
220
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
221
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
222
- Style/IndentArray:
223
- Exclude:
224
- - 'lib/authlogic.rb'
225
-
226
- # Cop supports --auto-correct.
227
- # Configuration parameters: IndentationWidth.
228
- Style/IndentAssignment:
229
- Exclude:
230
- - 'lib/authlogic/session/password.rb'
231
-
232
- # Cop supports --auto-correct.
233
- # Configuration parameters: EnforcedStyle, SupportedStyles.
234
- # SupportedStyles: normal, rails
235
- Style/IndentationConsistency:
236
- Enabled: false
237
-
238
- # Cop supports --auto-correct.
239
- # Configuration parameters: Width.
240
- Style/IndentationWidth:
241
- Exclude:
242
- - 'lib/authlogic/acts_as_authentic/login.rb'
243
- - 'lib/authlogic/session/scopes.rb'
244
- - 'test/session_test/callbacks_test.rb'
245
-
246
- # Cop supports --auto-correct.
247
- # Configuration parameters: EnforcedStyle, SupportedStyles.
248
- # SupportedStyles: line_count_dependent, lambda, literal
249
- Style/Lambda:
250
- Exclude:
251
- - 'lib/authlogic/acts_as_authentic/logged_in_status.rb'
252
-
253
- # Configuration parameters: EnforcedStyle, SupportedStyles.
254
- # SupportedStyles: module_function, extend_self
255
- Style/ModuleFunction:
256
- Exclude:
257
- - 'lib/authlogic/random.rb'
258
-
259
- Style/MultilineOperationIndentation:
260
- Enabled: false
261
-
262
- Style/MultilineTernaryOperator:
263
- Exclude:
264
- - 'lib/authlogic/acts_as_authentic/password.rb'
265
- - 'lib/authlogic/session/password.rb'
266
- - 'lib/authlogic/session/session.rb'
267
-
268
- # Cop supports --auto-correct.
269
- Style/MutableConstant:
270
- Exclude:
271
- - 'lib/authlogic/acts_as_authentic/password.rb'
272
- - 'lib/authlogic/crypto_providers/scrypt.rb'
273
- - 'lib/authlogic/crypto_providers/wordpress.rb'
274
- - 'lib/authlogic/session/callbacks.rb'
275
- - 'test/acts_as_authentic_test/email_test.rb'
276
- - 'test/acts_as_authentic_test/logged_in_status_test.rb'
277
-
278
- # Cop supports --auto-correct.
279
- Style/NegatedIf:
280
- Exclude:
281
- - 'lib/authlogic/acts_as_authentic/base.rb'
282
- - 'lib/authlogic/acts_as_authentic/logged_in_status.rb'
283
- - 'lib/authlogic/acts_as_authentic/perishable_token.rb'
284
- - 'lib/authlogic/acts_as_authentic/restful_authentication.rb'
285
- - 'lib/authlogic/acts_as_authentic/single_access_token.rb'
286
- - 'lib/authlogic/session/active_record_trickery.rb'
287
- - 'lib/authlogic/session/cookies.rb'
288
- - 'lib/authlogic/session/klass.rb'
289
- - 'lib/authlogic/session/params.rb'
290
- - 'lib/authlogic/session/password.rb'
291
- - 'lib/authlogic/session/persistence.rb'
292
-
293
- # Cop supports --auto-correct.
294
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
295
- # SupportedStyles: skip_modifier_ifs, always
296
- Style/Next:
297
- Enabled: false
298
-
299
- # Cop supports --auto-correct.
300
- Style/Not:
301
- Exclude:
302
- - 'lib/authlogic/acts_as_authentic/login.rb'
303
-
304
- # Cop supports --auto-correct.
305
- Style/ParallelAssignment:
306
- Exclude:
307
- - 'test/random_test.rb'
308
-
309
- # Cop supports --auto-correct.
310
- # Configuration parameters: AllowSafeAssignment.
311
- Style/ParenthesesAroundCondition:
312
- Exclude:
313
- - 'test/test_helper.rb'
314
-
315
- # Cop supports --auto-correct.
316
- # Configuration parameters: PreferredDelimiters.
317
- Style/PercentLiteralDelimiters:
318
- Exclude:
319
- - 'authlogic.gemspec'
320
-
321
- # Cop supports --auto-correct.
322
- Style/Proc:
323
- Exclude:
324
- - 'lib/authlogic/acts_as_authentic/email.rb'
325
- - 'lib/authlogic/session/http_auth.rb'
326
- - 'test/acts_as_authentic_test/email_test.rb'
327
-
328
- # Cop supports --auto-correct.
329
- # Configuration parameters: SupportedStyles.
330
- # SupportedStyles: compact, exploded
331
- Style/RaiseArgs:
332
- EnforcedStyle: compact
333
-
334
- # Cop supports --auto-correct.
335
- Style/RedundantBegin:
336
- Exclude:
337
- - 'lib/authlogic/acts_as_authentic/base.rb'
338
- - 'lib/authlogic/crypto_providers/bcrypt.rb'
339
- - 'lib/authlogic/crypto_providers/scrypt.rb'
340
-
341
- # Cop supports --auto-correct.
342
- # Configuration parameters: AllowMultipleReturnValues.
343
- Style/RedundantReturn:
344
- Exclude:
345
- - 'lib/authlogic/acts_as_authentic/session_maintenance.rb'
346
- - 'test/libs/user_session.rb'
347
-
348
- # Cop supports --auto-correct.
349
- Style/RedundantSelf:
350
- Exclude:
351
- - 'lib/authlogic/acts_as_authentic/perishable_token.rb'
352
- - 'lib/authlogic/acts_as_authentic/restful_authentication.rb'
353
- - 'lib/authlogic/controller_adapters/rack_adapter.rb'
354
-
355
- # Cop supports --auto-correct.
356
- Style/RescueModifier:
357
- Exclude:
358
- - 'lib/authlogic/acts_as_authentic/session_maintenance.rb'
359
-
360
- # Cop supports --auto-correct.
361
- # Configuration parameters: SupportedStyles.
362
- # SupportedStyles: use_perl_names, use_english_names
363
- Style/SpecialGlobalVars:
364
- EnforcedStyle: use_perl_names
365
-
366
- # Cop supports --auto-correct.
367
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
368
- # SupportedStyles: single_quotes, double_quotes
369
- Style/StringLiterals:
370
- Enabled: false
371
-
372
- # Cop supports --auto-correct.
373
- # Configuration parameters: EnforcedStyle, SupportedStyles.
374
- # SupportedStyles: single_quotes, double_quotes
375
- Style/StringLiteralsInInterpolation:
376
- Exclude:
377
- - 'lib/authlogic/authenticates_many/base.rb'
378
- - 'lib/authlogic/session/foundation.rb'
379
-
380
- # Cop supports --auto-correct.
381
- # Configuration parameters: IgnoredMethods.
382
- # IgnoredMethods: respond_to, define_method
383
- Style/SymbolProc:
384
- Exclude:
385
- - 'lib/authlogic/acts_as_authentic/persistence_token.rb'
386
-
387
- # Cop supports --auto-correct.
388
- # Configuration parameters: SupportedStyles, MinSize, WordRegex.
389
- # SupportedStyles: percent, brackets
390
- Style/WordArray:
391
- EnforcedStyle: brackets
data/.travis.yml DELETED
@@ -1,48 +0,0 @@
1
- language: ruby
2
-
3
- # cache: bundler
4
- # We would like to enable travis' bundler cache (cache: bundler) but for some reason
5
- # travis installs our bundle under the test directory (test/vendor/bundle/*) and, as a
6
- # result, travis tries to run all of the tests of all of our dependencies!
7
- # TODO: There's probably a way to configure the bundle path
8
-
9
- before_install:
10
- - gem update bundler
11
-
12
- rvm:
13
- - 1.9.3
14
- - 2.1.10
15
- - 2.2.6
16
- - 2.3.3
17
-
18
- gemfile:
19
- - test/gemfiles/Gemfile.rails-3.2.x
20
- - test/gemfiles/Gemfile.rails-4.0.x
21
- - test/gemfiles/Gemfile.rails-4.1.x
22
- - test/gemfiles/Gemfile.rails-4.2.x
23
- - test/gemfiles/Gemfile.rails-5.0.x
24
- - test/gemfiles/Gemfile.rails-5.1.x
25
-
26
- matrix:
27
- exclude:
28
- - rvm: 1.9.3
29
- gemfile: test/gemfiles/Gemfile.rails-4.1.x
30
- - rvm: 1.9.3
31
- gemfile: test/gemfiles/Gemfile.rails-5.0.x
32
- - rvm: 1.9.3
33
- gemfile: test/gemfiles/Gemfile.rails-5.1.x
34
- - rvm: 1.9.3
35
- gemfile: test/gemfiles/Gemfile.rails-5.2.x
36
- - rvm: 2.1.10
37
- gemfile: test/gemfiles/Gemfile.rails-5.0.x
38
- - rvm: 2.1.10
39
- gemfile: test/gemfiles/Gemfile.rails-5.1.x
40
- - rvm: 2.1.10
41
- gemfile: test/gemfiles/Gemfile.rails-5.2.x
42
- - rvm: 2.2.6
43
- gemfile: test/gemfiles/Gemfile.rails-3.2.x
44
- - rvm: 2.3.3
45
- gemfile: test/gemfiles/Gemfile.rails-3.2.x
46
- fast_finish: true
47
-
48
- sudo: false
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # Changelog
2
-
3
- The authlogic changelog is maintained on the master branch only.
4
-
5
- https://github.com/binarylogic/authlogic/blob/master/CHANGELOG.md
data/CONTRIBUTING.md DELETED
@@ -1,60 +0,0 @@
1
- # Contributing to Authlogic
2
-
3
- ## Issues
4
-
5
- ### Security Issues
6
-
7
- **Do not disclose security issues in public.** Instead, please email:
8
-
9
- ```
10
- Ben Johnson <bjohnson@binarylogic.com>,
11
- Tieg Zaharia <tieg.zaharia@gmail.com>
12
- Jared Beck <jared@jaredbeck.com>
13
- ```
14
-
15
- We will review security issues promptly.
16
-
17
- ### Non-Security Issues
18
-
19
- Please use github issues only for bug reports and feature requests.
20
-
21
- ### Usage Questions
22
-
23
- Please ask usage questions on
24
- [stackoverflow](http://stackoverflow.com/questions/tagged/authlogic).
25
-
26
- ## Development
27
-
28
- ### Testing
29
-
30
- Tests can be ran against different versions of Rails like so:
31
-
32
- ```
33
- BUNDLE_GEMFILE=test/gemfiles/Gemfile.rails-3.2.x bundle install
34
- BUNDLE_GEMFILE=test/gemfiles/Gemfile.rails-3.2.x bundle exec rake
35
- ```
36
-
37
- ### Linting
38
-
39
- Running `rake` also runs a linter, rubocop. Contributions must pass both
40
- the linter and the tests. The linter can be run on its own.
41
-
42
- ```
43
- BUNDLE_GEMFILE=test/gemfiles/Gemfile.rails-3.2.x bundle exec rubocop
44
- ```
45
-
46
- To run the tests without linting, use `rake test`.
47
-
48
- ```
49
- BUNDLE_GEMFILE=test/gemfiles/Gemfile.rails-3.2.x bundle exec rake test
50
- ```
51
-
52
- ### Release
53
-
54
- 1. Update version number in gemspec
55
- 1. Add release date to changelog entry
56
- 1. Commit
57
- 1. git tag -a -m "v3.6.0" "v3.6.0"
58
- 1. git push --tags origin 3-stable # or whatever branch
59
- 1. gem build authlogic.gemspec
60
- 1. gem push authlogic-3.6.0
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
- gemspec
3
-
4
- gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
5
- gem 'sqlite3', :platforms => :ruby
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Ben Johnson of Binary Logic
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.