This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 42d4474e Ensure stand-alone test works
42d4474e is described below
commit 42d4474e22a4ab50cfc7f187b296f71fc3293c84
Author: Sebb <[email protected]>
AuthorDate: Sun Jan 7 20:42:34 2024 +0000
Ensure stand-alone test works
---
lib/whimsy/asf/ldap.rb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index b0b75f67..953eb3be 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -39,6 +39,11 @@ require 'base64'
require 'securerandom'
require 'set'
+if __FILE__ == $0
+ $LOAD_PATH.unshift '/srv/whimsy/lib'
+ require 'whimsy/asf/config'
+end
+
module ASF
@@weakrefs = Set.new
@@ -1526,8 +1531,6 @@ module ASF
end
if __FILE__ == $0
- $LOAD_PATH.unshift '/srv/whimsy/lib'
- require 'whimsy/asf/config'
mem = ASF.members()
puts mem.length
puts mem.first.inspect