capistrano_mailer 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 2
4
- :patch: 3
4
+ :patch: 4
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.3"
8
+ s.version = "3.2.4"
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
@@ -89,7 +89,10 @@ class CapMailer < ActionMailer::Base
89
89
  private
90
90
 
91
91
  def subject_line
92
- config[:subject] || config[:user] ? "[#{config[:application]}] #{inferred_command} by #{config[:user]}" : "[#{config[:application]}] #{inferred_command}"
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
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.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling