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 +4 -4
- data/lib/sheffield_ldap_lookup/ldap_finder.rb +5 -1
- data/lib/sheffield_ldap_lookup/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2499f759ae17e3702bbcd6e07bdaeb7985488bc5074a561392f02c80386c4b03
|
4
|
+
data.tar.gz: d4035c152037b834a2dcd02ce96692b43bc69292f30bbaca059058870f5ffe7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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)
|
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.
|
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:
|
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.
|
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:
|