capistrano_mailer 3.2.3 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/capistrano_mailer.gemspec +1 -1
- data/lib/cap_mailer.rb +4 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/capistrano_mailer.gemspec
CHANGED
data/lib/cap_mailer.rb
CHANGED
|
@@ -89,7 +89,10 @@ class CapMailer < ActionMailer::Base
|
|
|
89
89
|
private
|
|
90
90
|
|
|
91
91
|
def subject_line
|
|
92
|
-
|
|
92
|
+
#The subject prepend and append are useful for people to setup filters in mail clients.
|
|
93
|
+
user = config[:user] ? " by #{config[:user]}" : ""
|
|
94
|
+
middle = config[:subject] ? config[:subject] : "[#{config[:rails_env].upcase}][#{repo_end}] #{inferred_command}#{user}"
|
|
95
|
+
"#{config[:subject_prepend]}#{middle}#{config[:subject_append]}"
|
|
93
96
|
end
|
|
94
97
|
|
|
95
98
|
def body_data_hash
|