capistrano_mailer_railsless 3.2.7 → 3.2.8

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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "capistrano_mailer_railsless"
3
- s.version = "3.2.7"
3
+ s.version = "3.2.8"
4
4
 
5
5
  s.authors = ["3Crowd Technologies, Inc.", "Justin Lynn", "Peter Boling", "Dave Nolan"]
6
6
 
@@ -55,7 +55,8 @@ class CapRailslessMailer < ActionMailer::Base
55
55
  :previous_revision => cap.previous_revision,
56
56
  :run_method => cap.run_method,
57
57
  :latest_release => cap.latest_release,
58
- :user => cap.user
58
+ :user => cap.user,
59
+ :stage => (cap.respond_to?(:stage) ? cap.stage : "" )
59
60
  }))
60
61
 
61
62
  @date = Date.today.to_s
@@ -90,7 +91,7 @@ class CapRailslessMailer < ActionMailer::Base
90
91
  def subject_line
91
92
  #The subject prepend and append are useful for people to setup filters in mail clients.
92
93
  user = config[:user] ? " by #{config[:user]}" : ""
93
- middle = config[:subject] ? config[:subject] : "[#{repo_end}] #{inferred_command}#{user}"
94
+ middle = config[:subject] ? config[:subject] : "[#{repo_end}]#{!config[:stage].nil? ? '[' + config[:stage].to_s.upcase + ']' : ''} #{inferred_command}#{user}"
94
95
  "#{config[:subject_prepend]}#{middle}#{config[:subject_append]}"
95
96
  end
96
97
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_mailer_railsless
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 7
10
- version: 3.2.7
9
+ - 8
10
+ version: 3.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - 3Crowd Technologies, Inc.