This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  91020f4   adjust insertion point for new grants
91020f4 is described below

commit 91020f4bd119515f3b6a5a73bca37c10b86b3a4d
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Sep 18 16:13:52 2016 -0400

    adjust insertion point for new grants
---
 www/secmail/views/actions/grant.json.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/secmail/views/actions/grant.json.rb 
b/www/secmail/views/actions/grant.json.rb
index 110e997..f31ff0b 100644
--- a/www/secmail/views/actions/grant.json.rb
+++ b/www/secmail/views/actions/grant.json.rb
@@ -91,7 +91,9 @@ task "svn commit foundation/officers/grants.txt" do
     svn 'update', dest
 
     # update grants.txt
-    File.write dest, File.read(dest) + @grantlines + "\n"
+    marker = "\n# registering.  documents on way to Secretary.\n"
+    File.write dest,
+      File.read(dest).split(marker).insert(1, "\n#{@grantlines}\n", 
marker).join
 
     # show the changes
     svn 'diff', dest

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

Reply via email to