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 dd940b6  Allow host to be redefined
dd940b6 is described below

commit dd940b6ca48e342b5f3971bca469eb0e02dcd303
Author: Sebb <[email protected]>
AuthorDate: Wed Dec 13 13:58:18 2017 +0000

    Allow host to be redefined
---
 tools/ponyapi.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tools/ponyapi.rb b/tools/ponyapi.rb
index c21a3cc..0c8f4b3 100644
--- a/tools/ponyapi.rb
+++ b/tools/ponyapi.rb
@@ -10,9 +10,10 @@ require 'cgi'
 
 # Utilities for downloading from Ponymail APIs
 module PonyAPI
-  PONYSTATS = 'https://lists.apache.org/api/stats.lua?list=' # 
board&domain=apache.org&d=2017-04 becomes board-apache-org-201704-stats.json
-  PONYMBOX = 'https://lists.apache.org/api/mbox.lua?list=' # 
[email protected]&date=2016-06 becomes board-apache-org-201707.mbox
-  PONYPREFS = 'https://lists.apache.org/api/preferences.lua' # => 
preferences.json
+  PONYHOST = ENV['PONYHOST'] || 'https://lists.apache.org/'
+  PONYSTATS = PONYHOST + 'api/stats.lua?list=' # 
board&domain=apache.org&d=2017-04 becomes board-apache-org-201704-stats.json
+  PONYMBOX  = PONYHOST + 'api/mbox.lua?list=' # [email protected]&date=2016-06 
becomes board-apache-org-201707.mbox
+  PONYPREFS = PONYHOST + 'api/preferences.lua' # => preferences.json
   
   extend self
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to