bpluser 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceaa590417e7cd1d89eef6a04779e9c6ff2e0edc
4
- data.tar.gz: 5faab6cbe6a48022dc2891b41f02b1c5108e5442
3
+ metadata.gz: c409b7b9c1d82c5918ace9bbe0fe72cea2133d1d
4
+ data.tar.gz: 7ffd1f0d43b6b0330f5feebdda2d814cd0e2ef0a
5
5
  SHA512:
6
- metadata.gz: 80c37f942440ea40f964c64b917239bff7bd77b9f001837ad0698b4f4c767fb5813fa9b4dfc836c272eeccd206c1ed0d29ff3d86da29e22c55c0f9e5e912efef
7
- data.tar.gz: 9a615867dbb9beb00f5a0d9295b7527335885bfa657807204dc287f6a8090b0eed249cc27a8ce1e14b1fff98e98d3cd32e040f1720b937a472e33e8fc5098729
6
+ metadata.gz: 8876be6e95b2ffb0101b7490e90aeebe774f57f81961746fec2d46cbc144857bf021017b82d648970a5298cede56d4c3aae983da56e356bdb9851277a09b9f89
7
+ data.tar.gz: 0235628b4000d42124c3e09bf74dcd4f214eddbdec74d29492cfde79977b130f2fed42c29c3f0a6eaae280788e972c75053786265b3d22c3b24bc86754b01266
@@ -70,11 +70,12 @@ module Bpluser::User
70
70
  #first_name:ldap_info_details.first_name,
71
71
  #last_name:ldap_info_details.last_name,
72
72
  unless user
73
+ email_value = polaris_info_details[:email].present? ? polaris_info_details[:email] : ''
73
74
  #For some reason, User.create has no id set despite that intending to be autocreated. Unsure what is up with that. So trying this.
74
75
  user = User.new(provider:auth_response.provider,
75
76
  uid:auth_response[:uid],
76
77
  username:polaris_info_details[:first_name],
77
- email:polaris_info_details[:email],
78
+ email:email_value,
78
79
  password:Devise.friendly_token[0,20],
79
80
  display_name:polaris_info_details[:first_name] + " " + polaris_info_details[:last_name],
80
81
  first_name: polaris_info_details[:first_name],
@@ -1,3 +1,3 @@
1
1
  module Bpluser
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpluser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boston Public Library Web Services