devise-multi_email 1.0.3 → 1.0.4

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: 5c59b63adf6be88662242b1cd1cca4880d9b2199
4
- data.tar.gz: 8ba5affe9d8ecc23a15ee1b5e804b388f1314640
3
+ metadata.gz: f0b7c3b802e2dbf7c076558cf966374bdefb51cf
4
+ data.tar.gz: 74bd4841d305d4ac830b92d7ad36006c1bb0cd7e
5
5
  SHA512:
6
- metadata.gz: dbf965812be0441fa599f58abf906351e5c58bdd148153cb0428e4b9753b58c56c401f40ff83d78228f37f3f1a823b95b2279159fe24ab76df95162d83548f5f
7
- data.tar.gz: a68bc77adc51d34c9f200d25c1b82680fd7eef0125f79936e9e9c91f6948d1e3cc53b583c7d864f5d40ac5dbf7d51506448d18a11dfcd6e3bfaaa9d906234e1e
6
+ metadata.gz: 271667919496037df8803fb80cb7850bc8c47c73f4b7824c9c5656d2ea1d2b7162b28c806df2d5180dc22a9fc2cb20f12e5e7d98f8817cac898b2e9a18f7d002
7
+ data.tar.gz: a0ea91f8e15f85a0152cec8b00a3d4679268148f87824137d05d71529eed5f2c2d4a8106900a6887853af78f1759b39ec4327716785865792f1a5330436bb10a
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
3
+ - 2.3.0
4
+ - 2.3.1
4
5
  before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,10 @@
1
+ ### 1.0.4 - 2016-08-13
2
+ * Bug fix: Case-insentive configuration of email is ignored (#1). Thanks to [@fonglh](https://github.com/fonglh).
3
+
4
+ ### 1.0.3 - 2016-02-18
5
+
6
+ * Bug fix: Fix a wrong error message which shows "Email can't be blank" when email does not exist.
7
+
8
+ ### 1.0.2 - 2016-01-12
9
+
10
+ First stable release.
@@ -59,11 +59,12 @@ module Devise
59
59
 
60
60
  module ClassMethods
61
61
  def find_first_by_auth_conditions(tainted_conditions, opts = {})
62
- tainted_conditions = tainted_conditions.dup
63
- email = tainted_conditions.delete(:email)
62
+ filtered_conditions = devise_parameter_filter.filter(tainted_conditions.dup)
63
+ email = filtered_conditions.delete(:email)
64
+
64
65
  if email && email.is_a?(String)
65
- conditions = devise_parameter_filter.filter(tainted_conditions).to_h.merge(opts).
66
- reverse_merge(emails: { email: email })
66
+ conditions = filtered_conditions.to_h.merge(opts).
67
+ reverse_merge(emails: { email: email })
67
68
 
68
69
  resource = joins(:emails).find_by(conditions)
69
70
  resource.current_login_email = email if resource.respond_to?(:current_login_email=)
@@ -84,4 +85,4 @@ module Devise
84
85
  end
85
86
  end
86
87
  end
87
- end
88
+ end
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module MultiEmail
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-multi_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ALLEN WANG QIANG
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-18 00:00:00.000000000 Z
11
+ date: 2016-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -63,6 +63,7 @@ files:
63
63
  - ".rspec"
64
64
  - ".simplecov"
65
65
  - ".travis.yml"
66
+ - CHANGELOG.md
66
67
  - CODE_OF_CONDUCT.md
67
68
  - Gemfile
68
69
  - LICENSE.txt