capistrano_mailer 3.2.7 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +116 -0
- data/LICENSE.txt +23 -0
- data/README.md +268 -0
- data/Rakefile +24 -52
- data/lib/cap_mailer.rb +226 -180
- data/lib/capistrano/mailer.rb +45 -25
- data/lib/capistrano/mailer_recipes.rb +43 -0
- data/lib/capistrano_mailer.rb +2 -0
- data/lib/capistrano_mailer/version.rb +3 -0
- data/spec/create_gemset_spec.rb +44 -0
- data/spec/empty_gemset_spec.rb +32 -0
- data/spec/install_ruby_spec.rb +120 -0
- data/spec/rvm_paths_spec.rb +93 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/support/abort_matcher.rb +42 -0
- data/spec/support/capistrano.rb +24 -0
- data/test/build_gem_test.rb +18 -0
- data/views/cap_mailer/_message_body.html.erb +39 -0
- data/views/cap_mailer/_message_body.text.erb +22 -0
- data/views/cap_mailer/_section.html.erb +31 -31
- data/views/cap_mailer/_section.text.erb +23 -23
- data/views/cap_mailer/_section_custom.html.erb +2 -1
- data/views/cap_mailer/failed.notification_email.html.erb +1 -0
- data/views/cap_mailer/failed.notification_email.plain.erb +1 -0
- data/views/cap_mailer/notification_email.html.erb +1 -0
- data/views/cap_mailer/notification_email.plain.erb +1 -0
- metadata +103 -40
- data/MIT-LICENSE +0 -21
- data/README.rdoc +0 -198
- data/VERSION.yml +0 -5
- data/capistrano_mailer.gemspec +0 -55
- data/views/cap_mailer/notification_email.text.html.erb +0 -39
- data/views/cap_mailer/notification_email.text.plain.erb +0 -22
data/VERSION.yml
DELETED
data/capistrano_mailer.gemspec
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{capistrano_mailer}
|
8
|
-
s.version = "3.2.5"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Peter Boling", "Dave Nolan"]
|
12
|
-
s.date = %q{2010-04-29}
|
13
|
-
s.description = %q{Capistrano Deployment Email Notification. Keep the whole team informed of each release!}
|
14
|
-
s.email = ["peter.boling@gmail.com", "dave@textgoeshere.org.uk"]
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
"README.rdoc",
|
20
|
-
"Rakefile",
|
21
|
-
"VERSION.yml",
|
22
|
-
"about.yml",
|
23
|
-
"capistrano_mailer.gemspec",
|
24
|
-
"init.rb",
|
25
|
-
"lib/cap_mailer.rb",
|
26
|
-
"lib/capistrano/mailer.rb",
|
27
|
-
"views/cap_mailer/_section.html.erb",
|
28
|
-
"views/cap_mailer/_section.text.erb",
|
29
|
-
"views/cap_mailer/_section_custom.html.erb",
|
30
|
-
"views/cap_mailer/notification_email.text.html.erb",
|
31
|
-
"views/cap_mailer/notification_email.text.plain.erb"
|
32
|
-
]
|
33
|
-
s.homepage = %q{http://github.com/pboling/capistrano_mailer}
|
34
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
35
|
-
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.3.6}
|
37
|
-
s.summary = %q{Capistrano Deployment Email Notification}
|
38
|
-
s.test_files = [
|
39
|
-
"test/build_gem_test.rb"
|
40
|
-
]
|
41
|
-
|
42
|
-
if s.respond_to? :specification_version then
|
43
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
|
-
s.specification_version = 3
|
45
|
-
|
46
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
47
|
-
s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
|
48
|
-
else
|
49
|
-
s.add_dependency(%q<actionmailer>, [">= 0"])
|
50
|
-
end
|
51
|
-
else
|
52
|
-
s.add_dependency(%q<actionmailer>, [">= 0"])
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
@@ -1,39 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
5
|
-
<title><%= @site_name %> Notification </title>
|
6
|
-
</head>
|
7
|
-
<body style="font: 14px normal Helvetica, Arial, Sans; background: #999;">
|
8
|
-
|
9
|
-
<div style="width:800px; margin: 10px auto; background: #fff; border: 10px solid #aaa;">
|
10
|
-
|
11
|
-
<h1 style="clear: both; margin: 0; padding: 40px 20px 5px 20px; border-bottom: 1px dotted; background: #ccc;">
|
12
|
-
<%= @site_name %> <%=@task_name.titleize unless @task_name.nil? %>
|
13
|
-
</h1>
|
14
|
-
|
15
|
-
<% unless @site_url.nil? %>
|
16
|
-
<p style="margin: 8px 0 20px 20px; padding: 0px; font-style: italic;" >
|
17
|
-
View site: <a href="<%= @site_url -%>"><%= @site_url -%></a>
|
18
|
-
</p>
|
19
|
-
<% end %>
|
20
|
-
|
21
|
-
<p style="margin: 10px 20px; font-weight: bold;">Released: <%= @date %> at <%= @time %></p>
|
22
|
-
|
23
|
-
<%= @sections.map { |section|
|
24
|
-
data = @section_data[section.to_sym]
|
25
|
-
if !data.empty?
|
26
|
-
if %w(extra_information release_data).include?(section)
|
27
|
-
render :partial => 'section_custom.html.erb', :locals => {:section_title => section, :data => data}
|
28
|
-
else
|
29
|
-
render :partial => 'section.html.erb', :locals => {:section_title => section, :data => data}
|
30
|
-
end
|
31
|
-
end
|
32
|
-
}.join unless @sections.nil? %>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<p style="margin: 8px 0 20px 20px; padding: 0px; font-style: italic;" >
|
36
|
-
Brought to you by: <a href="http://github.com/textgoeshere/capistrano_mailer">Capistrano Mailer</a>
|
37
|
-
</p>
|
38
|
-
</body>
|
39
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<%= @site_name %> Notification
|
2
|
-
===========================================================
|
3
|
-
|
4
|
-
<%= @site_name %> <%=@task_name.titleize unless @task_name.nil? %>
|
5
|
-
===========================================================
|
6
|
-
Brought to you by: Capistrano Mailer - http://github.com/pboling/capistrano_mailer
|
7
|
-
Released: <%= @date %> at <%= @time %>
|
8
|
-
|
9
|
-
<%= @sections.map { |section|
|
10
|
-
data = @section_data[section.to_sym]
|
11
|
-
if !data.empty?
|
12
|
-
if %w(extra_information release_data).include?(section)
|
13
|
-
render :partial => 'section_custom.text.erb', :locals => {:section_title => section, :data => data}
|
14
|
-
else
|
15
|
-
render :partial => 'section.text.erb', :locals => {:section_title => section, :data => data}
|
16
|
-
end
|
17
|
-
end
|
18
|
-
}.join unless @sections.nil? %>
|
19
|
-
|
20
|
-
===========================================================
|
21
|
-
Copyright 2009 9thBit LLC under MIT License
|
22
|
-
Copyright 2007-8 Sagebit LLC under MIT License
|