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 595fea88 Docco fixes
595fea88 is described below
commit 595fea884c656ac007a95be5f400681e18a30b0a
Author: Sebb <[email protected]>
AuthorDate: Sun Apr 23 14:50:11 2023 +0100
Docco fixes
---
DEVELOPMENT.md | 2 +-
www/secretary/upload_file.cgi | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
index 5ffe5ac5..22119456 100644
--- a/DEVELOPMENT.md
+++ b/DEVELOPMENT.md
@@ -349,8 +349,8 @@ check `ASF::Auth` in their code, and output a "Status: 401
Unauthorized"
line if access to the tool is **not** permitted for the user.
```ruby
-require 'whimsy/asf/rack' # Ensures server auth is passed thru
require 'whimsy/asf' # Provides ASF::Auth class
+require 'whimsy/asf/rack' # Ensures server auth is passed thru, provides
ASF::Auth module
user = ASF::Auth.decode(env = {})
unless user.asf_member? or ASF.pmc_chairs.include? user
diff --git a/www/secretary/upload_file.cgi b/www/secretary/upload_file.cgi
index 1bac1d66..cd7750ab 100755
--- a/www/secretary/upload_file.cgi
+++ b/www/secretary/upload_file.cgi
@@ -5,8 +5,7 @@ $LOAD_PATH.unshift '/srv/whimsy/lib'
require 'wunderbar'
require 'wunderbar/bootstrap'
require 'whimsy/asf'
-require 'whimsy/asf/rack' # Ensures server auth is passed thru
-require 'whimsy/asf' # Provides ASF::Auth class
+require 'whimsy/asf/rack' # Ensures server auth is passed thru; provides
ASF::Auth module
_html do
_body? do