padrino-mailer 0.12.9 → 0.13.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/padrino-mailer/base.rb +0 -2
- data/lib/padrino-mailer/ext.rb +5 -25
- data/lib/padrino-mailer/helpers.rb +1 -3
- data/lib/padrino-mailer/mime.rb +1 -1
- data/padrino-mailer.gemspec +1 -2
- data/test/fixtures/padrino_app/app.rb +0 -51
- data/test/helper.rb +5 -8
- data/test/test_message.rb +0 -13
- data/test/test_padrino_mailer.rb +16 -43
- data/test/test_part.rb +1 -0
- metadata +38 -32
- data/test/fixtures/padrino_app/views/mailers/sample/default_mailer_email_name.erb +0 -1
- data/test/fixtures/padrino_app/views/mailers/sample/default_mailer_name.erb +0 -1
- data/test/fixtures/views/mailers/partial/_object.erb +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzJjZDhiYzFlN2U5ZTI0NjFmMzJlMzQzZjk2ZjMzYWNiNjc1NmZkZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: af5f2d74cdb46f32376af2fae9d94744e70ce4aa
|
4
|
+
data.tar.gz: b2e49669898f683ed4b88d206f4df95d5a451825
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZmVkNDc2NGEzYWJmYTU4YWVlMjAwZGEzNTAxOGZiOWQ5ZjkyM2I4YzA2ZmY5
|
11
|
-
YjVhOTE5MzgyMTljMDU3OTZiMTBkNDVkNzk3ODBjMGY3NWE5ODA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTVhMTViOGZjNmM0YTc3MjM4MGM0Mzc0NjMwY2VlNDZiZTJiYzhjNTNiNTJi
|
14
|
-
MTEzODQxNDBhZDEzMGNhNjBmMmU1OThjOTY5YmNlZmE3YjE4ODVjYTUxYTNm
|
15
|
-
MThhYmIyOTgxNzgxNjc2NmIwM2RjN2E4OTk5Yjk2YjYzOGJkMzI=
|
6
|
+
metadata.gz: 16624593c1523f840dae30913cf58111bfe65f958bcbe323b13d8a5d07eb87ac833cfc5df463d8cd732e7f0eff5928ebbc682551f98af4bf67ece5a5d82f8be9
|
7
|
+
data.tar.gz: 7bca86c488e848c681807a7b0bcbff4dc1c4419779220099a43ee649e9228ccde63d6b87e41d085ec4e6522cc4e44d2bbbd25fb19dfd2d20312b766491927360
|
data/lib/padrino-mailer/base.rb
CHANGED
@@ -84,8 +84,6 @@ module Padrino
|
|
84
84
|
raise "The email '#{name}' is already defined" if self.messages[name].present?
|
85
85
|
self.messages[name] = Proc.new { |*attrs|
|
86
86
|
message = app.settings._padrino_mailer::Message.new(self.app)
|
87
|
-
message.mailer_name = mailer_name
|
88
|
-
message.message_name = name
|
89
87
|
message.defaults = self.defaults if self.defaults.any?
|
90
88
|
message.delivery_method(*delivery_settings)
|
91
89
|
message.instance_exec(*attrs, &block)
|
data/lib/padrino-mailer/ext.rb
CHANGED
@@ -4,9 +4,7 @@ module Mail # @private
|
|
4
4
|
class Message # @private
|
5
5
|
include Sinatra::Templates
|
6
6
|
include Padrino::Rendering if defined?(Padrino::Rendering)
|
7
|
-
include Padrino::Helpers::RenderHelpers if defined? Padrino::Helpers::RenderHelpers
|
8
7
|
attr_reader :template_cache
|
9
|
-
attr_accessor :mailer_name, :message_name
|
10
8
|
|
11
9
|
def initialize_with_app(*args, &block)
|
12
10
|
@template_cache = Tilt::Cache.new
|
@@ -24,8 +22,7 @@ module Mail # @private
|
|
24
22
|
|
25
23
|
initialize_without_app(*args, &block)
|
26
24
|
end
|
27
|
-
|
28
|
-
alias_method :initialize, :initialize_with_app
|
25
|
+
alias_method_chain :initialize, :app
|
29
26
|
|
30
27
|
##
|
31
28
|
# Setup like in Sinatra/Padrino apps content_type and template lookup.
|
@@ -117,13 +114,10 @@ module Mail # @private
|
|
117
114
|
|
118
115
|
def do_delivery_with_logging
|
119
116
|
logger.debug "Sending email to: #{destinations.join(" ")}"
|
120
|
-
encoded.
|
117
|
+
encoded.to_lf.split("\n").each { |line| logger << (" " + line) } if logger.debug?
|
121
118
|
do_delivery_without_logging
|
122
119
|
end
|
123
|
-
if Padrino.respond_to?(:logger)
|
124
|
-
alias_method :do_delivery_without_logging, :do_delivery
|
125
|
-
alias_method :do_delivery, :do_delivery_with_logging
|
126
|
-
end
|
120
|
+
alias_method_chain :do_delivery, :logging if Padrino.respond_to?(:logger)
|
127
121
|
|
128
122
|
##
|
129
123
|
# Sinatra and Padrino compatibility.
|
@@ -246,25 +240,17 @@ module Mail # @private
|
|
246
240
|
mime = content_type_without_symbol(value)
|
247
241
|
Padrino::Mailer::Mime.mime_type(mime)
|
248
242
|
end
|
249
|
-
|
250
|
-
alias_method :content_type, :content_type_with_symbol
|
243
|
+
alias_method_chain :content_type, :symbol
|
251
244
|
|
252
245
|
private
|
253
246
|
|
254
247
|
##
|
255
248
|
# Defines the render for the mailer utilizing the padrino 'rendering' module
|
256
249
|
#
|
257
|
-
def render(engine
|
250
|
+
def render(engine, data=nil, options={}, locals={}, &block)
|
258
251
|
locals = @_locals if options[:locals].blank? && locals.blank?
|
259
252
|
@template_cache.clear if settings.reload_templates?
|
260
253
|
|
261
|
-
engine ||= message_name
|
262
|
-
|
263
|
-
if mailer_name && !engine.to_s.index('/')
|
264
|
-
settings.views += "/#{mailer_name}"
|
265
|
-
engine = engine.to_s.sub(%r{^#{mailer_name}/}, '')
|
266
|
-
end
|
267
|
-
|
268
254
|
provides.each do |format|
|
269
255
|
part do |p|
|
270
256
|
p.content_type(format)
|
@@ -276,12 +262,6 @@ module Mail # @private
|
|
276
262
|
self.body = super(engine, data, options, locals, &block) if provides.empty?
|
277
263
|
end
|
278
264
|
|
279
|
-
alias_method :original_partial, :partial if instance_methods.include?(:partial)
|
280
|
-
def partial(template, options={}, &block)
|
281
|
-
raise "gem 'padrino-helpers' is required to render partials" unless respond_to?(:original_partial)
|
282
|
-
self.body = original_partial(template, options, &block)
|
283
|
-
end
|
284
|
-
|
285
265
|
##
|
286
266
|
# Register all special template configurations Padrino has to our fake settings object.
|
287
267
|
#
|
@@ -106,9 +106,7 @@ module Padrino
|
|
106
106
|
# deliver(:example, :message, "John")
|
107
107
|
#
|
108
108
|
def deliver(mailer_name, message_name, *attributes)
|
109
|
-
|
110
|
-
message = mailer.messages[message_name] or fail "mailer '#{mailer_name}' has no message '#{message_name}'"
|
111
|
-
message = message.call(*attributes)
|
109
|
+
message = registered_mailers[mailer_name].messages[message_name].call(*attributes)
|
112
110
|
message.delivery_method(*delivery_settings)
|
113
111
|
message.deliver
|
114
112
|
end
|
data/lib/padrino-mailer/mime.rb
CHANGED
data/padrino-mailer.gemspec
CHANGED
@@ -45,35 +45,6 @@ class PadrinoApp < Padrino::Application
|
|
45
45
|
render 'sample/helper_message'
|
46
46
|
end
|
47
47
|
|
48
|
-
message :default_mailer_name do |name|
|
49
|
-
subject "Welcome Helper!"
|
50
|
-
to 'jim@fake.com'
|
51
|
-
from 'noreply@custom.com'
|
52
|
-
locals :name => name
|
53
|
-
via :test
|
54
|
-
render 'default_mailer_name'
|
55
|
-
end
|
56
|
-
|
57
|
-
message :default_mailer_email_name do |name|
|
58
|
-
subject "Welcome Helper!"
|
59
|
-
to 'jim@fake.com'
|
60
|
-
from 'noreply@custom.com'
|
61
|
-
locals :name => name
|
62
|
-
via :test
|
63
|
-
render
|
64
|
-
end
|
65
|
-
|
66
|
-
message :external do |name|
|
67
|
-
subject "Welcome Message!"
|
68
|
-
to 'john@fake.com'
|
69
|
-
from 'noreply@custom.com'
|
70
|
-
locals :name => name
|
71
|
-
via :test
|
72
|
-
render 'demo/sample_mail'
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
mailer :nonexistant do
|
77
48
|
end
|
78
49
|
|
79
50
|
post "/deliver/inline" do
|
@@ -101,28 +72,6 @@ class PadrinoApp < Padrino::Application
|
|
101
72
|
result ? "mail delivered" : 'mail not delivered'
|
102
73
|
end
|
103
74
|
|
104
|
-
post "/deliver/failing_mailer" do
|
105
|
-
deliver(:nonregistered, :mailer, "hey")
|
106
|
-
end
|
107
|
-
|
108
|
-
post "/deliver/failing_message" do
|
109
|
-
deliver(:nonexistant, :message, "hey")
|
110
|
-
end
|
111
|
-
|
112
|
-
post "/deliver/default_mailer_name" do
|
113
|
-
result = deliver(:sample, :default_mailer_name, "Jim")
|
114
|
-
result ? "mail delivered" : 'mail not delivered'
|
115
|
-
end
|
116
|
-
|
117
|
-
post "/deliver/default_mailer_email_name" do
|
118
|
-
result = deliver(:sample, :default_mailer_email_name, "Jim")
|
119
|
-
result ? "mail delivered" : 'mail not delivered'
|
120
|
-
end
|
121
|
-
|
122
|
-
post "/deliver/external" do
|
123
|
-
result = deliver(:sample, :external, "Joey")
|
124
|
-
result ? "mail delivered" : 'mail not delivered'
|
125
|
-
end
|
126
75
|
end
|
127
76
|
|
128
77
|
Padrino.mount("PadrinoApp").to("/")
|
data/test/helper.rb
CHANGED
@@ -6,7 +6,6 @@ require 'minitest/pride'
|
|
6
6
|
require 'rack/test'
|
7
7
|
require 'padrino-core'
|
8
8
|
require 'padrino-helpers'
|
9
|
-
require 'padrino/rendering'
|
10
9
|
require 'padrino-mailer/ext'
|
11
10
|
require 'padrino-mailer'
|
12
11
|
|
@@ -35,13 +34,11 @@ class MiniTest::Spec
|
|
35
34
|
mail_message = Mail::TestMailer.deliveries.last
|
36
35
|
raise "No mail message has been sent!" unless mail_message.present?
|
37
36
|
delivery_attributes = mail_attributes
|
38
|
-
delivery_attributes
|
39
|
-
delivery_attributes.each_pair do |
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
actual = mail_message.content_type_without_symbol.split(';').first if key == :content_type
|
44
|
-
assert_equal expected, actual, "Mail failure at field '#{key}'"
|
37
|
+
delivery_attributes = { :to => Array(mail_attributes[:to]), :from => Array(mail_attributes[:from]) }
|
38
|
+
delivery_attributes.each_pair do |k, v|
|
39
|
+
unless mail_message.method(k).call == v
|
40
|
+
raise "Mail failure (#{k}): #{mail_message.attributes.inspect} does not match #{delivery_attributes.inspect}"
|
41
|
+
end
|
45
42
|
end
|
46
43
|
Mail::TestMailer.deliveries.clear
|
47
44
|
end
|
data/test/test_message.rb
CHANGED
@@ -152,18 +152,5 @@ describe "Message" do
|
|
152
152
|
message.encoded
|
153
153
|
assert_equal :plain, message.content_type
|
154
154
|
end
|
155
|
-
|
156
|
-
it 'should render partials' do
|
157
|
-
objects = [1,2,'<evil>','<good>'.html_safe]
|
158
|
-
message = Mail::Message.new do
|
159
|
-
from 'padrino@me.com'
|
160
|
-
to 'padrino@you.com'
|
161
|
-
subject 'Hello there Padrino'
|
162
|
-
views File.dirname(__FILE__) + '/fixtures/views/mailers'
|
163
|
-
partial 'partial/object', :collection => objects
|
164
|
-
end
|
165
|
-
|
166
|
-
assert_equal "Object 1<br>\nObject 2<br>\nObject <evil><br>\nObject <good><br>", message.body.to_s.chomp
|
167
|
-
end
|
168
155
|
end
|
169
156
|
end
|
data/test/test_padrino_mailer.rb
CHANGED
@@ -12,7 +12,8 @@ describe "PadrinoMailer" do
|
|
12
12
|
assert_email_sent(:to => 'john@apple.com',
|
13
13
|
:from => 'joe@smith.com',
|
14
14
|
:subject => 'Test Email',
|
15
|
-
:body => 'Test Body'
|
15
|
+
:body => 'Test Body',
|
16
|
+
:delivery_method => @app.delivery_method)
|
16
17
|
end
|
17
18
|
|
18
19
|
it 'should be able to deliver plain text emails' do
|
@@ -20,6 +21,7 @@ describe "PadrinoMailer" do
|
|
20
21
|
assert_equal 'mail delivered', body
|
21
22
|
assert_email_sent(:to => 'john@fake.com',
|
22
23
|
:from => 'noreply@birthday.com',
|
24
|
+
:delivery_method => @app.delivery_method,
|
23
25
|
:subject => "Happy Birthday!",
|
24
26
|
:body => "Happy Birthday Joey!\nYou are turning 21")
|
25
27
|
end
|
@@ -30,6 +32,7 @@ describe "PadrinoMailer" do
|
|
30
32
|
assert_email_sent(:template => 'mailers/sample/foo_message',
|
31
33
|
:to => 'john@fake.com',
|
32
34
|
:from => 'noreply@custom.com',
|
35
|
+
:delivery_method => @app.delivery_method,
|
33
36
|
:subject => 'Welcome Message!',
|
34
37
|
:body => 'Hello to Bobby')
|
35
38
|
end
|
@@ -40,8 +43,9 @@ describe "PadrinoMailer" do
|
|
40
43
|
assert_email_sent(:to => 'julie@fake.com',
|
41
44
|
:from => 'noreply@anniversary.com',
|
42
45
|
:content_type => 'text/html',
|
46
|
+
:delivery_method => @app.delivery_method,
|
43
47
|
:subject => 'Happy anniversary!',
|
44
|
-
:body => "<p>Yay Joey &
|
48
|
+
:body => "<p>Yay Joey & Charlotte!</p>\n<p>You have been married 16 years</p>")
|
45
49
|
end
|
46
50
|
|
47
51
|
it 'should be able to deliver a basic email using app settings' do
|
@@ -49,7 +53,8 @@ describe "PadrinoMailer" do
|
|
49
53
|
:subject => 'Test Email', :body => 'Test Body',
|
50
54
|
:via => :test)
|
51
55
|
assert_email_sent(:to => 'john@apple.com', :from => 'joe@smith.com',
|
52
|
-
:subject => 'Test Email', :body => 'Test Body'
|
56
|
+
:subject => 'Test Email', :body => 'Test Body',
|
57
|
+
:delivery_method => @app.delivery_method)
|
53
58
|
end
|
54
59
|
end
|
55
60
|
|
@@ -60,7 +65,7 @@ describe "PadrinoMailer" do
|
|
60
65
|
post '/deliver/inline'
|
61
66
|
assert_equal 'mail delivered', body
|
62
67
|
assert_email_sent(:to => 'john@apple.com', :from => 'joe@smith.com',
|
63
|
-
:subject => 'Test Email',
|
68
|
+
:delivery_method => @app.delivery_method, :subject => 'Test Email',
|
64
69
|
:body => 'Test Body')
|
65
70
|
end
|
66
71
|
|
@@ -68,7 +73,7 @@ describe "PadrinoMailer" do
|
|
68
73
|
post '/deliver/plain'
|
69
74
|
assert_equal 'mail delivered', body
|
70
75
|
assert_email_sent(:to => 'john@fake.com', :from => 'noreply@birthday.com',
|
71
|
-
:subject => "Happy Birthday!",
|
76
|
+
:delivery_method => @app.delivery_method, :subject => "Happy Birthday!",
|
72
77
|
:body => "Happy Birthday Joey!\nYou are turning 21")
|
73
78
|
end
|
74
79
|
|
@@ -76,7 +81,7 @@ describe "PadrinoMailer" do
|
|
76
81
|
post '/deliver/custom'
|
77
82
|
assert_equal 'mail delivered', body
|
78
83
|
assert_email_sent(:template => 'mailers/sample/foo_message', :to => 'john@fake.com',
|
79
|
-
:from => 'noreply@custom.com',
|
84
|
+
:from => 'noreply@custom.com', :delivery_method => @app.delivery_method,
|
80
85
|
:subject => 'Welcome Message!', :body => 'Hello to Bobby')
|
81
86
|
end
|
82
87
|
|
@@ -84,13 +89,8 @@ describe "PadrinoMailer" do
|
|
84
89
|
post '/deliver/html'
|
85
90
|
assert_equal 'mail delivered', body
|
86
91
|
assert_email_sent(:to => 'julie@fake.com', :from => 'noreply@anniversary.com',
|
87
|
-
:content_type => 'text/html',
|
88
|
-
:subject => 'Happy anniversary!', :body => "<p>Yay Joey &
|
89
|
-
end
|
90
|
-
|
91
|
-
it 'should be able to deliver emails with views in custom-named folders' do
|
92
|
-
post '/deliver/external'
|
93
|
-
assert_equal 'mail delivered', body
|
92
|
+
:content_type => 'text/html', :delivery_method => @app.delivery_method,
|
93
|
+
:subject => 'Happy anniversary!', :body => "<p>Yay Joey & Charlotte!</p>\n<p>You have been married 16 years</p>")
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'should be able to deliver a basic email using app settings' do
|
@@ -98,7 +98,8 @@ describe "PadrinoMailer" do
|
|
98
98
|
:subject => 'Test Email', :body => 'Test Body',
|
99
99
|
:via => :test)
|
100
100
|
assert_email_sent(:to => 'john@apple.com', :from => 'joe@smith.com',
|
101
|
-
:subject => 'Test Email', :body => 'Test Body'
|
101
|
+
:subject => 'Test Email', :body => 'Test Body',
|
102
|
+
:delivery_method => @app.delivery_method)
|
102
103
|
end
|
103
104
|
|
104
105
|
it 'should be able to deliver a basic email using Padrino::Helpers' do
|
@@ -106,36 +107,8 @@ describe "PadrinoMailer" do
|
|
106
107
|
post '/deliver/helper'
|
107
108
|
assert_equal 'mail delivered', body
|
108
109
|
assert_email_sent(:to => 'jim@fake.com', :from => 'noreply@custom.com',
|
109
|
-
:content_type => 'text/html',
|
110
|
+
:content_type => 'text/html', :delivery_method => @app.delivery_method,
|
110
111
|
:subject => 'Welcome Helper!', :body => "<a href=\"#\">jim</a>")
|
111
112
|
end
|
112
|
-
|
113
|
-
it 'should fail with proper message if mailer is not registered' do
|
114
|
-
error = assert_raises RuntimeError do
|
115
|
-
post '/deliver/failing_mailer'
|
116
|
-
end
|
117
|
-
assert_match /is not registered/, error.message
|
118
|
-
end
|
119
|
-
|
120
|
-
it 'should fail with proper message if message does not exist' do
|
121
|
-
error = assert_raises RuntimeError do
|
122
|
-
post '/deliver/failing_message'
|
123
|
-
end
|
124
|
-
assert_match /has no message/, error.message
|
125
|
-
end
|
126
|
-
|
127
|
-
it 'should be able to render default mailer names' do
|
128
|
-
post '/deliver/default_mailer_name'
|
129
|
-
assert_equal 'mail delivered', body
|
130
|
-
assert_email_sent(:to => 'jim@fake.com', :from => 'noreply@custom.com',
|
131
|
-
:content_type => 'text/plain', :body => "dmn")
|
132
|
-
end
|
133
|
-
|
134
|
-
it 'should be able to render default mailer email names' do
|
135
|
-
post '/deliver/default_mailer_email_name'
|
136
|
-
assert_equal 'mail delivered', body
|
137
|
-
assert_email_sent(:to => 'jim@fake.com', :from => 'noreply@custom.com',
|
138
|
-
:content_type => 'text/plain', :body => "dmen")
|
139
|
-
end
|
140
113
|
end
|
141
114
|
end
|
data/test/test_part.rb
CHANGED
@@ -33,6 +33,7 @@ describe "Part" do
|
|
33
33
|
assert_equal 'other', message.parts[2].body.decoded
|
34
34
|
|
35
35
|
assert_equal 'This is a foo message in mailers/sample dir', message.html_part.body.decoded.chomp
|
36
|
+
assert_equal 'plain text', message.text_part.body.decoded
|
36
37
|
end
|
37
38
|
|
38
39
|
it 'should works with multipart templates' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2015-02-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: padrino-core
|
@@ -19,46 +19,28 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.13.0.beta1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: mime-types
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
requirements:
|
34
|
-
- - <
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: !binary |-
|
37
|
-
Mw==
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- - <
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: !binary |-
|
45
|
-
Mw==
|
29
|
+
version: 0.13.0.beta1
|
46
30
|
- !ruby/object:Gem::Dependency
|
47
31
|
name: mail
|
48
32
|
requirement: !ruby/object:Gem::Requirement
|
49
33
|
requirements:
|
50
34
|
- - ~>
|
51
35
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
53
|
-
Mi41
|
36
|
+
version: 2.5.3
|
54
37
|
type: :runtime
|
55
38
|
prerelease: false
|
56
39
|
version_requirements: !ruby/object:Gem::Requirement
|
57
40
|
requirements:
|
58
41
|
- - ~>
|
59
42
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
61
|
-
Mi41
|
43
|
+
version: 2.5.3
|
62
44
|
description: Mailer system for padrino allowing easy delivery of application emails
|
63
45
|
email: padrinorb@gmail.com
|
64
46
|
executables: []
|
@@ -84,8 +66,6 @@ files:
|
|
84
66
|
- test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb
|
85
67
|
- test/fixtures/padrino_app/views/mailers/sample/anniversary.erb
|
86
68
|
- test/fixtures/padrino_app/views/mailers/sample/birthday.erb
|
87
|
-
- test/fixtures/padrino_app/views/mailers/sample/default_mailer_email_name.erb
|
88
|
-
- test/fixtures/padrino_app/views/mailers/sample/default_mailer_name.erb
|
89
69
|
- test/fixtures/padrino_app/views/mailers/sample/foo_message.erb
|
90
70
|
- test/fixtures/padrino_app/views/mailers/sample/helper_message.erb
|
91
71
|
- test/fixtures/sinatra_app/app.rb
|
@@ -100,7 +80,6 @@ files:
|
|
100
80
|
- test/fixtures/views/mailers/layouts/sample.erb
|
101
81
|
- test/fixtures/views/mailers/multipart/basic.html.erb
|
102
82
|
- test/fixtures/views/mailers/multipart/basic.plain.erb
|
103
|
-
- test/fixtures/views/mailers/partial/_object.erb
|
104
83
|
- test/fixtures/views/mailers/sample/foo.erb
|
105
84
|
- test/helper.rb
|
106
85
|
- test/test_email.rb
|
@@ -118,18 +97,45 @@ require_paths:
|
|
118
97
|
- lib
|
119
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
120
99
|
requirements:
|
121
|
-
- -
|
100
|
+
- - '>='
|
122
101
|
- !ruby/object:Gem::Version
|
123
102
|
version: '0'
|
124
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
104
|
requirements:
|
126
|
-
- -
|
105
|
+
- - '>'
|
127
106
|
- !ruby/object:Gem::Version
|
128
|
-
version: 1.3.
|
107
|
+
version: 1.3.1
|
129
108
|
requirements: []
|
130
109
|
rubyforge_project: padrino-mailer
|
131
|
-
rubygems_version: 2.6
|
110
|
+
rubygems_version: 2.0.6
|
132
111
|
signing_key:
|
133
112
|
specification_version: 4
|
134
113
|
summary: Mailer system for padrino
|
135
|
-
test_files:
|
114
|
+
test_files:
|
115
|
+
- test/fixtures/basic.erb
|
116
|
+
- test/fixtures/layout.erb
|
117
|
+
- test/fixtures/padrino_app/app.rb
|
118
|
+
- test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb
|
119
|
+
- test/fixtures/padrino_app/views/mailers/sample/anniversary.erb
|
120
|
+
- test/fixtures/padrino_app/views/mailers/sample/birthday.erb
|
121
|
+
- test/fixtures/padrino_app/views/mailers/sample/foo_message.erb
|
122
|
+
- test/fixtures/padrino_app/views/mailers/sample/helper_message.erb
|
123
|
+
- test/fixtures/sinatra_app/app.rb
|
124
|
+
- test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb
|
125
|
+
- test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb
|
126
|
+
- test/fixtures/sinatra_app/views/mailers/sample/birthday.erb
|
127
|
+
- test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb
|
128
|
+
- test/fixtures/views/mailers/alternate/foo.erb
|
129
|
+
- test/fixtures/views/mailers/bar.erb
|
130
|
+
- test/fixtures/views/mailers/i18n/hello.en.erb
|
131
|
+
- test/fixtures/views/mailers/i18n/hello.it.erb
|
132
|
+
- test/fixtures/views/mailers/layouts/sample.erb
|
133
|
+
- test/fixtures/views/mailers/multipart/basic.html.erb
|
134
|
+
- test/fixtures/views/mailers/multipart/basic.plain.erb
|
135
|
+
- test/fixtures/views/mailers/sample/foo.erb
|
136
|
+
- test/helper.rb
|
137
|
+
- test/test_email.rb
|
138
|
+
- test/test_message.rb
|
139
|
+
- test/test_padrino_mailer.rb
|
140
|
+
- test/test_part.rb
|
141
|
+
has_rdoc:
|
@@ -1 +0,0 @@
|
|
1
|
-
dmen
|
@@ -1 +0,0 @@
|
|
1
|
-
dmn
|
@@ -1 +0,0 @@
|
|
1
|
-
Object <%= object %><br>
|