whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 176460f: download member applications
Date Wed, 02 Mar 2016 15:46:09 GMT
Commit 176460fae3a56de1945e9da3b0572e5924f6f4fd:
    download member applications


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
repository.yml                                               | +++ 
www/roster/models/committer.rb                               | + -
------------------------------------------------------------
5 changes: 4 additions, 1 deletions.
------------------------------------------------------------


diff --git a/repository.yml b/repository.yml
index d8272fb..1aac207 100644
--- a/repository.yml
+++ b/repository.yml
@@ -44,6 +44,9 @@
   incubator_site_author:
     url: http://svn.apache.org/repos/asf/incubator/public/trunk/content
 
+  member_apps:
+    url: private/documents/member_apps
+
   minutes:
     url: asf/infrastructure/site/trunk/content/foundation/records/minutes
 
diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index e24b7b8..ba00a53 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -84,7 +84,7 @@ def self.serialize(id, env)
 
         apps = ASF::SVN['private/documents/member_apps']
         memapp = member[:info].split("\n").first.downcase.gsub(/\s/, '-')
-        if File.exist? File.join(apps, memapp + '.pdf')
+        if apps and File.exist? File.join(apps, memapp + '.pdf')
           response[:forms][:member] = memapp + '.pdf'
         end
       else

Mime
View raw message