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 d33baba5 Also need to define the name here
d33baba5 is described below
commit d33baba53d7a065019a6c7668579d5a59de5af7a
Author: Sebb <[email protected]>
AuthorDate: Thu Feb 13 22:32:17 2025 +0000
Also need to define the name here
---
Rakefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Rakefile b/Rakefile
index a83442de..ebdfc058 100644
--- a/Rakefile
+++ b/Rakefile
@@ -65,12 +65,20 @@ task :update, [:command] do |_task, args|
gems = gemlines.map {|line| [line[/['"](.*?)['"]/, 1], line.strip]}.to_h
gems['whimsy-asf'].sub!(/,.*/, ", path: #{Dir.pwd.inspect}")
+ ldapname =
+ begin
+ File.read(File.expand_path('../asfldap.gemname', __FILE__)).strip
+ rescue Exception => e
+ 'ruby-ldap'
+ end
+
# Also need to define version for wunderbar as per the asf.gemspec file
require 'tmpdir'
Dir.mktmpdir do |dir|
Dir.chdir dir do
contents = [
"source 'https://rubygems.org'",
+ "ldapname = '#{ldapname}'",
'ldapversion = nil', # Needed for initial gem setup
gems.values
].join("\n")