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: c762605fa4a0ae213a93da5a9e27dce5593f428c
4
- data.tar.gz: 79aaab1d0fcc107ab6e7d6d2cd9e6c91f33f2522
3
+ metadata.gz: cd47d513a8e2914c5cdd303f2ba17f8f7a2aa109
4
+ data.tar.gz: 45fbf0f9467c9e3838d816c789a896737a6ffe5e
5
5
  SHA512:
6
- metadata.gz: d3d693683f31ecf6e014dccf9e4d08d88a1a8e14d03f7fd6c50e2df08bd0e43fa32ab17fea47e79a5934ebac31e34ccf2f4a7bcf5b2ac94d6547573d326fbe94
7
- data.tar.gz: 2d257ae973cce1ef8b3cea691520870fc0fd21192e395516462bd8c22ce42d74a0f3b6268fa9f82df37d8e05501b5c4332d8bc9545d959404cddebec95a2cb30
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: new_attrs[:email])
89
+ raise OmniAuth::MultiProvider::EmailTakenError if User.exists?(email: email)
90
90
  end
91
91
  self.update!(new_attrs)
92
92
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module MultiProvider
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  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.1
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-22 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise