sheffield_ldap_lookup 0.0.9 → 0.0.10

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
  SHA256:
3
- metadata.gz: 2a0dc52a5bd9f5aa8ec1401e62ca05c0d5f7062c0f382afb77d1f4d8595df0b5
4
- data.tar.gz: f945bc9ded89ea4b1d9a047ae6b1c5a7b71786b2a7d98acdd426f5172c7720c4
3
+ metadata.gz: 2499f759ae17e3702bbcd6e07bdaeb7985488bc5074a561392f02c80386c4b03
4
+ data.tar.gz: d4035c152037b834a2dcd02ce96692b43bc69292f30bbaca059058870f5ffe7f
5
5
  SHA512:
6
- metadata.gz: 42ed11ed5b09a6a6b3b159fc4fee3757235802bfad7ce87420b3507751ba4f7561502195c03e51a44e373ee7069595f768d2b0234177a98f4ef99c7bac564ed6
7
- data.tar.gz: 46017a6b493efd2d91b87f8669e9118ececac71a9190dea0782ca3958b480b8001849e632143fcc0b7d8a3b6c0183d83d07713480cb2011d59ee33a0b0ddff2e
6
+ metadata.gz: 41775cb57a487c0b87a563b5ba880edfa0cefd124caafdd69830d7d833faa402083351e60b90d1938090ebf367c74326471b98eddc8efa127afacad4706735e1
7
+ data.tar.gz: '085a7d951eaa6073edcbf8b7abe17642fe8f0ee946aba7ca24230e752cae79459eb485dc09f2e94d9bb240fe70b4324f148d45b20a809500f1a85dc787162b76'
@@ -16,8 +16,12 @@ module SheffieldLdapLookup
16
16
  end
17
17
 
18
18
  def lookup
19
+ all_results[0]
20
+ end
21
+
22
+ def all_results
19
23
  begin
20
- @lookup ||= connection.search(filter: ldap_filter)[0]
24
+ @all_results ||= connection.search(filter: ldap_filter)
21
25
  rescue Exception => exception
22
26
  if self.class.error_notification_proc.is_a?(Proc)
23
27
  self.class.error_notification_proc.call(exception)
@@ -1,3 +1,3 @@
1
1
  module SheffieldLdapLookup
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sheffield_ldap_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Gregory-Monk
8
8
  - Shuo Chen
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-22 00:00:00.000000000 Z
12
+ date: 2024-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ldap
@@ -93,7 +93,7 @@ files:
93
93
  homepage: https://www.epigenesys.org.uk
94
94
  licenses: []
95
95
  metadata: {}
96
- post_install_message:
96
+ post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths:
99
99
  - lib
@@ -108,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.3.7
112
- signing_key:
111
+ rubygems_version: 3.4.18
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: LDAP lookup
115
115
  test_files: