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: 34da0ba445043816e1e3dd4f72f3c3551007c645
4
- data.tar.gz: c533befeb3ee48612087b4420ece8865f4941c8c
3
+ metadata.gz: 9cd7c7387a382dda00c16d4f6d6ab9c87e0da463
4
+ data.tar.gz: 936b54ed7ffbcaf58c0ef7a72168ba1fdccccebf
5
5
  SHA512:
6
- metadata.gz: 0607783b50c1c221f17eda643f2ef9b49f2b26b320b27c3fea0686f680c69bc7ceddeb6a162a90c6698776e364774980270e66ddf480794989b666e6c58279df
7
- data.tar.gz: 39a34d6b61b6aec6a071e11b7e715747662d75928475b9e2ff8aced3100338da182b8b60ba638763c6fb590681e1f56102058722ff812a24e6a7230d4bfcb29b
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\-.*\.com$/) != nil
11
+ read_attribute(:email).match(/.*@from\-.*\.example$/) != nil
12
12
  end
13
13
 
14
- def current_email
15
- mocked_email? ? '' : email
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.com"
24
+ "#{nickname}@from-#{provider}.example"
21
25
  end
22
26
  end
23
27
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module MultiProvider
3
- VERSION = '0.0.2'
3
+ VERSION = '0.1.0'
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.0.2
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-13 00:00:00.000000000 Z
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.0
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: