capistrano_mailer 3.2.5 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +21 -0
- data/README.rdoc +198 -218
- data/Rakefile +52 -53
- data/VERSION.yml +3 -3
- data/capistrano_mailer.gemspec +55 -55
- data/lib/cap_mailer.rb +180 -180
- data/lib/capistrano/mailer.rb +25 -25
- data/views/cap_mailer/_section.html.erb +31 -31
- data/views/cap_mailer/_section.text.erb +23 -23
- data/views/cap_mailer/_section_custom.text.erb +9 -0
- data/views/cap_mailer/notification_email.text.html.erb +39 -39
- data/views/cap_mailer/notification_email.text.plain.erb +22 -22
- metadata +39 -54
- data/about.yml +0 -9
- data/init.rb +0 -3
- data/test/build_gem_test.rb +0 -18
@@ -1,39 +1,39 @@
|
|
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
|
+
<!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 +1,22 @@
|
|
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
|
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
|
metadata
CHANGED
@@ -1,88 +1,73 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_mailer
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 3
|
7
|
-
- 2
|
8
|
-
- 5
|
9
|
-
version: 3.2.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.2.7
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Peter Boling
|
13
9
|
- Dave Nolan
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2011-12-12 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: actionmailer
|
23
|
-
|
24
|
-
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
version: "0"
|
17
|
+
requirement: &70359182869000 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
31
23
|
type: :runtime
|
32
|
-
|
33
|
-
|
34
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70359182869000
|
26
|
+
description: Capistrano Deployment Email Notification. Keep the whole team informed
|
27
|
+
of each release!
|
28
|
+
email:
|
35
29
|
- peter.boling@gmail.com
|
36
30
|
- dave@textgoeshere.org.uk
|
37
31
|
executables: []
|
38
|
-
|
39
32
|
extensions: []
|
40
|
-
|
41
|
-
extra_rdoc_files:
|
33
|
+
extra_rdoc_files:
|
42
34
|
- README.rdoc
|
43
|
-
files:
|
35
|
+
files:
|
36
|
+
- MIT-LICENSE
|
44
37
|
- README.rdoc
|
45
38
|
- Rakefile
|
46
39
|
- VERSION.yml
|
47
|
-
- about.yml
|
48
40
|
- capistrano_mailer.gemspec
|
49
|
-
- init.rb
|
50
41
|
- lib/cap_mailer.rb
|
51
42
|
- lib/capistrano/mailer.rb
|
52
43
|
- views/cap_mailer/_section.html.erb
|
53
44
|
- views/cap_mailer/_section.text.erb
|
54
45
|
- views/cap_mailer/_section_custom.html.erb
|
46
|
+
- views/cap_mailer/_section_custom.text.erb
|
55
47
|
- views/cap_mailer/notification_email.text.html.erb
|
56
48
|
- views/cap_mailer/notification_email.text.plain.erb
|
57
|
-
has_rdoc: true
|
58
49
|
homepage: http://github.com/pboling/capistrano_mailer
|
59
50
|
licenses: []
|
60
|
-
|
61
51
|
post_install_message:
|
62
|
-
rdoc_options:
|
63
|
-
|
64
|
-
require_paths:
|
52
|
+
rdoc_options: []
|
53
|
+
require_paths:
|
65
54
|
- lib
|
66
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
- 0
|
79
|
-
version: "0"
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
80
67
|
requirements: []
|
81
|
-
|
82
68
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.8.10
|
84
70
|
signing_key:
|
85
71
|
specification_version: 3
|
86
72
|
summary: Capistrano Deployment Email Notification
|
87
|
-
test_files:
|
88
|
-
- test/build_gem_test.rb
|
73
|
+
test_files: []
|
data/about.yml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
author:
|
2
|
-
name: Peter Boling
|
3
|
-
homepage: http://www.peterboling.com
|
4
|
-
summary: Sends rails deployment notification emails from Capistrano
|
5
|
-
homepage: http://github.com/pboling/capistrano_mailer/tree/master
|
6
|
-
plugin: http://github.com/pboling/capistrano_mailer.git
|
7
|
-
license: MIT
|
8
|
-
version: 3.2.1
|
9
|
-
rails_version: 1.2.6+
|
data/init.rb
DELETED
data/test/build_gem_test.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'yaml'
|
3
|
-
require 'rubygems/specification'
|
4
|
-
|
5
|
-
class BuildGemTest < Test::Unit::TestCase
|
6
|
-
def test_build_gem
|
7
|
-
data = File.read(File.join(File.dirname(__FILE__), '..', 'capistrano_mailer.gemspec'))
|
8
|
-
spec = nil
|
9
|
-
|
10
|
-
if data !~ %r{!ruby/object:Gem::Specification}
|
11
|
-
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
|
12
|
-
else
|
13
|
-
spec = YAML.load(data)
|
14
|
-
end
|
15
|
-
|
16
|
-
assert spec.validate
|
17
|
-
end
|
18
|
-
end
|