Skip to content

Commit

Permalink
#234: Emails are verbose and have incorrect indents in svn_log.erb
Browse files Browse the repository at this point in the history
Fixed #234
  • Loading branch information
dgroup committed Oct 8, 2020
1 parent 0272f81 commit b51d2f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/lazylead/exchange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def send(opts)
add_attachments(msg, opts)
cli.send_message msg
close_attachments msg
@log.debug "Email was generated from #{opts} and send by #{__FILE__}. " \
"Here is the body: '#{msg[:body]}'"
@log.debug "#{__FILE__} sent email based on #{opts}."
end

def make_msg(to, opts)
Expand Down
3 changes: 1 addition & 2 deletions lib/lazylead/postman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def send(opts)
end
add_attachments mail, opts
mail.deliver
@log.debug "Email was generated from #{opts} and send by #{__FILE__}. " \
"Here is the body: #{html}"
@log.debug "#{__FILE__} sent email based on #{opts}."
end

def add_attachments(mail, opts)
Expand Down
4 changes: 2 additions & 2 deletions lib/messages/svn_log.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
<% details = line.split("|").map(&:strip).reject(&:blank?) %>
<p style="background: gainsboro;">
<a href="<%= commit_url %><%= details[0][1 .. -1] %>"><%= details[0] %></a>
by<a href="<%= user %><%= details[1] %>"><%= details[1] %></a>
at<span style="color: #275a90;"><%= details[2] %></span>
by <a href="<%= user %><%= details[1] %>"><%= details[1] %></a>
at <span style="color: #275a90;"><%= details[2] %></span>
</p>
<% else %>
<% if line.start_with?("+++") || line.start_with?("---") %>
Expand Down

0 comments on commit b51d2f8

Please sign in to comment.