padrino-mailer 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +5 -5
  2. data/VERSION +1 -1
  3. data/padrino-mailer.gemspec +2 -2
  4. metadata +2 -2
data/README.rdoc CHANGED
@@ -22,7 +22,7 @@ You can also install only the padrino-mailer gem for more fine-grained use:
22
22
  Let's take a look at using the MailerPlugin in an application. By default, MailerPlugin uses the built-in sendmail
23
23
  functionality on the server. However, smtp is also supported using the following configuration:
24
24
 
25
- SinatraMore::MailerBase.smtp_settings = {
25
+ Padrino::Mailer::Base.smtp_settings = {
26
26
  :host => 'smtp.gmail.com',
27
27
  :port => '587',
28
28
  :tls => true,
@@ -32,10 +32,10 @@ functionality on the server. However, smtp is also supported using the following
32
32
  }
33
33
 
34
34
  Once those have been defined, the default will become smtp delivery unless overwritten in an individual mail definition.
35
- Next, we should define a custom mailer extended from <tt>SinatraMore::MailerBase</tt>.
35
+ Next, we should define a custom mailer extended from <tt>Padrino::Mailer::Base</tt>.
36
36
 
37
37
  # app/mailers/sample_mailer.rb
38
- class SampleMailer < SinatraMore::MailerBase
38
+ class SampleMailer < Padrino::Mailer::Base
39
39
  def registration_email(name, user_email_address)
40
40
  from 'admin@site.com'
41
41
  to user_email_address
@@ -69,7 +69,7 @@ A few variations are shown below for completeness.
69
69
  If we want to attach files to our email:
70
70
 
71
71
  # app/mailers/sample_mailer.rb
72
- class SampleMailer < SinatraMore::MailerBase
72
+ class SampleMailer < Padrino::Mailer::Base
73
73
  def attachment_email(name, user_email_address)
74
74
  from 'admin@site.com'
75
75
  to user_email_address
@@ -81,7 +81,7 @@ If we want to attach files to our email:
81
81
  or perhaps we want to have a short body without the need for a template file:
82
82
 
83
83
  # app/mailers/sample_mailer.rb
84
- class SampleMailer < SinatraMore::MailerBase
84
+ class SampleMailer < Padrino::Mailer::Base
85
85
  def short_email(name, user_email_address)
86
86
  from 'admin@site.com'
87
87
  to user_email_address
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-mailer}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
12
- s.date = %q{2009-11-18}
12
+ s.date = %q{2009-11-20}
13
13
  s.description = %q{Mailer system for padrino allowing easy delivery of application emails}
14
14
  s.email = %q{nesquena@gmail.com}
15
15
  s.extra_rdoc_files = [
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-11-18 00:00:00 -08:00
15
+ date: 2009-11-20 00:00:00 -08:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency