whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: resource can contain '-'
Date Thu, 08 Jun 2017 12:58:36 GMT
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 6a1bcd6  resource can contain '-'
6a1bcd6 is described below

commit 6a1bcd6618ee45e700a8ac2375a6766f70e5058b
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jun 8 13:58:35 2017 +0100

    resource can contain '-'
---
 lib/whimsy/asf/podlings.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/podlings.rb b/lib/whimsy/asf/podlings.rb
index 3fe2683..1fe8358 100644
--- a/lib/whimsy/asf/podlings.rb
+++ b/lib/whimsy/asf/podlings.rb
@@ -209,7 +209,8 @@ module ASF
     end
 
     def podlingStatus
-      @resource.untaint if @resource =~ /\a\w+\z/
+      # resource can contain '-'
+      @resource.untaint if @resource =~ /\A[-\w]+\z/
       incubator_content = ASF::SVN['asf/incubator/public/trunk/content']
       resource_yml = "#{incubator_content}/podlings/#{@resource}.yml"
       if File.exist?(resource_yml)

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message