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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee7fbd1206c6811c02b24031d294e7a0e3fa7634
4
- data.tar.gz: c5e73e04f59d43d50056bc7cff2633d94f85758f
3
+ metadata.gz: 8dadada58ca458ceab9c98ba5f65e2101537cf98
4
+ data.tar.gz: f4f3ddeba32aedb4270aacfafb209c7ae5a9c1f9
5
5
  SHA512:
6
- metadata.gz: 742e52297bce1666457ccf15415855bb0e29469f43abd62416744f5b2f440cdb739c487a6ffbedb3e9fe7f6c1577f1d9df4d46d9498de35147b5d18c2375da62
7
- data.tar.gz: 57f380fb34a5f86dbd92558de49f145df515a57c8983e9cbcb5e024b1bc47d47cd5bc979de7861acb1f1e4076a35dc1461d8d7c9356096ee9e2d2e7e8b17942d
6
+ metadata.gz: 0cfb2248649b20f491f9c76ef75963f54903091d2e7c2407baa4489450d1f3785a73a060aa94e3559cb06b3cc49536c0641eb4b8ebabb4aca048493286a617c6
7
+ data.tar.gz: 9d2cbf631385ecc85a887bf23676acbeeac2f7c65336ea9290c23de60a3bd0aaaab284281f6e5a439f287ea871180eb67bea29bc7a4e8cf996293decf852b634
data/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 3.7.0 2018-02-07
4
4
 
5
5
  * Breaking Changes
6
6
  * None
7
7
 
8
8
  * Added
9
- * None
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "authlogic"
6
- s.version = "3.6.1"
6
+ s.version = "3.7.0"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Ben Johnson"]
9
9
  s.email = ["bjohnson@binarylogic.com"]
@@ -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.6.1
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: 2017-09-30 00:00:00.000000000 Z
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.6.11
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.