soar-registry-identity 1.0.1 → 1.0.2

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: 61e1631e0c686f692e76bcdcbb79b81e959650eb
4
- data.tar.gz: bdbc70c78f68790210ce731a92c17832ad586a99
3
+ metadata.gz: 521a1b6a76800e3619217870ed66dff7cbbc856d
4
+ data.tar.gz: 1d4573d5b94de852b51ef8d25b8a99c5e50af7e3
5
5
  SHA512:
6
- metadata.gz: 7143547d7152478e3b0659975cc0cacea568ec0e427946aeb481b433bbb5df093666d92848a987cc88d154561b667601547e6f88498b8d9199472ec63d857130
7
- data.tar.gz: 535393b98c3092d75de8e32d2870c69c4c0965a8731a04e0d75d4c95cc84e29130b9ecd28d7df8e5280476e75807c72cdca7b23dbb857a72503148946d947f68
6
+ metadata.gz: 5c796722f10091530bc6a4292395b4bc210fe0ace326c2ff29bec238638968db729073614aadfa9402bb7086e20de8d7504b503256a163d2c6b8298c5e1dac76
7
+ data.tar.gz: 7f12d004ceecbc34a3be9f10b8c7d5e1b53df4e9a5b361547e7d8b0a64fbb42566e33b8aebf7a74e762542bf99db02a7b7179895d0232b5f43d62de77df2b8d9
@@ -13,7 +13,7 @@ module Soar
13
13
  ##
14
14
  def calculate_identities(identifier)
15
15
  entries = @directory.search(@directory.index[1], identifier )
16
- return [@translator.get_identity(entries)[0]]
16
+ return entries.empty? ? [] : [@translator.get_identity(entries)[0]]
17
17
  end
18
18
 
19
19
  end
@@ -1,19 +1,19 @@
1
1
  [
2
2
  {
3
- "entryUUID": "identity-62936e70-1815-439b-bf89-8492855a7e6b",
4
- "Email": "test+publisher@hetzner.co.za"
3
+ "entryuuid": "identity-62936e70-1815-439b-bf89-8492855a7e6b",
4
+ "mail": "test+publisher@hetzner.co.za"
5
5
  },
6
6
  {
7
- "entryUUID": "identity-43353f18-8afe-11e6-ae22-56b6b6499611",
8
- "Email": "test+consumer@hetzner.co.za"
7
+ "entryuuid": "identity-43353f18-8afe-11e6-ae22-56b6b6499611",
8
+ "mail": "test+consumer@hetzner.co.za"
9
9
  },
10
10
  {
11
- "entryUUID": "identity-820d5660-2204-4f7d-8c04-746313439b81",
12
- "Email": "admin@hetzner.co.za"
11
+ "entryuuid": "identity-820d5660-2204-4f7d-8c04-746313439b81",
12
+ "mail": "admin@hetzner.co.za"
13
13
  },
14
14
  {
15
- "entryUUID": "identity-1ff472a6-8df3-4f13-82c3-89fde26db3cf",
16
- "Email": "none@example.com"
15
+ "entryuuid": "identity-1ff472a6-8df3-4f13-82c3-89fde26db3cf",
16
+ "mail": "none@example.com"
17
17
  }
18
18
  ]
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar-registry-identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Mulder
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.0
33
+ version: 2.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.0
40
+ version: 2.0.1
41
41
  description: Registry of identities
42
42
  email: charles.mulder@hetzner.co.za
43
43
  executables: []