mumukit-login 6.1.4 → 6.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/login/profile.rb +5 -1
- data/lib/mumukit/login/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b06f2ea6dfb46a332af3c9a1559d61029a74feaa00a0d31ba54d210e15f7d29
|
4
|
+
data.tar.gz: 545abdd88e487585c1f58da70a06118429b398c560e2a9aac85e261237a735b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c8a22e6e39ac4dd4d8bf3a7a717d002dc0f461975127141438c681b93e3bf1b125d172db6991c2873dce345f90f8ad4b513d515ac49a83bb66eea7bca9187f
|
7
|
+
data.tar.gz: bd6a338800b627d90492bf186aab938fe0217a4c3a568448cf103eed2089e1ff158ab52cf2578572e0f5d69b2e602f197d9906962194a7badd5838da7f517c91
|
@@ -5,7 +5,11 @@ module Mumukit::Login::Profile
|
|
5
5
|
last_name: omniauth.info.last_name,
|
6
6
|
social_id: omniauth.uid,
|
7
7
|
email: omniauth.info.email,
|
8
|
-
uid: omniauth
|
8
|
+
uid: generate_uid(omniauth),
|
9
9
|
image_url: omniauth.info.image
|
10
10
|
end
|
11
|
+
|
12
|
+
def self.generate_uid(omniauth)
|
13
|
+
omniauth.info.email || omniauth.uid
|
14
|
+
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|