authlogic 3.6.1 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/authlogic.gemspec +1 -1
- data/lib/authlogic/session/password.rb +19 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dadada58ca458ceab9c98ba5f65e2101537cf98
|
4
|
+
data.tar.gz: f4f3ddeba32aedb4270aacfafb209c7ae5a9c1f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cfb2248649b20f491f9c76ef75963f54903091d2e7c2407baa4489450d1f3785a73a060aa94e3559cb06b3cc49536c0641eb4b8ebabb4aca048493286a617c6
|
7
|
+
data.tar.gz: 9d2cbf631385ecc85a887bf23676acbeeac2f7c65336ea9290c23de60a3bd0aaaab284281f6e5a439f287ea871180eb67bea29bc7a4e8cf996293decf852b634
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## 3.7.0 2018-02-07
|
4
4
|
|
5
5
|
* Breaking Changes
|
6
6
|
* None
|
7
7
|
|
8
8
|
* Added
|
9
|
-
*
|
9
|
+
* Deprecated ActionController::Parameters as arguments to credentials=(), will be removed in 4.0. (https://github.com/binarylogic/authlogic/pull/558)
|
10
10
|
|
11
11
|
* Fixed
|
12
12
|
* None
|
data/authlogic.gemspec
CHANGED
@@ -264,6 +264,25 @@ module Authlogic
|
|
264
264
|
# This method converts the ActionController::Parameters to a Hash
|
265
265
|
def parse_param_val(value)
|
266
266
|
if value.first.class.name == "ActionController::Parameters"
|
267
|
+
ActiveSupport::Deprecation.warn(
|
268
|
+
<<-STR.strip_heredoc
|
269
|
+
You have passed an ActionController::Parameters to Authlogic 3.
|
270
|
+
That's OK for now, but in Authlogic 4, anything other than a
|
271
|
+
plain Hash will raise an error. Please replace:
|
272
|
+
|
273
|
+
UserSession.new(user_session_params)
|
274
|
+
UserSession.create(user_session_params)
|
275
|
+
|
276
|
+
with
|
277
|
+
|
278
|
+
UserSession.new(user_session_params.to_h)
|
279
|
+
UserSession.create(user_session_params.to_h)
|
280
|
+
|
281
|
+
Why this change? Well, ActionController is not a dependency of
|
282
|
+
Authlogic. Therefore, Authlogic should not have special code
|
283
|
+
that knows how to deal with ActionController.
|
284
|
+
STR
|
285
|
+
)
|
267
286
|
[value.first.to_h]
|
268
287
|
else
|
269
288
|
value.is_a?(Array) ? value : [value]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
292
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.
|
293
|
+
rubygems_version: 2.4.5.1
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: A clean, simple, and unobtrusive ruby authentication solution.
|