omniauth-multiprovider 0.2.0 → 0.2.1

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: c1f3a5a4a52bb8284020af1e7399416e1b1b34d6
4
- data.tar.gz: 15ec2a53af0a3a883291ad7c0c8dcb3772c19bef
3
+ metadata.gz: c762605fa4a0ae213a93da5a9e27dce5593f428c
4
+ data.tar.gz: 79aaab1d0fcc107ab6e7d6d2cd9e6c91f33f2522
5
5
  SHA512:
6
- metadata.gz: cda70641cc3aea4b3998bb02e13b22cf9bb0e77dd7bf459d4bb9496841392489be746885a0a402f1a2d1d5da5b5fdf3a86b186b3cc0d792ddca611c90d65789a
7
- data.tar.gz: 4ba92b422f566f0b1f7e2e3c88578c05a3e51b939ed2469c6616f28e01f10ee56e2ec1db0d02738c3f8e2c2d95a90dd95ef1fb1a9becf8789322db1ce65b40f5
6
+ metadata.gz: d3d693683f31ecf6e014dccf9e4d08d88a1a8e14d03f7fd6c50e2df08bd0e43fa32ab17fea47e79a5934ebac31e34ccf2f4a7bcf5b2ac94d6547573d326fbe94
7
+ data.tar.gz: 2d257ae973cce1ef8b3cea691520870fc0fd21192e395516462bd8c22ce42d74a0f3b6268fa9f82df37d8e05501b5c4332d8bc9545d959404cddebec95a2cb30
@@ -9,6 +9,7 @@ module OmniAuth
9
9
  autoload :EmailMockups, 'omniauth/multiprovider/models/email_mockups'
10
10
  autoload :Error, 'omniauth/multiprovider/error'
11
11
  autoload :AlreadyBoundError, 'omniauth/multiprovider/error'
12
+ autoload :EmailTakenError, 'omniauth/multiprovider/error'
12
13
  end
13
14
  module Provider
14
15
  autoload :Abstract, 'omniauth/provider/abstract'
@@ -49,7 +49,7 @@ module OmniAuth
49
49
  end
50
50
 
51
51
  # Can be customized in each model
52
- def create_from_oauth(attributes, signed_in_resource = nil, oauth_data)
52
+ def create_from_oauth(attributes, oauth_data)
53
53
  raise OmniAuth::MultiProvider::EmailTakenError if exists?(email: attributes[:email])
54
54
  create!(attributes)
55
55
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module MultiProvider
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-multiprovider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - German Del Zotto