[whimsy] branch master updated: tabs => spaces

2018-06-11 Thread rubys
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 d7db00f  tabs => spaces
d7db00f is described below

commit d7db00f15b0d311e92cd58e4876e86bc2c0a2986
Author: Sam Ruby 
AuthorDate: Mon Jun 11 09:58:45 2018 -0400

tabs => spaces
---
 www/board/agenda/views/actions/batch.json.rb  | 16 -
 www/board/agenda/views/actions/commit.json.rb |  6 ++--
 www/board/agenda/views/buttons/offline.js.rb  | 14 
 www/board/agenda/views/buttons/post.js.rb | 18 +-
 www/board/agenda/views/models/agenda.js.rb| 50 +--
 www/board/agenda/views/models/pagecache.js.rb |  2 +-
 www/board/agenda/views/models/pending.js.rb   | 40 ++---
 www/board/agenda/views/pages/fy23.js.rb   |  8 ++---
 www/board/agenda/views/sw.js.rb   |  2 +-
 9 files changed, 78 insertions(+), 78 deletions(-)

diff --git a/www/board/agenda/views/actions/batch.json.rb 
b/www/board/agenda/views/actions/batch.json.rb
index 718b374..b5cfca2 100644
--- a/www/board/agenda/views/actions/batch.json.rb
+++ b/www/board/agenda/views/actions/batch.json.rb
@@ -30,15 +30,15 @@ Pending.update(env.user, @agenda) do |pending|
   if @pending['flag']
 @pending['flag'].each do |attach, request|
   if request == 'flag'
-   unflagged.delete attach
-   flagged << attach unless flagged.include? attach or
- agenda.find {|item| item[:attach] == attach and
-   Array(item['flagged_by']).include? @initials}
+unflagged.delete attach
+flagged << attach unless flagged.include? attach or
+  agenda.find {|item| item[:attach] == attach and
+Array(item['flagged_by']).include? @initials}
   else
-   flagged.delete attach
-   unflagged << attach unless unflagged.include? attach or
- not agenda.find {|item| item[:attach] == attach and
-   Array(item['flagged_by']).include? @initials}
+flagged.delete attach
+unflagged << attach unless unflagged.include? attach or
+  not agenda.find {|item| item[:attach] == attach and
+Array(item['flagged_by']).include? @initials}
   end
 end
   end
diff --git a/www/board/agenda/views/actions/commit.json.rb 
b/www/board/agenda/views/actions/commit.json.rb
index 58355b1..c82431e 100644
--- a/www/board/agenda/views/actions/commit.json.rb
+++ b/www/board/agenda/views/actions/commit.json.rb
@@ -164,7 +164,7 @@ Agenda.update(agenda_file, @message) do |agenda|
   operations.each do |attachment|
 if comments.include? attachment
   office = agenda[
-   /^Attachment #{attachment}: Report from the (.*?)  \[/, 1]
+/^Attachment #{attachment}: Report from the (.*?)  \[/, 1]
   office.sub! /^VP of /, ''
   office.sub! /^Apache /, ''
 
@@ -174,8 +174,8 @@ Agenda.update(agenda_file, @message) do |agenda|
   text[/ *(#{' '*(initials.length+2)})/,1] = "#{initials}: "
 
   agenda.sub!(patterns['4']) do |match|
-   match[/\n()\s{9}\]/,1] = "#{text}\n"
-   match
+match[/\n()\s{9}\]/,1] = "#{text}\n"
+match
   end
 end
   end
diff --git a/www/board/agenda/views/buttons/offline.js.rb 
b/www/board/agenda/views/buttons/offline.js.rb
index e6415ca..1bdc097 100644
--- a/www/board/agenda/views/buttons/offline.js.rb
+++ b/www/board/agenda/views/buttons/offline.js.rb
@@ -19,13 +19,13 @@ class Offline < Vue
   @disabled = true
 
   Pending.dbget do |pending|
-   # construct arguments to fetch
-   args = {
- method: 'post',
- credentials: 'include',
- headers: {'Content-Type' => 'application/json'},
- body: {agenda: Agenda.file, pending: pending}.inspect
-   }
+# construct arguments to fetch
+args = {
+  method: 'post',
+  credentials: 'include',
+  headers: {'Content-Type' => 'application/json'},
+  body: {agenda: Agenda.file, pending: pending}.inspect
+}
 
 fetch('../json/batch', args).then {|response|
   if response.ok
diff --git a/www/board/agenda/views/buttons/post.js.rb 
b/www/board/agenda/views/buttons/post.js.rb
index 6c83403..33f467a 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -472,15 +472,15 @@ class Post < Vue
 else
   # remove indentation
   unless report =~ /^\S/
-   regex = RegExp.new('^( +)', 'gm')
-   indents = []
-   while (result = regex.exec(report))
- indents.push result[1].length
-   end
-   unless indents.empty?
- indent = Math.min(*indents)
- report.gsub!(RegExp.new('^' + ' ' * indent, 'gm'), '')
-   end
+regex = RegExp.new('^( +)', 'gm')
+indents = []
+while (result = regex.exec(report))
+  indents.push 

[whimsy] branch master updated: tabs => spaces

2018-05-17 Thread rubys
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 e3c30f0  tabs => spaces
e3c30f0 is described below

commit e3c30f048f501c51925e2ac640493773e78a3934
Author: Sam Ruby 
AuthorDate: Thu May 17 22:31:48 2018 -0400

tabs => spaces
---
 www/board/agenda/views/models/agenda.js.rb | 38 +++---
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/www/board/agenda/views/models/agenda.js.rb 
b/www/board/agenda/views/models/agenda.js.rb
index 9b9a1f4..9c1155f 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -30,25 +30,25 @@ class Agenda
 # remove president attachments from the normal flow
 unless Minutes.started
   @@index.each do |pres|
-   match = (pres.title == 'President' and pres.text and pres.text.
- match(/Additionally, please see Attachments (\d) through (\d)/))
-   next unless match
-
-   first = last = nil
-   @@index.each do |item|
- first = item if item.attach == match[1]
- item._shepherd ||= pres.shepherd if first and !last
- last  = item if item.attach == match[2]
-   end
-
-   if first and last
- first.prev.next = last.next
- last.next.prev = first.prev
- last.next.index = first.index
- first.index = nil
- last.next = pres
- first.prev = pres
-   end
+match = (pres.title == 'President' and pres.text and pres.text.
+  match(/Additionally, please see Attachments (\d) through (\d)/))
+next unless match
+
+first = last = nil
+@@index.each do |item|
+  first = item if item.attach == match[1]
+  item._shepherd ||= pres.shepherd if first and !last
+  last  = item if item.attach == match[2]
+end
+
+if first and last
+  first.prev.next = last.next
+  last.next.prev = first.prev
+  last.next.index = first.index
+  first.index = nil
+  last.next = pres
+  first.prev = pres
+end
   end
 end
 

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