You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/04/24 11:58:38 UTC
[whimsy] branch master updated: ignore spaces and allow licenses
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 c09e7af ignore spaces and allow licenses
c09e7af is described below
commit c09e7af3d6b5b424284a2e41844366ad963bcdb3
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon Apr 24 07:57:57 2017 -0400
ignore spaces and allow licenses
---
tools/site-check.rb | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/tools/site-check.rb b/tools/site-check.rb
index a0ec9e2..c95e14b 100755
--- a/tools/site-check.rb
+++ b/tools/site-check.rb
@@ -72,9 +72,17 @@ committees.sort_by {|committee| committee.name}.each do |committee|
end
end
- data[:license] = uri + a['href'].strip if a.text.downcase == 'license'
- data[:thanks] = uri + a['href'].strip if a.text.downcase == 'thanks'
- data[:security] = uri + a['href'].strip if a.text.downcase == 'security'
+ if a.text.downcase.strip =~ /licenses?/
+ data[:license] = uri + a['href'].strip
+ end
+
+ if a.text.downcase.strip == 'thanks'
+ data[:thanks] = uri + a['href'].strip
+ end
+
+ if a.text.downcase.strip == 'security'
+ data[:security] = uri + a['href'].strip
+ end
if %w(sponsorship donate).include? a.text.downcase
data[:sponsorship] = uri + a['href'].strip
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].