capistrano_mailer 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION.yml +1 -1
- data/capistrano_mailer.gemspec +1 -1
- data/lib/cap_mailer.rb +2 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -100,7 +100,7 @@ From version 2.1.0 to version 3.1.x:
|
|
100
100
|
# For frozen gem:
|
101
101
|
# You must make capistrano_mailer's libraries available in Ruby's load path. This is one way to do that:
|
102
102
|
# Add to the top of your config/deploy.rb file:
|
103
|
-
$:.unshift 'vendor/gems/capistrano_mailer-
|
103
|
+
$:.unshift 'vendor/gems/capistrano_mailer-x.x.x/lib'
|
104
104
|
|
105
105
|
# then for gem or plugin:
|
106
106
|
####################################
|
data/VERSION.yml
CHANGED
data/capistrano_mailer.gemspec
CHANGED
data/lib/cap_mailer.rb
CHANGED
@@ -58,6 +58,7 @@ class CapMailer < ActionMailer::Base
|
|
58
58
|
:previous_revision => cap.previous_revision,
|
59
59
|
:run_method => cap.run_method,
|
60
60
|
:latest_release => cap.latest_release
|
61
|
+
|
61
62
|
#This does not appear to be a capistrano variable:
|
62
63
|
#:site_url => cap.site_url
|
63
64
|
}))
|
@@ -88,7 +89,7 @@ class CapMailer < ActionMailer::Base
|
|
88
89
|
private
|
89
90
|
|
90
91
|
def subject_line
|
91
|
-
config[:subject] || "[#{config[:application]}] #{inferred_command} by #{config[:user]}"
|
92
|
+
config[:subject] || config[:user] ? "[#{config[:application]}] #{inferred_command} by #{config[:user]}" : "[#{config[:application]}] #{inferred_command}"
|
92
93
|
end
|
93
94
|
|
94
95
|
def body_data_hash
|