socrates 0.1.4 → 0.1.6

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: c607c420626916f58b95937ab1494db96777de17
4
- data.tar.gz: 7a981c8a829195f334488f2bc061d69d925ae9ad
3
+ metadata.gz: f813438b75945834217c30d8bc6a5ef40ee9c1e4
4
+ data.tar.gz: e7b0f2f3cb3aee495da7587452ec16f644e49921
5
5
  SHA512:
6
- metadata.gz: 27eda804b512cbedcbdc32e90c3375128cc2fa01e6e1721e9ef57043d18fe2aa2fd510a7d5bf966d912c63074d0db6c91d3a5d2264e9746f79d6c5c0a74b9b83
7
- data.tar.gz: ef78d69889110102795189a999d75d8d6dca08c61d8b08bec245c8c1867ba516b1c9e0079aef75936575d905e5be5c4d806f9fe9baf4693f4e65f7bfd79d6e5b
6
+ metadata.gz: e83c6751e94f0f4019edbcffdc61669acd41c474e9502db5e2c0b501175e5aa64a2eb9c9bc0273c30b1d60a6f1a255d752a6a0ce977e3ebf786cbed4810a1531
7
+ data.tar.gz: a0394070b283a41a9c265690a67a4edc001ff0b3f95f3793b3f2836824d83181a655c70186867ba71ca2bf5ba1071ee6cc1878319bf9de0100147d0e0c653f9f
@@ -28,7 +28,8 @@ module Socrates
28
28
 
29
29
  def lookup_email(context:)
30
30
  client = @real_time_client.web_client
31
- client.users_info(user: context.user)
31
+ info = client.users_info(user: context.user)
32
+ info.present? ? info.user.profile.email : nil
32
33
  end
33
34
 
34
35
  private
@@ -1,3 +1,3 @@
1
1
  module Socrates
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socrates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nelson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler