omniauth-multiprovider 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd47d513a8e2914c5cdd303f2ba17f8f7a2aa109
|
4
|
+
data.tar.gz: 45fbf0f9467c9e3838d816c789a896737a6ffe5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f36ee885d41d6a4a30466225b55adbf3b24a1f199ca815eb89856146702b56a3174fd8ee2315361bd02cc953b73cb6a6bc3f1452985a206614148944bef354d9
|
7
|
+
data.tar.gz: 1fb4ce5b3de1f7e52acc7f098ee36f4f599e9409b61a0bc16f361956abd26c0ce8c92ce27d0a7a580b48a7161db5be35c0c17f7afce9a05c4b43de365e27e03f
|
@@ -84,9 +84,9 @@ module OmniAuth
|
|
84
84
|
def update_from_oauth(new_attrs, oauth)
|
85
85
|
unless self.email.blank? || new_attrs[:email] == self.email
|
86
86
|
# refusing to change existing email
|
87
|
-
new_attrs.delete(:email)
|
87
|
+
email = new_attrs.delete(:email)
|
88
88
|
# but check if someone else is using it anyway
|
89
|
-
raise OmniAuth::MultiProvider::EmailTakenError if User.exists?(email:
|
89
|
+
raise OmniAuth::MultiProvider::EmailTakenError if User.exists?(email: email)
|
90
90
|
end
|
91
91
|
self.update!(new_attrs)
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-multiprovider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- German Del Zotto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|