padrino-mailer 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -53,33 +53,9 @@ or if you like the method_missing approach:
53
53
  SampleMailer.deliver_registration_email "Bob", 'bob@bobby.com'
54
54
 
55
55
  And that will then deliver the email according the the configured options. This is really all you need to send emails.
56
- A few variations are shown below for completeness.
57
56
 
58
- If we want to attach files to our email:
59
-
60
- # app/mailers/sample_mailer.rb
61
- class SampleMailer < Padrino::Mailer::Base
62
- def attachment_email(name, user_email_address)
63
- from 'admin@site.com'
64
- to user_email_address
65
- # ...
66
- attachments { "foo.zip" => File.read("path/to/foo.zip"), "file.txt" => "this is a text file!" }
67
- end
68
- end
69
-
70
- or perhaps we want to have a short body without the need for a template file:
71
-
72
- # app/mailers/sample_mailer.rb
73
- class SampleMailer < Padrino::Mailer::Base
74
- def short_email(name, user_email_address)
75
- from 'admin@site.com'
76
- to user_email_address
77
- subject 'Welcome to the site!'
78
- body "This is a short body defined right in the mailer itself"
79
- end
80
- end
81
-
82
- See the wiki article for additional information: <...WIKI...>
57
+ Be sure to check out the
58
+ {Padrino Mailer}[http://wiki.github.com/padrino/padrino-framework/padrino-mailer] guide for more details on usage.
83
59
 
84
60
  == Copyright
85
61
 
data/Rakefile CHANGED
@@ -15,7 +15,6 @@ begin
15
15
  gem.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
16
16
  gem.rubyforge_project = 'padrino-mailer'
17
17
  gem.add_runtime_dependency "padrino-core", "= #{GEM_VERSION}"
18
- gem.add_runtime_dependency "tilt", ">= 0.2"
19
18
  gem.add_runtime_dependency "tmail", ">= 1.2"
20
19
  gem.add_development_dependency "shoulda", ">= 2.10.3"
21
20
  gem.add_development_dependency "haml", ">= 2.2.1"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
@@ -1,4 +1,9 @@
1
- require 'tilt'
1
+ # require tilt if available; fall back on bundled version.
2
+ begin
3
+ require 'tilt'
4
+ rescue LoadError
5
+ require 'sinatra/tilt'
6
+ end
2
7
  require 'padrino-core/support_lite'
3
8
 
4
9
  Dir[File.dirname(__FILE__) + '/padrino-mailer/**/*.rb'].each { |file| require file }
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-mailer}
8
- s.version = "0.9.1"
8
+ s.version = "0.9.2"
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{2010-02-23}
12
+ s.date = %q{2010-03-01}
13
13
  s.description = %q{Mailer system for padrino allowing easy delivery of application emails}
14
14
  s.email = %q{padrinorb@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.rdoc_options = ["--charset=UTF-8"]
41
41
  s.require_paths = ["lib"]
42
42
  s.rubyforge_project = %q{padrino-mailer}
43
- s.rubygems_version = %q{1.3.6}
43
+ s.rubygems_version = %q{1.3.5}
44
44
  s.summary = %q{Mailer system for padrino}
45
45
 
46
46
  if s.respond_to? :specification_version then
@@ -48,8 +48,7 @@ Gem::Specification.new do |s|
48
48
  s.specification_version = 3
49
49
 
50
50
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<padrino-core>, ["= 0.9.1"])
52
- s.add_runtime_dependency(%q<tilt>, [">= 0.2"])
51
+ s.add_runtime_dependency(%q<padrino-core>, ["= 0.9.2"])
53
52
  s.add_runtime_dependency(%q<tmail>, [">= 1.2"])
54
53
  s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
55
54
  s.add_development_dependency(%q<haml>, [">= 2.2.1"])
@@ -57,8 +56,7 @@ Gem::Specification.new do |s|
57
56
  s.add_development_dependency(%q<rack-test>, [">= 0.5.0"])
58
57
  s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
59
58
  else
60
- s.add_dependency(%q<padrino-core>, ["= 0.9.1"])
61
- s.add_dependency(%q<tilt>, [">= 0.2"])
59
+ s.add_dependency(%q<padrino-core>, ["= 0.9.2"])
62
60
  s.add_dependency(%q<tmail>, [">= 1.2"])
63
61
  s.add_dependency(%q<shoulda>, [">= 2.10.3"])
64
62
  s.add_dependency(%q<haml>, [">= 2.2.1"])
@@ -67,8 +65,7 @@ Gem::Specification.new do |s|
67
65
  s.add_dependency(%q<webrat>, [">= 0.5.1"])
68
66
  end
69
67
  else
70
- s.add_dependency(%q<padrino-core>, ["= 0.9.1"])
71
- s.add_dependency(%q<tilt>, [">= 0.2"])
68
+ s.add_dependency(%q<padrino-core>, ["= 0.9.2"])
72
69
  s.add_dependency(%q<tmail>, [">= 1.2"])
73
70
  s.add_dependency(%q<shoulda>, [">= 2.10.3"])
74
71
  s.add_dependency(%q<haml>, [">= 2.2.1"])
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-mailer
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 9
8
- - 1
9
- version: 0.9.1
4
+ version: 0.9.2
10
5
  platform: ruby
11
6
  authors:
12
7
  - Padrino Team
@@ -17,119 +12,79 @@ autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
14
 
20
- date: 2010-02-23 00:00:00 -08:00
15
+ date: 2010-03-01 00:00:00 +01:00
21
16
  default_executable:
22
17
  dependencies:
23
18
  - !ruby/object:Gem::Dependency
24
19
  name: padrino-core
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
27
- requirements:
28
- - - "="
29
- - !ruby/object:Gem::Version
30
- segments:
31
- - 0
32
- - 9
33
- - 1
34
- version: 0.9.1
35
20
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: tilt
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
21
+ version_requirement:
22
+ version_requirements: !ruby/object:Gem::Requirement
41
23
  requirements:
42
- - - ">="
24
+ - - "="
43
25
  - !ruby/object:Gem::Version
44
- segments:
45
- - 0
46
- - 2
47
- version: "0.2"
48
- type: :runtime
49
- version_requirements: *id002
26
+ version: 0.9.2
27
+ version:
50
28
  - !ruby/object:Gem::Dependency
51
29
  name: tmail
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
30
+ type: :runtime
31
+ version_requirement:
32
+ version_requirements: !ruby/object:Gem::Requirement
54
33
  requirements:
55
34
  - - ">="
56
35
  - !ruby/object:Gem::Version
57
- segments:
58
- - 1
59
- - 2
60
36
  version: "1.2"
61
- type: :runtime
62
- version_requirements: *id003
37
+ version:
63
38
  - !ruby/object:Gem::Dependency
64
39
  name: shoulda
65
- prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
40
+ type: :development
41
+ version_requirement:
42
+ version_requirements: !ruby/object:Gem::Requirement
67
43
  requirements:
68
44
  - - ">="
69
45
  - !ruby/object:Gem::Version
70
- segments:
71
- - 2
72
- - 10
73
- - 3
74
46
  version: 2.10.3
75
- type: :development
76
- version_requirements: *id004
47
+ version:
77
48
  - !ruby/object:Gem::Dependency
78
49
  name: haml
79
- prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
50
+ type: :development
51
+ version_requirement:
52
+ version_requirements: !ruby/object:Gem::Requirement
81
53
  requirements:
82
54
  - - ">="
83
55
  - !ruby/object:Gem::Version
84
- segments:
85
- - 2
86
- - 2
87
- - 1
88
56
  version: 2.2.1
89
- type: :development
90
- version_requirements: *id005
57
+ version:
91
58
  - !ruby/object:Gem::Dependency
92
59
  name: mocha
93
- prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
60
+ type: :development
61
+ version_requirement:
62
+ version_requirements: !ruby/object:Gem::Requirement
95
63
  requirements:
96
64
  - - ">="
97
65
  - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
- - 9
101
- - 7
102
66
  version: 0.9.7
103
- type: :development
104
- version_requirements: *id006
67
+ version:
105
68
  - !ruby/object:Gem::Dependency
106
69
  name: rack-test
107
- prerelease: false
108
- requirement: &id007 !ruby/object:Gem::Requirement
70
+ type: :development
71
+ version_requirement:
72
+ version_requirements: !ruby/object:Gem::Requirement
109
73
  requirements:
110
74
  - - ">="
111
75
  - !ruby/object:Gem::Version
112
- segments:
113
- - 0
114
- - 5
115
- - 0
116
76
  version: 0.5.0
117
- type: :development
118
- version_requirements: *id007
77
+ version:
119
78
  - !ruby/object:Gem::Dependency
120
79
  name: webrat
121
- prerelease: false
122
- requirement: &id008 !ruby/object:Gem::Requirement
80
+ type: :development
81
+ version_requirement:
82
+ version_requirements: !ruby/object:Gem::Requirement
123
83
  requirements:
124
84
  - - ">="
125
85
  - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
- - 5
129
- - 1
130
86
  version: 0.5.1
131
- type: :development
132
- version_requirements: *id008
87
+ version:
133
88
  description: Mailer system for padrino allowing easy delivery of application emails
134
89
  email: padrinorb@gmail.com
135
90
  executables: []
@@ -171,20 +126,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
126
  requirements:
172
127
  - - ">="
173
128
  - !ruby/object:Gem::Version
174
- segments:
175
- - 0
176
129
  version: "0"
130
+ version:
177
131
  required_rubygems_version: !ruby/object:Gem::Requirement
178
132
  requirements:
179
133
  - - ">="
180
134
  - !ruby/object:Gem::Version
181
- segments:
182
- - 0
183
135
  version: "0"
136
+ version:
184
137
  requirements: []
185
138
 
186
139
  rubyforge_project: padrino-mailer
187
- rubygems_version: 1.3.6
140
+ rubygems_version: 1.3.5
188
141
  signing_key:
189
142
  specification_version: 3
190
143
  summary: Mailer system for padrino