authlogic 3.4.6 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +33 -0
- data/.rubocop_todo.yml +427 -0
- data/.travis.yml +24 -3
- data/CHANGELOG.md +9 -2
- data/CONTRIBUTING.md +40 -1
- data/Gemfile +1 -1
- data/README.md +295 -0
- data/Rakefile +10 -2
- data/authlogic.gemspec +6 -5
- data/lib/authlogic.rb +2 -2
- data/lib/authlogic/acts_as_authentic/base.rb +2 -2
- data/lib/authlogic/acts_as_authentic/email.rb +59 -14
- data/lib/authlogic/acts_as_authentic/logged_in_status.rb +4 -3
- data/lib/authlogic/acts_as_authentic/login.rb +62 -12
- data/lib/authlogic/acts_as_authentic/magic_columns.rb +17 -6
- data/lib/authlogic/acts_as_authentic/password.rb +107 -53
- data/lib/authlogic/acts_as_authentic/persistence_token.rb +10 -9
- data/lib/authlogic/acts_as_authentic/restful_authentication.rb +2 -0
- data/lib/authlogic/acts_as_authentic/session_maintenance.rb +48 -35
- data/lib/authlogic/acts_as_authentic/single_access_token.rb +19 -15
- data/lib/authlogic/acts_as_authentic/validations_scope.rb +2 -2
- data/lib/authlogic/authenticates_many/association.rb +6 -5
- data/lib/authlogic/authenticates_many/base.rb +22 -12
- data/lib/authlogic/config.rb +2 -1
- data/lib/authlogic/controller_adapters/abstract_adapter.rb +2 -1
- data/lib/authlogic/controller_adapters/rack_adapter.rb +3 -4
- data/lib/authlogic/controller_adapters/rails_adapter.rb +26 -14
- data/lib/authlogic/controller_adapters/sinatra_adapter.rb +1 -1
- data/lib/authlogic/crypto_providers/aes256.rb +16 -12
- data/lib/authlogic/crypto_providers/bcrypt.rb +10 -4
- data/lib/authlogic/crypto_providers/md5.rb +7 -7
- data/lib/authlogic/crypto_providers/scrypt.rb +10 -2
- data/lib/authlogic/crypto_providers/sha1.rb +3 -3
- data/lib/authlogic/crypto_providers/sha256.rb +3 -3
- data/lib/authlogic/crypto_providers/sha512.rb +4 -4
- data/lib/authlogic/crypto_providers/wordpress.rb +13 -13
- data/lib/authlogic/i18n.rb +22 -16
- data/lib/authlogic/i18n/translator.rb +1 -1
- data/lib/authlogic/random.rb +13 -12
- data/lib/authlogic/regex.rb +3 -3
- data/lib/authlogic/session/activation.rb +7 -6
- data/lib/authlogic/session/active_record_trickery.rb +1 -2
- data/lib/authlogic/session/base.rb +7 -6
- data/lib/authlogic/session/brute_force_protection.rb +58 -34
- data/lib/authlogic/session/callbacks.rb +16 -12
- data/lib/authlogic/session/cookies.rb +29 -14
- data/lib/authlogic/session/existence.rb +10 -10
- data/lib/authlogic/session/foundation.rb +11 -7
- data/lib/authlogic/session/http_auth.rb +6 -5
- data/lib/authlogic/session/id.rb +5 -4
- data/lib/authlogic/session/klass.rb +2 -1
- data/lib/authlogic/session/magic_columns.rb +21 -14
- data/lib/authlogic/session/magic_states.rb +25 -14
- data/lib/authlogic/session/params.rb +41 -26
- data/lib/authlogic/session/password.rb +62 -40
- data/lib/authlogic/session/perishable_token.rb +3 -2
- data/lib/authlogic/session/persistence.rb +3 -3
- data/lib/authlogic/session/priority_record.rb +5 -4
- data/lib/authlogic/session/scopes.rb +20 -9
- data/lib/authlogic/session/session.rb +9 -4
- data/lib/authlogic/session/timeout.rb +40 -23
- data/lib/authlogic/session/unauthorized_record.rb +6 -5
- data/lib/authlogic/session/validation.rb +18 -9
- data/lib/authlogic/test_case.rb +2 -2
- data/lib/authlogic/test_case/mock_controller.rb +9 -9
- data/lib/authlogic/test_case/mock_cookie_jar.rb +2 -2
- data/lib/authlogic/test_case/mock_logger.rb +1 -1
- data/lib/authlogic/test_case/mock_request.rb +2 -1
- data/lib/authlogic/test_case/rails_request_adapter.rb +5 -5
- data/test/acts_as_authentic_test/email_test.rb +29 -17
- data/test/acts_as_authentic_test/logged_in_status_test.rb +9 -3
- data/test/acts_as_authentic_test/login_test.rb +47 -13
- data/test/acts_as_authentic_test/magic_columns_test.rb +4 -4
- data/test/acts_as_authentic_test/password_test.rb +31 -21
- data/test/acts_as_authentic_test/perishable_token_test.rb +15 -15
- data/test/acts_as_authentic_test/session_maintenance_test.rb +20 -13
- data/test/acts_as_authentic_test/single_access_test.rb +8 -8
- data/test/authenticates_many_test.rb +4 -4
- data/test/crypto_provider_test/aes256_test.rb +2 -2
- data/test/crypto_provider_test/scrypt_test.rb +1 -1
- data/test/crypto_provider_test/sha1_test.rb +3 -3
- data/test/crypto_provider_test/sha256_test.rb +1 -1
- data/test/crypto_provider_test/sha512_test.rb +2 -2
- data/test/gemfiles/Gemfile.rails-3.2.x +2 -2
- data/test/gemfiles/Gemfile.rails-5.0.x +6 -0
- data/test/i18n_test.rb +5 -5
- data/test/libs/affiliate.rb +2 -2
- data/test/libs/company.rb +1 -1
- data/test/libs/employee.rb +2 -2
- data/test/libs/employee_session.rb +1 -1
- data/test/libs/ldaper.rb +1 -1
- data/test/libs/project.rb +1 -1
- data/test/random_test.rb +5 -4
- data/test/session_test/activation_test.rb +5 -5
- data/test/session_test/active_record_trickery_test.rb +7 -5
- data/test/session_test/cookies_test.rb +8 -6
- data/test/session_test/existence_test.rb +19 -13
- data/test/session_test/http_auth_test.rb +0 -3
- data/test/session_test/id_test.rb +2 -2
- data/test/session_test/klass_test.rb +1 -1
- data/test/session_test/magic_columns_test.rb +0 -3
- data/test/session_test/magic_states_test.rb +11 -11
- data/test/session_test/params_test.rb +10 -10
- data/test/session_test/password_test.rb +4 -5
- data/test/session_test/perishability_test.rb +3 -3
- data/test/session_test/scopes_test.rb +8 -8
- data/test/session_test/session_test.rb +5 -4
- data/test/session_test/timeout_test.rb +8 -8
- data/test/session_test/unauthorized_record_test.rb +2 -2
- data/test/session_test/validation_test.rb +3 -3
- data/test/test_helper.rb +9 -5
- metadata +54 -24
- data/README.rdoc +0 -232
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43f0752648b77b7ed8b4392d28703d1b723ec48e
|
4
|
+
data.tar.gz: e724514e5180624f979083825eca98c7528ba322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0e47fbdd2fbe66b84ad573418e784846db2dcf50520cc93068610e2fb5fd6a5d4f82302012e64935d43e3fec57b374ae315b2725b54ebcf69f9afe5a46eeebc
|
7
|
+
data.tar.gz: afe89e5753414a0f05978171d007adc8a20db99056fb214e9223126b6e4da91f64e230940495240418638fc221fe8f6c006bc7600307767a7d5e9e0154233e7e
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,33 @@
|
|
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
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,427 @@
|
|
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: 140
|
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
|
+
# Cop supports --auto-correct.
|
254
|
+
Style/LineEndConcatenation:
|
255
|
+
Exclude:
|
256
|
+
- 'lib/authlogic/acts_as_authentic/base.rb'
|
257
|
+
|
258
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
259
|
+
# SupportedStyles: module_function, extend_self
|
260
|
+
Style/ModuleFunction:
|
261
|
+
Exclude:
|
262
|
+
- 'lib/authlogic/random.rb'
|
263
|
+
|
264
|
+
Style/MultilineOperationIndentation:
|
265
|
+
Enabled: false
|
266
|
+
|
267
|
+
Style/MultilineTernaryOperator:
|
268
|
+
Exclude:
|
269
|
+
- 'lib/authlogic/acts_as_authentic/password.rb'
|
270
|
+
- 'lib/authlogic/session/password.rb'
|
271
|
+
- 'lib/authlogic/session/session.rb'
|
272
|
+
|
273
|
+
# Cop supports --auto-correct.
|
274
|
+
Style/MutableConstant:
|
275
|
+
Exclude:
|
276
|
+
- 'lib/authlogic/acts_as_authentic/password.rb'
|
277
|
+
- 'lib/authlogic/crypto_providers/scrypt.rb'
|
278
|
+
- 'lib/authlogic/crypto_providers/wordpress.rb'
|
279
|
+
- 'lib/authlogic/session/callbacks.rb'
|
280
|
+
- 'test/acts_as_authentic_test/email_test.rb'
|
281
|
+
- 'test/acts_as_authentic_test/logged_in_status_test.rb'
|
282
|
+
|
283
|
+
# Cop supports --auto-correct.
|
284
|
+
Style/NegatedIf:
|
285
|
+
Exclude:
|
286
|
+
- 'lib/authlogic/acts_as_authentic/base.rb'
|
287
|
+
- 'lib/authlogic/acts_as_authentic/logged_in_status.rb'
|
288
|
+
- 'lib/authlogic/acts_as_authentic/perishable_token.rb'
|
289
|
+
- 'lib/authlogic/acts_as_authentic/restful_authentication.rb'
|
290
|
+
- 'lib/authlogic/acts_as_authentic/single_access_token.rb'
|
291
|
+
- 'lib/authlogic/session/active_record_trickery.rb'
|
292
|
+
- 'lib/authlogic/session/cookies.rb'
|
293
|
+
- 'lib/authlogic/session/klass.rb'
|
294
|
+
- 'lib/authlogic/session/params.rb'
|
295
|
+
- 'lib/authlogic/session/password.rb'
|
296
|
+
- 'lib/authlogic/session/persistence.rb'
|
297
|
+
|
298
|
+
# Cop supports --auto-correct.
|
299
|
+
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
300
|
+
# SupportedStyles: skip_modifier_ifs, always
|
301
|
+
Style/Next:
|
302
|
+
Enabled: false
|
303
|
+
|
304
|
+
# Cop supports --auto-correct.
|
305
|
+
Style/Not:
|
306
|
+
Exclude:
|
307
|
+
- 'lib/authlogic/acts_as_authentic/login.rb'
|
308
|
+
|
309
|
+
# Cop supports --auto-correct.
|
310
|
+
Style/ParallelAssignment:
|
311
|
+
Exclude:
|
312
|
+
- 'test/random_test.rb'
|
313
|
+
|
314
|
+
# Cop supports --auto-correct.
|
315
|
+
# Configuration parameters: AllowSafeAssignment.
|
316
|
+
Style/ParenthesesAroundCondition:
|
317
|
+
Exclude:
|
318
|
+
- 'test/test_helper.rb'
|
319
|
+
|
320
|
+
# Cop supports --auto-correct.
|
321
|
+
# Configuration parameters: PreferredDelimiters.
|
322
|
+
Style/PercentLiteralDelimiters:
|
323
|
+
Exclude:
|
324
|
+
- 'authlogic.gemspec'
|
325
|
+
|
326
|
+
# Cop supports --auto-correct.
|
327
|
+
Style/Proc:
|
328
|
+
Exclude:
|
329
|
+
- 'lib/authlogic/acts_as_authentic/email.rb'
|
330
|
+
- 'lib/authlogic/session/http_auth.rb'
|
331
|
+
- 'test/acts_as_authentic_test/email_test.rb'
|
332
|
+
|
333
|
+
# Cop supports --auto-correct.
|
334
|
+
# Configuration parameters: SupportedStyles.
|
335
|
+
# SupportedStyles: compact, exploded
|
336
|
+
Style/RaiseArgs:
|
337
|
+
EnforcedStyle: compact
|
338
|
+
|
339
|
+
# Cop supports --auto-correct.
|
340
|
+
Style/RedundantBegin:
|
341
|
+
Exclude:
|
342
|
+
- 'lib/authlogic/acts_as_authentic/base.rb'
|
343
|
+
- 'lib/authlogic/crypto_providers/bcrypt.rb'
|
344
|
+
- 'lib/authlogic/crypto_providers/scrypt.rb'
|
345
|
+
|
346
|
+
# Cop supports --auto-correct.
|
347
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
348
|
+
Style/RedundantReturn:
|
349
|
+
Exclude:
|
350
|
+
- 'lib/authlogic/acts_as_authentic/session_maintenance.rb'
|
351
|
+
- 'test/libs/user_session.rb'
|
352
|
+
|
353
|
+
# Cop supports --auto-correct.
|
354
|
+
Style/RedundantSelf:
|
355
|
+
Exclude:
|
356
|
+
- 'lib/authlogic/acts_as_authentic/perishable_token.rb'
|
357
|
+
- 'lib/authlogic/acts_as_authentic/restful_authentication.rb'
|
358
|
+
- 'lib/authlogic/controller_adapters/rack_adapter.rb'
|
359
|
+
|
360
|
+
# Cop supports --auto-correct.
|
361
|
+
Style/RescueModifier:
|
362
|
+
Exclude:
|
363
|
+
- 'lib/authlogic/acts_as_authentic/session_maintenance.rb'
|
364
|
+
|
365
|
+
# Cop supports --auto-correct.
|
366
|
+
# Configuration parameters: AllowIfMethodIsEmpty.
|
367
|
+
Style/SingleLineMethods:
|
368
|
+
Exclude:
|
369
|
+
- 'lib/authlogic/controller_adapters/rack_adapter.rb'
|
370
|
+
|
371
|
+
# Cop supports --auto-correct.
|
372
|
+
# Configuration parameters: SupportedStyles.
|
373
|
+
# SupportedStyles: use_perl_names, use_english_names
|
374
|
+
Style/SpecialGlobalVars:
|
375
|
+
EnforcedStyle: use_perl_names
|
376
|
+
|
377
|
+
# Cop supports --auto-correct.
|
378
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
379
|
+
# SupportedStyles: single_quotes, double_quotes
|
380
|
+
Style/StringLiterals:
|
381
|
+
Enabled: false
|
382
|
+
|
383
|
+
# Cop supports --auto-correct.
|
384
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
385
|
+
# SupportedStyles: single_quotes, double_quotes
|
386
|
+
Style/StringLiteralsInInterpolation:
|
387
|
+
Exclude:
|
388
|
+
- 'lib/authlogic/authenticates_many/base.rb'
|
389
|
+
- 'lib/authlogic/session/foundation.rb'
|
390
|
+
|
391
|
+
# Cop supports --auto-correct.
|
392
|
+
# Configuration parameters: IgnoredMethods.
|
393
|
+
# IgnoredMethods: respond_to, define_method
|
394
|
+
Style/SymbolProc:
|
395
|
+
Exclude:
|
396
|
+
- 'lib/authlogic/acts_as_authentic/persistence_token.rb'
|
397
|
+
|
398
|
+
# Cop supports --auto-correct.
|
399
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
400
|
+
# SupportedStyles: comma, consistent_comma, no_comma
|
401
|
+
Style/TrailingCommaInLiteral:
|
402
|
+
Exclude:
|
403
|
+
- 'test/acts_as_authentic_test/email_test.rb'
|
404
|
+
|
405
|
+
# Cop supports --auto-correct.
|
406
|
+
Style/UnneededPercentQ:
|
407
|
+
Exclude:
|
408
|
+
- 'authlogic.gemspec'
|
409
|
+
|
410
|
+
# Cop supports --auto-correct.
|
411
|
+
# Configuration parameters: SupportedStyles, MinSize, WordRegex.
|
412
|
+
# SupportedStyles: percent, brackets
|
413
|
+
Style/WordArray:
|
414
|
+
EnforcedStyle: brackets
|
415
|
+
|
416
|
+
# Cop supports --auto-correct.
|
417
|
+
Style/ZeroLengthPredicate:
|
418
|
+
Exclude:
|
419
|
+
- 'lib/authlogic/session/validation.rb'
|
420
|
+
- 'test/acts_as_authentic_test/email_test.rb'
|
421
|
+
- 'test/acts_as_authentic_test/login_test.rb'
|
422
|
+
- 'test/acts_as_authentic_test/magic_columns_test.rb'
|
423
|
+
- 'test/acts_as_authentic_test/password_test.rb'
|
424
|
+
- 'test/acts_as_authentic_test/perishable_token_test.rb'
|
425
|
+
- 'test/acts_as_authentic_test/single_access_test.rb'
|
426
|
+
- 'test/session_test/brute_force_protection_test.rb'
|
427
|
+
- 'test/session_test/magic_states_test.rb'
|