capistrano_mailer 3.2.2 → 3.2.3

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/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-3.2.1/lib'
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
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 2
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano_mailer}
8
- s.version = "3.2.2"
8
+ s.version = "3.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Boling", "Dave Nolan"]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling