padrino-mailer 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/padrino-mailer/helpers.rb +6 -0
- data/lib/padrino-mailer/mime.rb +4 -0
- metadata +4 -29
data/README.rdoc
CHANGED
@@ -25,7 +25,7 @@ command on the server. However, smtp is also supported using the following confi
|
|
25
25
|
Once the delivery settings have been defined, the default will become smtp delivery but can be overwritten in each message.
|
26
26
|
|
27
27
|
Padrino supports sending quick emails (using either sendmail or smtp) right from your controllers.
|
28
|
-
This is ideal for
|
28
|
+
This is ideal for one-off emails where the full mailer declaration is simply unnecessary.
|
29
29
|
|
30
30
|
Delivering an email from within your controller is simple:
|
31
31
|
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module Padrino
|
2
2
|
module Mailer
|
3
|
+
##
|
4
|
+
# Helpers for defining and delivering email messages.
|
5
|
+
#
|
3
6
|
module Helpers
|
4
7
|
def self.included(base) # @private
|
5
8
|
base.extend(ClassMethods)
|
@@ -48,6 +51,9 @@ module Padrino
|
|
48
51
|
settings.deliver(mailer_name, message_name, *attributes)
|
49
52
|
end
|
50
53
|
|
54
|
+
##
|
55
|
+
# Class methods responsible for registering mailers, configuring settings and delivering messages.
|
56
|
+
#
|
51
57
|
module ClassMethods
|
52
58
|
def inherited(subclass) # @private
|
53
59
|
@_registered_mailers ||= {}
|
data/lib/padrino-mailer/mime.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 49
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 10
|
9
|
-
- 3
|
10
|
-
version: 0.10.3
|
5
|
+
version: 0.10.4
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Padrino Team
|
@@ -18,8 +13,7 @@ autorequire:
|
|
18
13
|
bindir: bin
|
19
14
|
cert_chain: []
|
20
15
|
|
21
|
-
date: 2011-10-
|
22
|
-
default_executable:
|
16
|
+
date: 2011-10-12 00:00:00 Z
|
23
17
|
dependencies:
|
24
18
|
- !ruby/object:Gem::Dependency
|
25
19
|
name: padrino-core
|
@@ -29,12 +23,7 @@ dependencies:
|
|
29
23
|
requirements:
|
30
24
|
- - "="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
segments:
|
34
|
-
- 0
|
35
|
-
- 10
|
36
|
-
- 3
|
37
|
-
version: 0.10.3
|
26
|
+
version: 0.10.4
|
38
27
|
type: :runtime
|
39
28
|
version_requirements: *id001
|
40
29
|
- !ruby/object:Gem::Dependency
|
@@ -45,11 +34,6 @@ dependencies:
|
|
45
34
|
requirements:
|
46
35
|
- - ~>
|
47
36
|
- !ruby/object:Gem::Version
|
48
|
-
hash: 3
|
49
|
-
segments:
|
50
|
-
- 2
|
51
|
-
- 3
|
52
|
-
- 0
|
53
37
|
version: 2.3.0
|
54
38
|
type: :runtime
|
55
39
|
version_requirements: *id002
|
@@ -100,7 +84,6 @@ files:
|
|
100
84
|
- test/test_message.rb
|
101
85
|
- test/test_padrino_mailer.rb
|
102
86
|
- test/test_part.rb
|
103
|
-
has_rdoc: true
|
104
87
|
homepage: http://www.padrinorb.com
|
105
88
|
licenses: []
|
106
89
|
|
@@ -114,25 +97,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
97
|
requirements:
|
115
98
|
- - ">="
|
116
99
|
- !ruby/object:Gem::Version
|
117
|
-
hash: 3
|
118
|
-
segments:
|
119
|
-
- 0
|
120
100
|
version: "0"
|
121
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
102
|
none: false
|
123
103
|
requirements:
|
124
104
|
- - ">="
|
125
105
|
- !ruby/object:Gem::Version
|
126
|
-
hash: 23
|
127
|
-
segments:
|
128
|
-
- 1
|
129
|
-
- 3
|
130
|
-
- 6
|
131
106
|
version: 1.3.6
|
132
107
|
requirements: []
|
133
108
|
|
134
109
|
rubyforge_project: padrino-mailer
|
135
|
-
rubygems_version: 1.
|
110
|
+
rubygems_version: 1.8.10
|
136
111
|
signing_key:
|
137
112
|
specification_version: 3
|
138
113
|
summary: Mailer system for padrino
|