omniauth-multiprovider 0.0.2 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cd7c7387a382dda00c16d4f6d6ab9c87e0da463
|
4
|
+
data.tar.gz: 936b54ed7ffbcaf58c0ef7a72168ba1fdccccebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a03217194fc129b9f2bd7b4d52b59cc1ba1a62069545494de2b843a4d43c97c215e1aaf9e8edda4b9702ec55da450c54d736ad96fe0dc3320ce8729bd1d2a55
|
7
|
+
data.tar.gz: 45bf3779f4482fc08e9f12f38af3dd55bff7bd2673e0c27a83f2a8a5c8bb6666c19e5404b9c71a02407123778e6fe713ea97f950e2912f1ce96ba98e83f1d174
|
@@ -8,16 +8,20 @@ module OmniAuth
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def mocked_email?
|
11
|
-
email.match(/.*@from\-.*\.
|
11
|
+
read_attribute(:email).match(/.*@from\-.*\.example$/) != nil
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
|
14
|
+
def mocked_email
|
15
|
+
read_attribute(:email)
|
16
|
+
end
|
17
|
+
|
18
|
+
def email
|
19
|
+
mocked_email? ? nil : read_attribute(:email)
|
16
20
|
end
|
17
21
|
|
18
22
|
module ClassMethods
|
19
23
|
def mock_email(provider, nickname)
|
20
|
-
"#{nickname}@from-#{provider}.example
|
24
|
+
"#{nickname}@from-#{provider}.example"
|
21
25
|
end
|
22
26
|
end
|
23
27
|
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.0
|
4
|
+
version: 0.1.0
|
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: 2014-06-
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -95,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.2.
|
98
|
+
rubygems_version: 2.2.2
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Authenticate devise users with multiple OAuth providers
|
102
102
|
test_files: []
|
103
|
-
has_rdoc:
|