You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/04 18:09:12 UTC

[whimsy] branch master updated: fix regression (lines accidentally deleted); add test

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

rubys 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 9a7dfd0  fix regression (lines accidentally deleted); add test
9a7dfd0 is described below

commit 9a7dfd02d1013a8cd31add7f0460c77bd7cd7a36
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Apr 4 14:08:55 2018 -0400

    fix regression (lines accidentally deleted); add test
---
 www/board/agenda/spec/actions_spec.rb       | 13 +++++++++++++
 www/board/agenda/views/actions/post.json.rb |  3 +++
 2 files changed, 16 insertions(+)

diff --git a/www/board/agenda/spec/actions_spec.rb b/www/board/agenda/spec/actions_spec.rb
index e5933c1..7e61e46 100644
--- a/www/board/agenda/spec/actions_spec.rb
+++ b/www/board/agenda/spec/actions_spec.rb
@@ -31,6 +31,19 @@ feature 'server actions' do
       expect(resolution['text']).
         to eq('WHEREAS, RESOLVED, and other official words')
     end
+
+    it "should post out of cycle reports" do
+      @agenda = 'board_agenda_2015_02_18.txt'
+      @attach = '+Whimsy'
+      @message = 'Post Out of Cycle Whimsy Project'
+      @report = 'all is well'
+
+      eval(File.read('views/actions/post.json.rb'))
+
+      resolution = @agenda.find {|item| item[:attach] == 'CG'}
+      expect(resolution['title']).to eq('Whimsy')
+      expect(resolution['report']).to eq('all is well')
+    end
   end
 
   #
diff --git a/www/board/agenda/views/actions/post.json.rb b/www/board/agenda/views/actions/post.json.rb
index 2849590..e88a950 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -35,6 +35,9 @@ Agenda.update(@agenda, @message) do |agenda|
     # update the commit message that will be used
     @message.sub! "7X", "7#{order}"
 
+    # insert into agenda
+    agenda[/\n() 8\. Discussion Items/, 1] = "#{title}#{@report}\n\n"
+
   elsif @attach.start_with? '+'
     pmc_reports = parsed.select {|section| section[:attach] =~ /^[A-Z]/}
     attach = pmc_reports.last[:attach].succ

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.