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/06/13 18:30:40 UTC
[whimsy] branch master updated: strip before computing digest
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 4e7e039 strip before computing digest
4e7e039 is described below
commit 4e7e039bfbd767c92fe1a1759ad6b4b2c1e88960
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Jun 13 14:30:20 2018 -0400
strip before computing digest
---
lib/whimsy/asf/agenda/attachments.rb | 2 +-
lib/whimsy/asf/agenda/exec-officer.rb | 2 +-
lib/whimsy/asf/agenda/special.rb | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/whimsy/asf/agenda/attachments.rb b/lib/whimsy/asf/agenda/attachments.rb
index 3424f59..c8fbccd 100644
--- a/lib/whimsy/asf/agenda/attachments.rb
+++ b/lib/whimsy/asf/agenda/attachments.rb
@@ -32,7 +32,7 @@ class ASF::Board::Agenda
attrs['title'].sub! /\sCommittee$/, ''
attrs['title'].sub! /\sProject$/, ''
- attrs['digest'] = Digest::MD5.hexdigest(attrs['report'])
+ attrs['digest'] = Digest::MD5.hexdigest(attrs['report'].strip)
attrs['report'].sub! /\n+\Z/, "\n"
attrs.delete('report') if attrs['report'] == "\n"
diff --git a/lib/whimsy/asf/agenda/exec-officer.rb b/lib/whimsy/asf/agenda/exec-officer.rb
index 1b4ac2a..5e8b2e0 100644
--- a/lib/whimsy/asf/agenda/exec-officer.rb
+++ b/lib/whimsy/asf/agenda/exec-officer.rb
@@ -32,7 +32,7 @@ class ASF::Board::Agenda
attrs['missing'] = true
end
- attrs['digest'] = Digest::MD5.hexdigest(attrs['report'])
+ attrs['digest'] = Digest::MD5.hexdigest(report)
end
end
end
diff --git a/lib/whimsy/asf/agenda/special.rb b/lib/whimsy/asf/agenda/special.rb
index 2cbf7c4..5f67b76 100644
--- a/lib/whimsy/asf/agenda/special.rb
+++ b/lib/whimsy/asf/agenda/special.rb
@@ -36,7 +36,7 @@ class ASF::Board::Agenda
attrs['fulltitle'] = fulltitle if title != fulltitle
text = attrs['text']
- attrs['digest'] = Digest::MD5.hexdigest(attrs['text'])
+ attrs['digest'] = Digest::MD5.hexdigest(text.strip)
attrs['warnings'] = []
if attrs['indent'] != ' '
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.