pboling-capistrano_mailer 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +13 -11
- data/VERSION.yml +2 -2
- data/about.yml +1 -1
- data/capistrano_mailer.gemspec +2 -2
- data/lib/cap_mailer.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
= Capistrano Mailer v3.0
|
1
|
+
= Capistrano Mailer v3.1.0 (20090917)
|
2
2
|
|
3
3
|
* For Capistrano Deployment Email Notification
|
4
|
-
* It is a Capistrano Plugin /
|
4
|
+
* It is a Capistrano Plugin / Ruby Gem that requires ActionMailer
|
5
5
|
|
6
6
|
Ever wanted to be emailed whenever someone on the team does a cap deploy of trunk or some tag to some server.
|
7
7
|
Wouldn't it be nice to know about it every time a release was deployed? For large rails projects this type of coordination is essential,
|
@@ -11,8 +11,6 @@ This plugin/gem is an extension to Capistrano.
|
|
11
11
|
|
12
12
|
That means it registers itself with Capistrano as a plugin and is therefore available to call in your recipes.
|
13
13
|
|
14
|
-
It is compatible with, but does not require, the deprec gem.
|
15
|
-
|
16
14
|
If you are looking to roll your own email integration into capistrano then try this pastie:
|
17
15
|
http://pastie.org/146264 (thanks to Mislav Marohnić).
|
18
16
|
But if you want to take the easy road to riches then keep reading ;)
|
@@ -32,6 +30,10 @@ http://github.com/pboling/capistrano_mailer/tree/master
|
|
32
30
|
|
33
31
|
* at least Capistrano 2.4.3 (might work with capistrano as old as 2.1.0, but has not been tested)
|
34
32
|
|
33
|
+
* Known to be compatible with SCMs as of version 3.1.0: Perforce, SVN
|
34
|
+
|
35
|
+
* Known to be compatible with, but does not require, the deprec gem.
|
36
|
+
|
35
37
|
|
36
38
|
== Installation
|
37
39
|
|
@@ -42,7 +44,7 @@ Gem Using Git building from source:
|
|
42
44
|
git clone git://github.com/pboling/capistrano_mailer.git
|
43
45
|
cd capistrano_mailer
|
44
46
|
gem build capistrano_mailer.gemspec
|
45
|
-
sudo gem install capistrano_mailer-3.0.
|
47
|
+
sudo gem install capistrano_mailer-3.0.3.gem # (Or whatever version gets built)
|
46
48
|
|
47
49
|
Then cd to your rails app to optionally freeze the gem into your app:
|
48
50
|
|
@@ -64,14 +66,13 @@ Using SVN (deprecated, repository is no longer updated):
|
|
64
66
|
|
65
67
|
./script/plugin install http://capistrano-mailer.googlecode.com/svn/trunk/capistrano_mailer
|
66
68
|
|
67
|
-
|
68
69
|
== Upgrading
|
69
70
|
|
70
|
-
From version 2.1.0 to version 3.
|
71
|
-
|
72
|
-
Update the way CapistranoMailer is configured using the new method: CapMailer.configure_capistrano_mailer, see below.
|
73
|
-
Update the require statement at the top of deploy.rb, see below (note for plugin change from capostrano_mailer to capistrano/mailer).
|
71
|
+
From version 2.1.0 to version 3.x.x:
|
74
72
|
|
73
|
+
1. Update the way CapistranoMailer is configured using the new method: CapMailer.configure_capistrano_mailer, see below.
|
74
|
+
2. Update the require statement at the top of deploy.rb, see below (note for plugin change from capostrano_mailer to capistrano/mailer).
|
75
|
+
3. Change the mailer.send to mailer.send_notification_email in your cap recipe.
|
75
76
|
|
76
77
|
== Usage
|
77
78
|
|
@@ -212,7 +213,8 @@ Update the require statement at the top of deploy.rb, see below (note for plugin
|
|
212
213
|
|
213
214
|
|
214
215
|
----------------------------------------------------------------------------------
|
215
|
-
This plugin is a collaboration between Sagebit, LLC (http://www.sagebit.com) and Peter Boling (http://www.peterboling.com)
|
216
|
+
This plugin is a collaboration between Sagebit, LLC (http://www.sagebit.com) and Peter Boling (http://www.peterboling.com).
|
217
|
+
Written initially while Peter Boling was working at Sagebit for use in various projects.
|
216
218
|
|
217
219
|
Author: Peter Boling, peter.boling at gmail dot com
|
218
220
|
|
data/VERSION.yml
CHANGED
data/about.yml
CHANGED
data/capistrano_mailer.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'capistrano_mailer'
|
3
|
-
s.version = '3.0
|
4
|
-
s.date = '2009-09-
|
3
|
+
s.version = '3.1.0'
|
4
|
+
s.date = '2009-09-17'
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
|
7
7
|
s.summary = %q{Sends emails when Capistrano is used to do things!}
|
data/lib/cap_mailer.rb
CHANGED
@@ -40,7 +40,7 @@ class CapMailer < ActionMailer::Base
|
|
40
40
|
time = Time.now.strftime("%I:%M %p").to_s
|
41
41
|
inferred_command = "cap #{cap_vars.first[:rails_env]} #{cap_vars.first[:task_name]}"
|
42
42
|
repo = cap_vars.first[:repository]
|
43
|
-
x = repo.rindex('/') - 1
|
43
|
+
x = (repo.include?('/')) ? repo.rindex('/') - 1 : repo
|
44
44
|
front = repo.slice(0..x)
|
45
45
|
back = repo.sub(front, '')
|
46
46
|
unless back == 'trunk'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pboling-capistrano_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-17 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|