whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: try harder to match podling names
Date Mon, 01 Apr 2019 00:58:04 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 de8427c  try harder to match podling names
de8427c is described below

commit de8427c4b88003f54a01111c32084776b60dbb5e
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Mar 31 20:57:47 2019 -0400

    try harder to match podling names
---
 lib/whimsy/asf/podling.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/podling.rb b/lib/whimsy/asf/podling.rb
index 7322a20..8f6d353 100644
--- a/lib/whimsy/asf/podling.rb
+++ b/lib/whimsy/asf/podling.rb
@@ -200,7 +200,10 @@ module ASF
 
     # find a podling by name
     def self.find(name)
-      list.find { |podling| podling.name == name }
+      name = name.downcase
+      list.find do |podling| 
+        podling.name == name || podling.display_name.downcase == name
+      end
     end
 
     # below is for backwards compatibility


Mime
View raw message