sorcery 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sorcery might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.github/ISSUE_TEMPLATE.md +20 -0
- data/.rubocop.yml +52 -2
- data/.rubocop_todo.yml +1 -429
- data/.travis.yml +11 -21
- data/CHANGELOG.md +16 -0
- data/Gemfile +2 -2
- data/{LICENSE.txt → LICENSE.md} +1 -1
- data/README.md +7 -1
- data/gemfiles/{active_record-rails40.gemfile → active_record_rails_40.gemfile} +1 -2
- data/gemfiles/{active_record-rails41.gemfile → active_record_rails_41.gemfile} +1 -2
- data/gemfiles/{active_record-rails42.gemfile → active_record_rails_42.gemfile} +1 -2
- data/lib/generators/sorcery/USAGE +1 -1
- data/lib/generators/sorcery/install_generator.rb +21 -21
- data/lib/generators/sorcery/templates/initializer.rb +19 -1
- data/lib/sorcery/adapters/active_record_adapter.rb +1 -1
- data/lib/sorcery/adapters/mongoid_adapter.rb +23 -11
- data/lib/sorcery/controller.rb +22 -16
- data/lib/sorcery/controller/config.rb +2 -0
- data/lib/sorcery/controller/submodules/activity_logging.rb +4 -0
- data/lib/sorcery/controller/submodules/external.rb +37 -33
- data/lib/sorcery/controller/submodules/http_basic_auth.rb +1 -0
- data/lib/sorcery/controller/submodules/remember_me.rb +1 -7
- data/lib/sorcery/controller/submodules/session_timeout.rb +25 -4
- data/lib/sorcery/crypto_providers/aes256.rb +1 -0
- data/lib/sorcery/crypto_providers/bcrypt.rb +2 -1
- data/lib/sorcery/engine.rb +10 -3
- data/lib/sorcery/model.rb +9 -6
- data/lib/sorcery/model/config.rb +3 -3
- data/lib/sorcery/model/submodules/brute_force_protection.rb +6 -7
- data/lib/sorcery/model/submodules/external.rb +4 -3
- data/lib/sorcery/model/submodules/magic_login.rb +29 -36
- data/lib/sorcery/model/submodules/reset_password.rb +5 -4
- data/lib/sorcery/model/submodules/user_activation.rb +1 -1
- data/lib/sorcery/protocols/oauth.rb +1 -0
- data/lib/sorcery/providers/auth0.rb +46 -0
- data/lib/sorcery/providers/heroku.rb +1 -0
- data/lib/sorcery/providers/instagram.rb +73 -0
- data/lib/sorcery/providers/linkedin.rb +1 -1
- data/lib/sorcery/providers/vk.rb +1 -1
- data/lib/sorcery/providers/wechat.rb +8 -6
- data/lib/sorcery/test_helpers/internal.rb +5 -4
- data/lib/sorcery/test_helpers/internal/rails.rb +11 -11
- data/lib/sorcery/version.rb +1 -1
- data/sorcery.gemspec +25 -9
- data/spec/active_record/user_activation_spec.rb +2 -2
- data/spec/active_record/user_activity_logging_spec.rb +2 -2
- data/spec/active_record/user_brute_force_protection_spec.rb +2 -2
- data/spec/active_record/user_magic_login_spec.rb +4 -4
- data/spec/active_record/user_oauth_spec.rb +2 -2
- data/spec/active_record/user_remember_me_spec.rb +2 -2
- data/spec/active_record/user_reset_password_spec.rb +2 -2
- data/spec/active_record/user_spec.rb +0 -10
- data/spec/controllers/controller_http_basic_auth_spec.rb +1 -1
- data/spec/controllers/controller_oauth2_spec.rb +195 -123
- data/spec/controllers/controller_oauth_spec.rb +7 -7
- data/spec/controllers/controller_remember_me_spec.rb +11 -6
- data/spec/controllers/controller_session_timeout_spec.rb +90 -3
- data/spec/controllers/controller_spec.rb +2 -2
- data/spec/orm/active_record.rb +2 -2
- data/spec/providers/vk_spec.rb +13 -12
- data/spec/rails_app/app/controllers/sorcery_controller.rb +83 -32
- data/spec/rails_app/app/mailers/sorcery_mailer.rb +1 -1
- data/spec/rails_app/config/application.rb +8 -3
- data/spec/rails_app/config/boot.rb +1 -1
- data/spec/rails_app/config/environment.rb +1 -1
- data/spec/rails_app/config/routes.rb +7 -0
- data/spec/rails_app/config/secrets.yml +4 -0
- data/spec/rails_app/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +2 -2
- data/spec/rails_app/db/migrate/invalidate_active_sessions/20180221093235_add_invalidate_active_sessions_before_to_users.rb +9 -0
- data/spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb +3 -3
- data/spec/rails_app/db/schema.rb +7 -9
- data/spec/shared_examples/user_magic_login_shared_examples.rb +50 -50
- data/spec/shared_examples/user_oauth_shared_examples.rb +1 -1
- data/spec/shared_examples/user_remember_me_shared_examples.rb +1 -1
- data/spec/shared_examples/user_reset_password_shared_examples.rb +3 -3
- data/spec/shared_examples/user_shared_examples.rb +41 -43
- data/spec/sorcery_crypto_providers_spec.rb +1 -1
- data/spec/spec.opts +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/support/migration_helper.rb +19 -0
- metadata +60 -38
- data/spec/rails_app/config/initializers/secret_token.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4e5daa6548cc9fd5cdc73cf219dd6b2cecc9aa9de783f7544823d1243fd070ee
|
4
|
+
data.tar.gz: 0162cca06bf333177fd47386827ebb578571f91edc0a5600ab80ab12f537a771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 509919dd3b6cef24468ef57a49adef3fad0c8437d525ff40e0fc6f953e887d4b152a53912900dc7054bf6698b09d1ba6a6d968bd55ccc2764264201833fe4527
|
7
|
+
data.tar.gz: d91c9f6528d7c8cdd019028a537a02e6838135c3be793116667ff152274915b08e64f0da1fbac14747207db1e7836dd496cce9c2735b68433ccc08c3d1d9b3e5
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Please complete all sections.
|
2
|
+
|
3
|
+
### Configuration
|
4
|
+
|
5
|
+
- Sorcery Version: ``
|
6
|
+
- Ruby Version: ``
|
7
|
+
- Framework: ``
|
8
|
+
- Platform: ``
|
9
|
+
|
10
|
+
### Expected Behavior
|
11
|
+
|
12
|
+
Tell us what should happen.
|
13
|
+
|
14
|
+
### Actual Behavior
|
15
|
+
|
16
|
+
Tell us what happens instead.
|
17
|
+
|
18
|
+
### Steps to Reproduce
|
19
|
+
|
20
|
+
Please list all steps to reproduce the issue.
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,55 @@
|
|
1
|
-
|
2
|
-
inherit_from: '.rubocop_todo.yml'
|
1
|
+
inherit_from: .rubocop_todo.yml
|
3
2
|
|
4
3
|
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'lib/generators/sorcery/templates/**/*'
|
5
6
|
TargetRubyVersion: 2.2
|
7
|
+
|
8
|
+
# See: https://github.com/rubocop-hq/rubocop/issues/3344
|
9
|
+
Style/DoubleNegation:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
####################
|
13
|
+
## Pre-1.0.0 Code ##
|
14
|
+
####################
|
15
|
+
|
16
|
+
Metrics/AbcSize:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/**/*'
|
19
|
+
- 'spec/**/*'
|
20
|
+
Metrics/BlockLength:
|
21
|
+
Exclude:
|
22
|
+
- 'lib/**/*'
|
23
|
+
- 'spec/**/*'
|
24
|
+
Metrics/LineLength:
|
25
|
+
Exclude:
|
26
|
+
- 'lib/**/*'
|
27
|
+
- 'spec/**/*'
|
28
|
+
Metrics/ClassLength:
|
29
|
+
Exclude:
|
30
|
+
- 'lib/**/*'
|
31
|
+
- 'spec/**/*'
|
32
|
+
Metrics/CyclomaticComplexity:
|
33
|
+
Exclude:
|
34
|
+
- 'lib/**/*'
|
35
|
+
- 'spec/**/*'
|
36
|
+
Metrics/MethodLength:
|
37
|
+
Exclude:
|
38
|
+
- 'lib/**/*'
|
39
|
+
- 'spec/**/*'
|
40
|
+
Metrics/PerceivedComplexity:
|
41
|
+
Exclude:
|
42
|
+
- 'lib/**/*'
|
43
|
+
- 'spec/**/*'
|
44
|
+
Naming/AccessorMethodName:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/**/*'
|
47
|
+
- 'spec/**/*'
|
48
|
+
Naming/PredicateName:
|
49
|
+
Exclude:
|
50
|
+
- 'lib/**/*'
|
51
|
+
- 'spec/**/*'
|
52
|
+
Style/Documentation:
|
53
|
+
Exclude:
|
54
|
+
- 'lib/**/*'
|
55
|
+
- 'spec/**/*'
|
data/.rubocop_todo.yml
CHANGED
@@ -1,435 +1,7 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-
|
3
|
+
# on 2018-11-01 18:13:47 -0700 using RuboCop version 0.59.2.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
-
# Include: **/Gemfile, **/gems.rb
|
13
|
-
Bundler/OrderedGems:
|
14
|
-
Exclude:
|
15
|
-
- 'Gemfile'
|
16
|
-
|
17
|
-
# Offense count: 5
|
18
|
-
# Cop supports --auto-correct.
|
19
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
20
|
-
# Include: **/*.gemspec
|
21
|
-
Gemspec/OrderedDependencies:
|
22
|
-
Exclude:
|
23
|
-
- 'sorcery.gemspec'
|
24
|
-
|
25
|
-
# Offense count: 7
|
26
|
-
# Cop supports --auto-correct.
|
27
|
-
Layout/EmptyLines:
|
28
|
-
Exclude:
|
29
|
-
- 'lib/generators/sorcery/templates/initializer.rb'
|
30
|
-
|
31
|
-
# Offense count: 2
|
32
|
-
# Cop supports --auto-correct.
|
33
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
34
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
35
|
-
Layout/EmptyLinesAroundBlockBody:
|
36
|
-
Exclude:
|
37
|
-
- 'spec/rails_app/db/schema.rb'
|
38
|
-
|
39
|
-
# Offense count: 1
|
40
|
-
# Cop supports --auto-correct.
|
41
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
42
|
-
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
43
|
-
Layout/EmptyLinesAroundClassBody:
|
44
|
-
Exclude:
|
45
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
46
|
-
|
47
|
-
# Offense count: 2
|
48
|
-
# Cop supports --auto-correct.
|
49
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
50
|
-
Layout/ExtraSpacing:
|
51
|
-
Exclude:
|
52
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
53
|
-
|
54
|
-
# Offense count: 3
|
55
|
-
# Cop supports --auto-correct.
|
56
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
57
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
58
|
-
Layout/IndentHash:
|
59
|
-
Exclude:
|
60
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
61
|
-
- 'lib/sorcery/providers/wechat.rb'
|
62
|
-
|
63
|
-
# Offense count: 2
|
64
|
-
# Cop supports --auto-correct.
|
65
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
66
|
-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
67
|
-
Layout/MultilineMethodCallIndentation:
|
68
|
-
Exclude:
|
69
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
70
|
-
|
71
|
-
# Offense count: 2
|
72
|
-
# Cop supports --auto-correct.
|
73
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
74
|
-
# SupportedStyles: aligned, indented
|
75
|
-
Layout/MultilineOperationIndentation:
|
76
|
-
Exclude:
|
77
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
78
|
-
|
79
|
-
# Offense count: 2
|
80
|
-
# Cop supports --auto-correct.
|
81
|
-
Layout/SpaceAfterComma:
|
82
|
-
Exclude:
|
83
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
84
|
-
- 'spec/controllers/controller_oauth2_spec.rb'
|
85
|
-
|
86
|
-
# Offense count: 2
|
87
|
-
# Cop supports --auto-correct.
|
88
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
89
|
-
# SupportedStyles: space, no_space
|
90
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
91
|
-
Exclude:
|
92
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
93
|
-
|
94
|
-
# Offense count: 3
|
95
|
-
# Cop supports --auto-correct.
|
96
|
-
# Configuration parameters: AllowForAlignment.
|
97
|
-
Layout/SpaceAroundOperators:
|
98
|
-
Exclude:
|
99
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
100
|
-
- 'spec/shared_examples/user_magic_login_shared_examples.rb'
|
101
|
-
|
102
|
-
# Offense count: 1
|
103
|
-
# Cop supports --auto-correct.
|
104
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, SupportedStylesForEmptyBraces.
|
105
|
-
# SupportedStyles: space, no_space
|
106
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
107
|
-
Layout/SpaceBeforeBlockBraces:
|
108
|
-
Exclude:
|
109
|
-
- 'lib/sorcery/providers/linkedin.rb'
|
110
|
-
|
111
|
-
# Offense count: 8
|
112
|
-
# Cop supports --auto-correct.
|
113
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
|
114
|
-
# SupportedStyles: space, no_space
|
115
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
116
|
-
Layout/SpaceInsideBlockBraces:
|
117
|
-
Exclude:
|
118
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
119
|
-
- 'lib/sorcery/providers/linkedin.rb'
|
120
|
-
- 'spec/shared_examples/user_magic_login_shared_examples.rb'
|
121
|
-
|
122
|
-
# Offense count: 4
|
123
|
-
# Cop supports --auto-correct.
|
124
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
125
|
-
# SupportedStyles: space, no_space, compact
|
126
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
127
|
-
Layout/SpaceInsideHashLiteralBraces:
|
128
|
-
Exclude:
|
129
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
130
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
131
|
-
|
132
|
-
# Offense count: 1
|
133
|
-
# Cop supports --auto-correct.
|
134
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
135
|
-
# SupportedStyles: final_newline, final_blank_line
|
136
|
-
Layout/TrailingBlankLines:
|
137
|
-
Exclude:
|
138
|
-
- 'lib/sorcery/providers/wechat.rb'
|
139
|
-
|
140
|
-
# Offense count: 52
|
141
|
-
# Cop supports --auto-correct.
|
142
|
-
Layout/TrailingWhitespace:
|
143
|
-
Exclude:
|
144
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
145
|
-
- 'spec/active_record/user_magic_login_spec.rb'
|
146
|
-
- 'spec/rails_app/app/mailers/sorcery_mailer.rb'
|
147
|
-
- 'spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb'
|
148
|
-
- 'spec/shared_examples/user_magic_login_shared_examples.rb'
|
149
|
-
|
150
|
-
# Offense count: 1
|
151
|
-
Lint/AmbiguousBlockAssociation:
|
152
|
-
Exclude:
|
153
|
-
- 'spec/shared_examples/user_shared_examples.rb'
|
154
|
-
|
155
|
-
# Offense count: 28
|
156
|
-
# Configuration parameters: AllowSafeAssignment.
|
157
|
-
Lint/AssignmentInCondition:
|
158
|
-
Exclude:
|
159
|
-
- 'lib/sorcery/controller/submodules/external.rb'
|
160
|
-
- 'lib/sorcery/providers/vk.rb'
|
161
|
-
- 'spec/rails_app/app/controllers/sorcery_controller.rb'
|
162
|
-
|
163
|
-
# Offense count: 1
|
164
|
-
Lint/DuplicateMethods:
|
165
|
-
Exclude:
|
166
|
-
- 'lib/sorcery/model/config.rb'
|
167
|
-
|
168
|
-
# Offense count: 1
|
169
|
-
# Cop supports --auto-correct.
|
170
|
-
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
171
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
172
|
-
Lint/EndAlignment:
|
173
|
-
Exclude:
|
174
|
-
- 'lib/sorcery/model/config.rb'
|
175
|
-
|
176
|
-
# Offense count: 5
|
177
|
-
Lint/HandleExceptions:
|
178
|
-
Exclude:
|
179
|
-
- 'lib/sorcery/controller.rb'
|
180
|
-
- 'lib/sorcery/model.rb'
|
181
|
-
- 'spec/rails_app/config/application.rb'
|
182
|
-
- 'spec/shared_examples/user_shared_examples.rb'
|
183
|
-
|
184
|
-
# Offense count: 1
|
185
|
-
Lint/NonLocalExitFromIterator:
|
186
|
-
Exclude:
|
187
|
-
- 'lib/sorcery/controller.rb'
|
188
|
-
|
189
|
-
# Offense count: 1
|
190
|
-
Lint/ParenthesesAsGroupedExpression:
|
191
|
-
Exclude:
|
192
|
-
- 'spec/shared_examples/user_remember_me_shared_examples.rb'
|
193
|
-
|
194
|
-
# Offense count: 3
|
195
|
-
Lint/RescueWithoutErrorClass:
|
196
|
-
Exclude:
|
197
|
-
- 'lib/sorcery/controller/submodules/external.rb'
|
198
|
-
- 'spec/shared_examples/user_shared_examples.rb'
|
199
|
-
- 'spec/spec_helper.rb'
|
200
|
-
|
201
|
-
# Offense count: 7
|
202
|
-
Lint/UselessAssignment:
|
203
|
-
Exclude:
|
204
|
-
- 'lib/sorcery/controller/submodules/external.rb'
|
205
|
-
- 'lib/sorcery/model/submodules/external.rb'
|
206
|
-
- 'spec/controllers/controller_oauth2_spec.rb'
|
207
|
-
- 'spec/controllers/controller_remember_me_spec.rb'
|
208
|
-
|
209
|
-
# Offense count: 2
|
210
|
-
Lint/Void:
|
211
|
-
Exclude:
|
212
|
-
- 'spec/controllers/controller_remember_me_spec.rb'
|
213
|
-
|
214
|
-
# Offense count: 28
|
215
|
-
Metrics/AbcSize:
|
216
|
-
Max: 36
|
217
|
-
|
218
|
-
# Offense count: 73
|
219
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
220
|
-
Metrics/BlockLength:
|
221
|
-
Max: 391
|
222
|
-
|
223
|
-
# Offense count: 1
|
224
|
-
# Configuration parameters: CountComments.
|
225
|
-
Metrics/ClassLength:
|
226
|
-
Max: 303
|
227
|
-
|
228
|
-
# Offense count: 3
|
229
|
-
Metrics/CyclomaticComplexity:
|
230
|
-
Max: 9
|
231
|
-
|
232
|
-
# Offense count: 833
|
233
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
234
|
-
# URISchemes: http, https
|
235
|
-
Metrics/LineLength:
|
236
|
-
Max: 323
|
237
|
-
|
238
|
-
# Offense count: 33
|
239
|
-
# Configuration parameters: CountComments.
|
240
|
-
Metrics/MethodLength:
|
241
|
-
Max: 39
|
242
|
-
|
243
|
-
# Offense count: 1
|
244
|
-
Metrics/PerceivedComplexity:
|
245
|
-
Max: 9
|
246
|
-
|
247
|
-
# Offense count: 11
|
248
|
-
Naming/AccessorMethodName:
|
249
|
-
Exclude:
|
250
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
251
|
-
- 'lib/sorcery/controller/submodules/remember_me.rb'
|
252
|
-
- 'lib/sorcery/model/submodules/activity_logging.rb'
|
253
|
-
- 'lib/sorcery/protocols/oauth.rb'
|
254
|
-
- 'lib/sorcery/providers/jira.rb'
|
255
|
-
- 'lib/sorcery/providers/linkedin.rb'
|
256
|
-
- 'lib/sorcery/providers/twitter.rb'
|
257
|
-
- 'lib/sorcery/providers/xing.rb'
|
258
|
-
|
259
|
-
# Offense count: 2
|
260
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
261
|
-
# NamePrefix: is_, has_, have_
|
262
|
-
# NamePrefixBlacklist: is_, has_, have_
|
263
|
-
# NameWhitelist: is_a?
|
264
|
-
# MethodDefinitionMacros: define_method, define_singleton_method
|
265
|
-
Naming/PredicateName:
|
266
|
-
Exclude:
|
267
|
-
- 'spec/**/*'
|
268
|
-
- 'lib/sorcery/model/submodules/remember_me.rb'
|
269
|
-
- 'lib/sorcery/providers/base.rb'
|
270
|
-
|
271
|
-
# Offense count: 1
|
272
|
-
# Cop supports --auto-correct.
|
273
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
274
|
-
# SupportedStyles: always, conditionals
|
275
|
-
Style/AndOr:
|
276
|
-
Exclude:
|
277
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
278
|
-
|
279
|
-
# Offense count: 1
|
280
|
-
# Cop supports --auto-correct.
|
281
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
282
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
283
|
-
Style/BracesAroundHashParameters:
|
284
|
-
Exclude:
|
285
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
286
|
-
|
287
|
-
# Offense count: 1
|
288
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
289
|
-
# SupportedStyles: nested, compact
|
290
|
-
Style/ClassAndModuleChildren:
|
291
|
-
Exclude:
|
292
|
-
- 'lib/sorcery/test_helpers/internal.rb'
|
293
|
-
|
294
|
-
# Offense count: 2
|
295
|
-
Style/DateTime:
|
296
|
-
Exclude:
|
297
|
-
- 'spec/shared_examples/user_magic_login_shared_examples.rb'
|
298
|
-
|
299
|
-
# Offense count: 1
|
300
|
-
# Cop supports --auto-correct.
|
301
|
-
Style/Dir:
|
302
|
-
Exclude:
|
303
|
-
- 'lib/sorcery/controller/submodules/external.rb'
|
304
|
-
|
305
|
-
# Offense count: 52
|
306
|
-
Style/Documentation:
|
307
|
-
Enabled: false
|
308
|
-
|
309
|
-
# Offense count: 2
|
310
|
-
Style/DoubleNegation:
|
311
|
-
Exclude:
|
312
|
-
- 'lib/generators/sorcery/helpers.rb'
|
313
|
-
- 'lib/sorcery/controller.rb'
|
314
|
-
|
315
|
-
# Offense count: 1
|
316
|
-
# Cop supports --auto-correct.
|
317
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
318
|
-
# SupportedStyles: format, sprintf, percent
|
319
|
-
Style/FormatString:
|
320
|
-
Exclude:
|
321
|
-
- 'lib/generators/sorcery/install_generator.rb'
|
322
|
-
|
323
|
-
# Offense count: 16
|
324
|
-
# Configuration parameters: MinBodyLength.
|
325
|
-
Style/GuardClause:
|
326
|
-
Exclude:
|
327
|
-
- 'lib/generators/sorcery/install_generator.rb'
|
328
|
-
- 'lib/sorcery/controller.rb'
|
329
|
-
- 'lib/sorcery/controller/submodules/external.rb'
|
330
|
-
- 'lib/sorcery/model.rb'
|
331
|
-
- 'lib/sorcery/model/submodules/brute_force_protection.rb'
|
332
|
-
- 'lib/sorcery/test_helpers/internal.rb'
|
333
|
-
- 'lib/sorcery/test_helpers/internal/rails.rb'
|
334
|
-
- 'spec/rails_app/app/controllers/sorcery_controller.rb'
|
335
|
-
|
336
|
-
# Offense count: 4
|
337
|
-
# Cop supports --auto-correct.
|
338
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
339
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
340
|
-
Style/HashSyntax:
|
341
|
-
Exclude:
|
342
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
343
|
-
- 'spec/controllers/controller_oauth2_spec.rb'
|
344
|
-
- 'spec/rails_app/db/schema.rb'
|
345
|
-
|
346
|
-
# Offense count: 1
|
347
|
-
Style/MultipleComparison:
|
348
|
-
Exclude:
|
349
|
-
- 'lib/generators/sorcery/install_generator.rb'
|
350
|
-
|
351
|
-
# Offense count: 2
|
352
|
-
# Cop supports --auto-correct.
|
353
|
-
Style/MutableConstant:
|
354
|
-
Exclude:
|
355
|
-
- 'lib/sorcery/test_helpers/internal/rails.rb'
|
356
|
-
- 'lib/sorcery/version.rb'
|
357
|
-
|
358
|
-
# Offense count: 11
|
359
|
-
# Cop supports --auto-correct.
|
360
|
-
# Configuration parameters: Strict.
|
361
|
-
Style/NumericLiterals:
|
362
|
-
MinDigits: 18
|
363
|
-
|
364
|
-
# Offense count: 1
|
365
|
-
# Cop supports --auto-correct.
|
366
|
-
# Configuration parameters: AllowSafeAssignment.
|
367
|
-
Style/ParenthesesAroundCondition:
|
368
|
-
Exclude:
|
369
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
370
|
-
|
371
|
-
# Offense count: 5
|
372
|
-
# Cop supports --auto-correct.
|
373
|
-
# Configuration parameters: PreferredDelimiters.
|
374
|
-
Style/PercentLiteralDelimiters:
|
375
|
-
Exclude:
|
376
|
-
- 'lib/sorcery/test_helpers/internal/rails.rb'
|
377
|
-
- 'spec/controllers/controller_oauth2_spec.rb'
|
378
|
-
- 'spec/rails_app/config/application.rb'
|
379
|
-
- 'spec/sorcery_crypto_providers_spec.rb'
|
380
|
-
|
381
|
-
# Offense count: 1
|
382
|
-
# Cop supports --auto-correct.
|
383
|
-
Style/RedundantParentheses:
|
384
|
-
Exclude:
|
385
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
386
|
-
|
387
|
-
# Offense count: 4
|
388
|
-
# Cop supports --auto-correct.
|
389
|
-
Style/RedundantSelf:
|
390
|
-
Exclude:
|
391
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
392
|
-
|
393
|
-
# Offense count: 1
|
394
|
-
# Cop supports --auto-correct.
|
395
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
396
|
-
# SupportedStyles: slashes, percent_r, mixed
|
397
|
-
Style/RegexpLiteral:
|
398
|
-
Exclude:
|
399
|
-
- 'spec/rails_app/config/application.rb'
|
400
|
-
|
401
|
-
# Offense count: 89
|
402
|
-
# Cop supports --auto-correct.
|
403
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
404
|
-
# SupportedStyles: single_quotes, double_quotes
|
405
|
-
Style/StringLiterals:
|
406
|
-
Exclude:
|
407
|
-
- 'lib/sorcery/adapters/mongoid_adapter.rb'
|
408
|
-
- 'lib/sorcery/model/submodules/magic_login.rb'
|
409
|
-
- 'spec/controllers/controller_oauth2_spec.rb'
|
410
|
-
- 'spec/rails_app/db/schema.rb'
|
411
|
-
- 'spec/shared_examples/user_magic_login_shared_examples.rb'
|
412
|
-
|
413
|
-
# Offense count: 22
|
414
|
-
# Cop supports --auto-correct.
|
415
|
-
# Configuration parameters: MinSize, SupportedStyles.
|
416
|
-
# SupportedStyles: percent, brackets
|
417
|
-
Style/SymbolArray:
|
418
|
-
EnforcedStyle: brackets
|
419
|
-
|
420
|
-
# Offense count: 1
|
421
|
-
# Cop supports --auto-correct.
|
422
|
-
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
423
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
424
|
-
Style/TrailingCommaInArguments:
|
425
|
-
Exclude:
|
426
|
-
- 'lib/sorcery/providers/wechat.rb'
|
427
|
-
|
428
|
-
# Offense count: 2
|
429
|
-
# Cop supports --auto-correct.
|
430
|
-
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
431
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
432
|
-
Style/TrailingCommaInLiteral:
|
433
|
-
Exclude:
|
434
|
-
- 'lib/sorcery/providers/wechat.rb'
|
435
|
-
- 'spec/controllers/controller_oauth2_spec.rb'
|