sorcery 0.11.0 → 0.12.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 +4 -4
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +435 -0
- data/.travis.yml +15 -24
- data/CHANGELOG.md +19 -0
- data/Gemfile +1 -1
- data/README.md +25 -5
- data/lib/generators/sorcery/templates/initializer.rb +66 -3
- data/lib/generators/sorcery/templates/migration/magic_login.rb +9 -0
- data/lib/generators/sorcery/templates/migration/reset_password.rb +1 -0
- data/lib/sorcery.rb +2 -0
- data/lib/sorcery/adapters/active_record_adapter.rb +2 -1
- data/lib/sorcery/controller.rb +2 -0
- data/lib/sorcery/controller/submodules/external.rb +9 -0
- data/lib/sorcery/controller/submodules/session_timeout.rb +1 -1
- data/lib/sorcery/model/config.rb +4 -1
- data/lib/sorcery/model/submodules/external.rb +15 -0
- data/lib/sorcery/model/submodules/magic_login.rb +134 -0
- data/lib/sorcery/model/submodules/reset_password.rb +18 -0
- data/lib/sorcery/model/temporary_token.rb +3 -1
- data/lib/sorcery/providers/vk.rb +3 -2
- data/lib/sorcery/test_helpers/rails/request.rb +20 -0
- data/lib/sorcery/version.rb +1 -1
- data/sorcery.gemspec +6 -5
- data/spec/active_record/user_magic_login_spec.rb +15 -0
- data/spec/providers/vk_spec.rb +41 -0
- data/spec/rails_app/app/mailers/sorcery_mailer.rb +7 -0
- data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.html.erb +13 -0
- data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.text.erb +6 -0
- data/spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb +17 -0
- data/spec/rails_app/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +2 -0
- data/spec/shared_examples/user_magic_login_shared_examples.rb +150 -0
- data/spec/shared_examples/user_reset_password_shared_examples.rb +16 -0
- data/spec/sorcery_temporary_token_spec.rb +27 -0
- metadata +44 -13
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noam Ben Ari
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2018-04-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: oauth
|
@@ -73,14 +73,20 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 0.9.0
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.9.12
|
77
80
|
type: :development
|
78
81
|
prerelease: false
|
79
82
|
version_requirements: !ruby/object:Gem::Requirement
|
80
83
|
requirements:
|
81
84
|
- - "~>"
|
82
85
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
86
|
+
version: 0.9.0
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.9.12
|
84
90
|
- !ruby/object:Gem::Dependency
|
85
91
|
name: timecop
|
86
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,42 +121,56 @@ dependencies:
|
|
115
121
|
requirements:
|
116
122
|
- - "~>"
|
117
123
|
- !ruby/object:Gem::Version
|
118
|
-
version: 3.
|
124
|
+
version: 3.7.0
|
119
125
|
type: :development
|
120
126
|
prerelease: false
|
121
127
|
version_requirements: !ruby/object:Gem::Requirement
|
122
128
|
requirements:
|
123
129
|
- - "~>"
|
124
130
|
- !ruby/object:Gem::Version
|
125
|
-
version: 3.
|
131
|
+
version: 3.7.0
|
126
132
|
- !ruby/object:Gem::Dependency
|
127
133
|
name: test-unit
|
128
134
|
requirement: !ruby/object:Gem::Requirement
|
129
135
|
requirements:
|
130
136
|
- - "~>"
|
131
137
|
- !ruby/object:Gem::Version
|
132
|
-
version: 3.
|
138
|
+
version: 3.2.0
|
133
139
|
type: :development
|
134
140
|
prerelease: false
|
135
141
|
version_requirements: !ruby/object:Gem::Requirement
|
136
142
|
requirements:
|
137
143
|
- - "~>"
|
138
144
|
- !ruby/object:Gem::Version
|
139
|
-
version: 3.
|
145
|
+
version: 3.2.0
|
140
146
|
- !ruby/object:Gem::Dependency
|
141
147
|
name: byebug
|
142
148
|
requirement: !ruby/object:Gem::Requirement
|
143
149
|
requirements:
|
144
150
|
- - "~>"
|
145
151
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
152
|
+
version: 10.0.0
|
153
|
+
type: :development
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 10.0.0
|
160
|
+
- !ruby/object:Gem::Dependency
|
161
|
+
name: webmock
|
162
|
+
requirement: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 3.3.0
|
147
167
|
type: :development
|
148
168
|
prerelease: false
|
149
169
|
version_requirements: !ruby/object:Gem::Requirement
|
150
170
|
requirements:
|
151
171
|
- - "~>"
|
152
172
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
173
|
+
version: 3.3.0
|
154
174
|
description: Provides common authentication needs such as signing in/out, activating
|
155
175
|
by email and resetting password.
|
156
176
|
email: chase.gilliam@gmail.com
|
@@ -161,6 +181,8 @@ files:
|
|
161
181
|
- ".document"
|
162
182
|
- ".gitignore"
|
163
183
|
- ".rspec"
|
184
|
+
- ".rubocop.yml"
|
185
|
+
- ".rubocop_todo.yml"
|
164
186
|
- ".travis.yml"
|
165
187
|
- CHANGELOG.md
|
166
188
|
- Gemfile
|
@@ -178,6 +200,7 @@ files:
|
|
178
200
|
- lib/generators/sorcery/templates/migration/brute_force_protection.rb
|
179
201
|
- lib/generators/sorcery/templates/migration/core.rb
|
180
202
|
- lib/generators/sorcery/templates/migration/external.rb
|
203
|
+
- lib/generators/sorcery/templates/migration/magic_login.rb
|
181
204
|
- lib/generators/sorcery/templates/migration/remember_me.rb
|
182
205
|
- lib/generators/sorcery/templates/migration/reset_password.rb
|
183
206
|
- lib/generators/sorcery/templates/migration/user_activation.rb
|
@@ -206,6 +229,7 @@ files:
|
|
206
229
|
- lib/sorcery/model/submodules/activity_logging.rb
|
207
230
|
- lib/sorcery/model/submodules/brute_force_protection.rb
|
208
231
|
- lib/sorcery/model/submodules/external.rb
|
232
|
+
- lib/sorcery/model/submodules/magic_login.rb
|
209
233
|
- lib/sorcery/model/submodules/remember_me.rb
|
210
234
|
- lib/sorcery/model/submodules/reset_password.rb
|
211
235
|
- lib/sorcery/model/submodules/user_activation.rb
|
@@ -233,11 +257,13 @@ files:
|
|
233
257
|
- lib/sorcery/test_helpers/internal/rails.rb
|
234
258
|
- lib/sorcery/test_helpers/rails/controller.rb
|
235
259
|
- lib/sorcery/test_helpers/rails/integration.rb
|
260
|
+
- lib/sorcery/test_helpers/rails/request.rb
|
236
261
|
- lib/sorcery/version.rb
|
237
262
|
- sorcery.gemspec
|
238
263
|
- spec/active_record/user_activation_spec.rb
|
239
264
|
- spec/active_record/user_activity_logging_spec.rb
|
240
265
|
- spec/active_record/user_brute_force_protection_spec.rb
|
266
|
+
- spec/active_record/user_magic_login_spec.rb
|
241
267
|
- spec/active_record/user_oauth_spec.rb
|
242
268
|
- spec/active_record/user_remember_me_spec.rb
|
243
269
|
- spec/active_record/user_reset_password_spec.rb
|
@@ -251,6 +277,7 @@ files:
|
|
251
277
|
- spec/controllers/controller_session_timeout_spec.rb
|
252
278
|
- spec/controllers/controller_spec.rb
|
253
279
|
- spec/orm/active_record.rb
|
280
|
+
- spec/providers/vk_spec.rb
|
254
281
|
- spec/rails_app/app/active_record/authentication.rb
|
255
282
|
- spec/rails_app/app/active_record/user.rb
|
256
283
|
- spec/rails_app/app/active_record/user_provider.rb
|
@@ -264,6 +291,8 @@ files:
|
|
264
291
|
- spec/rails_app/app/views/sorcery_mailer/activation_needed_email.html.erb
|
265
292
|
- spec/rails_app/app/views/sorcery_mailer/activation_success_email.html.erb
|
266
293
|
- spec/rails_app/app/views/sorcery_mailer/activation_success_email.text.erb
|
294
|
+
- spec/rails_app/app/views/sorcery_mailer/magic_login_email.html.erb
|
295
|
+
- spec/rails_app/app/views/sorcery_mailer/magic_login_email.text.erb
|
267
296
|
- spec/rails_app/app/views/sorcery_mailer/reset_password_email.html.erb
|
268
297
|
- spec/rails_app/app/views/sorcery_mailer/reset_password_email.text.erb
|
269
298
|
- spec/rails_app/app/views/sorcery_mailer/send_unlock_token_email.text.erb
|
@@ -286,6 +315,7 @@ files:
|
|
286
315
|
- spec/rails_app/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
|
287
316
|
- spec/rails_app/db/migrate/core/20101224223620_create_users.rb
|
288
317
|
- spec/rails_app/db/migrate/external/20101224223628_create_authentications_and_user_providers.rb
|
318
|
+
- spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb
|
289
319
|
- spec/rails_app/db/migrate/remember_me/20101224223623_add_remember_me_token_to_users.rb
|
290
320
|
- spec/rails_app/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb
|
291
321
|
- spec/rails_app/db/schema.rb
|
@@ -293,11 +323,13 @@ files:
|
|
293
323
|
- spec/shared_examples/user_activation_shared_examples.rb
|
294
324
|
- spec/shared_examples/user_activity_logging_shared_examples.rb
|
295
325
|
- spec/shared_examples/user_brute_force_protection_shared_examples.rb
|
326
|
+
- spec/shared_examples/user_magic_login_shared_examples.rb
|
296
327
|
- spec/shared_examples/user_oauth_shared_examples.rb
|
297
328
|
- spec/shared_examples/user_remember_me_shared_examples.rb
|
298
329
|
- spec/shared_examples/user_reset_password_shared_examples.rb
|
299
330
|
- spec/shared_examples/user_shared_examples.rb
|
300
331
|
- spec/sorcery_crypto_providers_spec.rb
|
332
|
+
- spec/sorcery_temporary_token_spec.rb
|
301
333
|
- spec/spec.opts
|
302
334
|
- spec/spec_helper.rb
|
303
335
|
homepage: https://github.com/Sorcery/sorcery
|
@@ -314,7 +346,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
314
346
|
requirements:
|
315
347
|
- - ">="
|
316
348
|
- !ruby/object:Gem::Version
|
317
|
-
version: 2.
|
349
|
+
version: 2.2.2
|
318
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
319
351
|
requirements:
|
320
352
|
- - ">="
|
@@ -322,9 +354,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
354
|
version: '0'
|
323
355
|
requirements: []
|
324
356
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.6.
|
357
|
+
rubygems_version: 2.6.14
|
326
358
|
signing_key:
|
327
359
|
specification_version: 4
|
328
360
|
summary: Magical authentication for Rails applications
|
329
361
|
test_files: []
|
330
|
-
has_rdoc:
|