sync_attr_with_auth0 0.1.5 → 0.1.6

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: a5457dfb8a1932697e839945d0844bb185d4080d
4
- data.tar.gz: d2f4db8ed0e24103f4eedb1fa9277466c6bbcf92
3
+ metadata.gz: 13eba93a39c3b43a91ba3180eac423de3539be14
4
+ data.tar.gz: 32665ebf1928fe955b1f5a83f941a040b019a3c6
5
5
  SHA512:
6
- metadata.gz: 1afbc06542e3f595b53634ffe798d44c3cf616c1dd71a4bd23a16c22eb1b7053d0ad1d138ca84c172d552041fc1a57e3cde48b8f0ffd9557312ce6bb5b52112a
7
- data.tar.gz: f6990fce1f91778643f3d50c002e39ad6d432577c340f6b23f5b12f718173ba80284b44949aaf2da853451d5573abffc790840dbc4a2e8452221d5453789dc2f
6
+ metadata.gz: f44dbd08f81cc82af8cd4ded2277028472083b995b0017da35f4560be68869dbdb53add03e02aa4ce5308e7970495ecb917f390890d7e2fa507517440bd746c4
7
+ data.tar.gz: 4819bd1e3f2ac0ded524a0a358809c416209b3df92457c2cdadac39f790b8d899d06d7aa618f47a712ef427196ff8398b527d9afd0f8560b7cf270fbcbb822cb
@@ -67,7 +67,8 @@ module SyncAttrWithAuth0
67
67
  def self.find_users_by_email(email, exclude_user_id: nil, config: SyncAttrWithAuth0.configuration)
68
68
  auth0 = SyncAttrWithAuth0::Auth0.create_auth0_client(config: config)
69
69
 
70
- results = auth0.get('/api/v2/users-by-email', email: email)
70
+ # Use the Lucene search because Find by Email is case sensitive
71
+ results = auth0.get('/api/v2/users', q: "email:#{email}")
71
72
 
72
73
  if exclude_user_id
73
74
  results = results.reject { |r| r['user_id'] == exclude_user_id }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sync_attr_with_auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McGraw