legacy_mailers 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +29 -0
- data/lib/action_mailer/adv_attr_accessor.rb +28 -0
- data/lib/action_mailer/deprecated_api.rb +152 -0
- data/lib/action_mailer/old_api.rb +258 -0
- data/lib/legacy_mailers.rb +10 -0
- data/lib/legacy_mailers/version.rb +3 -0
- data/test/abstract_unit.rb +70 -0
- data/test/adv_attr_test.rb +36 -0
- data/test/asset_host_test.rb +56 -0
- data/test/fixtures/another.path/base_mailer/welcome.erb +1 -0
- data/test/fixtures/asset_host_mailer/email_with_asset.html.erb +1 -0
- data/test/fixtures/asset_mailer/welcome.html.erb +1 -0
- data/test/fixtures/attachments/foo.jpg +0 -0
- data/test/fixtures/attachments/test.jpg +0 -0
- data/test/fixtures/auto_layout_mailer/hello.html.erb +1 -0
- data/test/fixtures/auto_layout_mailer/multipart.html.erb +1 -0
- data/test/fixtures/auto_layout_mailer/multipart.text.erb +1 -0
- data/test/fixtures/base_mailer/attachment_with_content.erb +1 -0
- data/test/fixtures/base_mailer/different_layout.html.erb +1 -0
- data/test/fixtures/base_mailer/different_layout.text.erb +1 -0
- data/test/fixtures/base_mailer/email_custom_layout.text.html.erb +1 -0
- data/test/fixtures/base_mailer/email_with_translations.html.erb +1 -0
- data/test/fixtures/base_mailer/explicit_multipart_templates.html.erb +1 -0
- data/test/fixtures/base_mailer/explicit_multipart_templates.text.erb +1 -0
- data/test/fixtures/base_mailer/explicit_multipart_with_one_template.erb +1 -0
- data/test/fixtures/base_mailer/html_only.html.erb +1 -0
- data/test/fixtures/base_mailer/implicit_multipart.html.erb +1 -0
- data/test/fixtures/base_mailer/implicit_multipart.text.erb +1 -0
- data/test/fixtures/base_mailer/implicit_with_locale.en.html.erb +1 -0
- data/test/fixtures/base_mailer/implicit_with_locale.html.erb +1 -0
- data/test/fixtures/base_mailer/implicit_with_locale.pl.text.erb +1 -0
- data/test/fixtures/base_mailer/implicit_with_locale.text.erb +1 -0
- data/test/fixtures/base_mailer/inline_attachment.html.erb +5 -0
- data/test/fixtures/base_mailer/inline_attachment.text.erb +4 -0
- data/test/fixtures/base_mailer/plain_text_only.text.erb +1 -0
- data/test/fixtures/base_mailer/welcome.erb +1 -0
- data/test/fixtures/explicit_layout_mailer/logout.html.erb +1 -0
- data/test/fixtures/explicit_layout_mailer/signup.html.erb +1 -0
- data/test/fixtures/first_mailer/share.erb +1 -0
- data/test/fixtures/i18n_test_mailer/mail_with_i18n_subject.erb +4 -0
- data/test/fixtures/layouts/auto_layout_mailer.html.erb +1 -0
- data/test/fixtures/layouts/auto_layout_mailer.text.erb +1 -0
- data/test/fixtures/layouts/different_layout.html.erb +1 -0
- data/test/fixtures/layouts/different_layout.text.erb +1 -0
- data/test/fixtures/layouts/spam.html.erb +1 -0
- data/test/fixtures/nested_layout_mailer/signup.html.erb +1 -0
- data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +1 -0
- data/test/fixtures/raw_email +14 -0
- data/test/fixtures/raw_email10 +20 -0
- data/test/fixtures/raw_email12 +32 -0
- data/test/fixtures/raw_email13 +29 -0
- data/test/fixtures/raw_email2 +114 -0
- data/test/fixtures/raw_email3 +70 -0
- data/test/fixtures/raw_email4 +59 -0
- data/test/fixtures/raw_email5 +19 -0
- data/test/fixtures/raw_email6 +20 -0
- data/test/fixtures/raw_email7 +66 -0
- data/test/fixtures/raw_email8 +47 -0
- data/test/fixtures/raw_email9 +28 -0
- data/test/fixtures/raw_email_quoted_with_0d0a +14 -0
- data/test/fixtures/raw_email_with_invalid_characters_in_content_type +104 -0
- data/test/fixtures/raw_email_with_nested_attachment +100 -0
- data/test/fixtures/raw_email_with_partially_quoted_subject +14 -0
- data/test/fixtures/second_mailer/share.erb +1 -0
- data/test/fixtures/templates/signed_up.erb +3 -0
- data/test/fixtures/test_mailer/_subtemplate.text.erb +1 -0
- data/test/fixtures/test_mailer/custom_templating_extension.html.haml +6 -0
- data/test/fixtures/test_mailer/custom_templating_extension.text.haml +6 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.html.erb +10 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.html.erb~ +10 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +1 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak +1 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.erb +2 -0
- data/test/fixtures/test_mailer/implicitly_multipart_example.yaml.erb +1 -0
- data/test/fixtures/test_mailer/included_subtemplate.text.erb +1 -0
- data/test/fixtures/test_mailer/multipart_alternative.html.erb +1 -0
- data/test/fixtures/test_mailer/multipart_alternative.plain.erb +1 -0
- data/test/fixtures/test_mailer/rxml_template.rxml +2 -0
- data/test/fixtures/test_mailer/signed_up.html.erb +3 -0
- data/test/fixtures/url_test_mailer/signed_up_with_url.erb +5 -0
- data/test/mail_layout_test.rb +126 -0
- data/test/mail_render_test.rb +162 -0
- data/test/mail_service_test.rb +1214 -0
- metadata +308 -0
metadata
ADDED
@@ -0,0 +1,308 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: legacy_mailers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mick Staugaard
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: mocha
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: debugger
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: appraisal
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0.5'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0.5'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: actionmailer
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '3.0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.0'
|
110
|
+
description: Brings back the legacy ActionMailer 2.3 API to ActionMailer 3.x
|
111
|
+
email:
|
112
|
+
- mick@staugaard.com
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files: []
|
116
|
+
files:
|
117
|
+
- lib/action_mailer/adv_attr_accessor.rb
|
118
|
+
- lib/action_mailer/deprecated_api.rb
|
119
|
+
- lib/action_mailer/old_api.rb
|
120
|
+
- lib/legacy_mailers/version.rb
|
121
|
+
- lib/legacy_mailers.rb
|
122
|
+
- README.md
|
123
|
+
- test/abstract_unit.rb
|
124
|
+
- test/adv_attr_test.rb
|
125
|
+
- test/asset_host_test.rb
|
126
|
+
- test/fixtures/another.path/base_mailer/welcome.erb
|
127
|
+
- test/fixtures/asset_host_mailer/email_with_asset.html.erb
|
128
|
+
- test/fixtures/asset_mailer/welcome.html.erb
|
129
|
+
- test/fixtures/attachments/foo.jpg
|
130
|
+
- test/fixtures/attachments/test.jpg
|
131
|
+
- test/fixtures/auto_layout_mailer/hello.html.erb
|
132
|
+
- test/fixtures/auto_layout_mailer/multipart.html.erb
|
133
|
+
- test/fixtures/auto_layout_mailer/multipart.text.erb
|
134
|
+
- test/fixtures/base_mailer/attachment_with_content.erb
|
135
|
+
- test/fixtures/base_mailer/different_layout.html.erb
|
136
|
+
- test/fixtures/base_mailer/different_layout.text.erb
|
137
|
+
- test/fixtures/base_mailer/email_custom_layout.text.html.erb
|
138
|
+
- test/fixtures/base_mailer/email_with_translations.html.erb
|
139
|
+
- test/fixtures/base_mailer/explicit_multipart_templates.html.erb
|
140
|
+
- test/fixtures/base_mailer/explicit_multipart_templates.text.erb
|
141
|
+
- test/fixtures/base_mailer/explicit_multipart_with_one_template.erb
|
142
|
+
- test/fixtures/base_mailer/html_only.html.erb
|
143
|
+
- test/fixtures/base_mailer/implicit_multipart.html.erb
|
144
|
+
- test/fixtures/base_mailer/implicit_multipart.text.erb
|
145
|
+
- test/fixtures/base_mailer/implicit_with_locale.en.html.erb
|
146
|
+
- test/fixtures/base_mailer/implicit_with_locale.html.erb
|
147
|
+
- test/fixtures/base_mailer/implicit_with_locale.pl.text.erb
|
148
|
+
- test/fixtures/base_mailer/implicit_with_locale.text.erb
|
149
|
+
- test/fixtures/base_mailer/inline_attachment.html.erb
|
150
|
+
- test/fixtures/base_mailer/inline_attachment.text.erb
|
151
|
+
- test/fixtures/base_mailer/plain_text_only.text.erb
|
152
|
+
- test/fixtures/base_mailer/welcome.erb
|
153
|
+
- test/fixtures/explicit_layout_mailer/logout.html.erb
|
154
|
+
- test/fixtures/explicit_layout_mailer/signup.html.erb
|
155
|
+
- test/fixtures/first_mailer/share.erb
|
156
|
+
- test/fixtures/i18n_test_mailer/mail_with_i18n_subject.erb
|
157
|
+
- test/fixtures/layouts/auto_layout_mailer.html.erb
|
158
|
+
- test/fixtures/layouts/auto_layout_mailer.text.erb
|
159
|
+
- test/fixtures/layouts/different_layout.html.erb
|
160
|
+
- test/fixtures/layouts/different_layout.text.erb
|
161
|
+
- test/fixtures/layouts/spam.html.erb
|
162
|
+
- test/fixtures/nested_layout_mailer/signup.html.erb
|
163
|
+
- test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb
|
164
|
+
- test/fixtures/raw_email
|
165
|
+
- test/fixtures/raw_email10
|
166
|
+
- test/fixtures/raw_email12
|
167
|
+
- test/fixtures/raw_email13
|
168
|
+
- test/fixtures/raw_email2
|
169
|
+
- test/fixtures/raw_email3
|
170
|
+
- test/fixtures/raw_email4
|
171
|
+
- test/fixtures/raw_email5
|
172
|
+
- test/fixtures/raw_email6
|
173
|
+
- test/fixtures/raw_email7
|
174
|
+
- test/fixtures/raw_email8
|
175
|
+
- test/fixtures/raw_email9
|
176
|
+
- test/fixtures/raw_email_quoted_with_0d0a
|
177
|
+
- test/fixtures/raw_email_with_invalid_characters_in_content_type
|
178
|
+
- test/fixtures/raw_email_with_nested_attachment
|
179
|
+
- test/fixtures/raw_email_with_partially_quoted_subject
|
180
|
+
- test/fixtures/second_mailer/share.erb
|
181
|
+
- test/fixtures/templates/signed_up.erb
|
182
|
+
- test/fixtures/test_mailer/_subtemplate.text.erb
|
183
|
+
- test/fixtures/test_mailer/custom_templating_extension.html.haml
|
184
|
+
- test/fixtures/test_mailer/custom_templating_extension.text.haml
|
185
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.html.erb
|
186
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.html.erb~
|
187
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb
|
188
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak
|
189
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.text.erb
|
190
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.yaml.erb
|
191
|
+
- test/fixtures/test_mailer/included_subtemplate.text.erb
|
192
|
+
- test/fixtures/test_mailer/multipart_alternative.html.erb
|
193
|
+
- test/fixtures/test_mailer/multipart_alternative.plain.erb
|
194
|
+
- test/fixtures/test_mailer/rxml_template.rxml
|
195
|
+
- test/fixtures/test_mailer/signed_up.html.erb
|
196
|
+
- test/fixtures/url_test_mailer/signed_up_with_url.erb
|
197
|
+
- test/mail_layout_test.rb
|
198
|
+
- test/mail_render_test.rb
|
199
|
+
- test/mail_service_test.rb
|
200
|
+
homepage: https://github.com/staugaard/legacy_mailers
|
201
|
+
licenses:
|
202
|
+
- MIT
|
203
|
+
post_install_message:
|
204
|
+
rdoc_options: []
|
205
|
+
require_paths:
|
206
|
+
- lib
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
none: false
|
209
|
+
requirements:
|
210
|
+
- - ! '>='
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
segments:
|
214
|
+
- 0
|
215
|
+
hash: -1752615547400168683
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
segments:
|
223
|
+
- 0
|
224
|
+
hash: -1752615547400168683
|
225
|
+
requirements: []
|
226
|
+
rubyforge_project:
|
227
|
+
rubygems_version: 1.8.25
|
228
|
+
signing_key:
|
229
|
+
specification_version: 3
|
230
|
+
summary: This is only meant to help you when migration to Rails 3.2
|
231
|
+
test_files:
|
232
|
+
- test/abstract_unit.rb
|
233
|
+
- test/adv_attr_test.rb
|
234
|
+
- test/asset_host_test.rb
|
235
|
+
- test/fixtures/another.path/base_mailer/welcome.erb
|
236
|
+
- test/fixtures/asset_host_mailer/email_with_asset.html.erb
|
237
|
+
- test/fixtures/asset_mailer/welcome.html.erb
|
238
|
+
- test/fixtures/attachments/foo.jpg
|
239
|
+
- test/fixtures/attachments/test.jpg
|
240
|
+
- test/fixtures/auto_layout_mailer/hello.html.erb
|
241
|
+
- test/fixtures/auto_layout_mailer/multipart.html.erb
|
242
|
+
- test/fixtures/auto_layout_mailer/multipart.text.erb
|
243
|
+
- test/fixtures/base_mailer/attachment_with_content.erb
|
244
|
+
- test/fixtures/base_mailer/different_layout.html.erb
|
245
|
+
- test/fixtures/base_mailer/different_layout.text.erb
|
246
|
+
- test/fixtures/base_mailer/email_custom_layout.text.html.erb
|
247
|
+
- test/fixtures/base_mailer/email_with_translations.html.erb
|
248
|
+
- test/fixtures/base_mailer/explicit_multipart_templates.html.erb
|
249
|
+
- test/fixtures/base_mailer/explicit_multipart_templates.text.erb
|
250
|
+
- test/fixtures/base_mailer/explicit_multipart_with_one_template.erb
|
251
|
+
- test/fixtures/base_mailer/html_only.html.erb
|
252
|
+
- test/fixtures/base_mailer/implicit_multipart.html.erb
|
253
|
+
- test/fixtures/base_mailer/implicit_multipart.text.erb
|
254
|
+
- test/fixtures/base_mailer/implicit_with_locale.en.html.erb
|
255
|
+
- test/fixtures/base_mailer/implicit_with_locale.html.erb
|
256
|
+
- test/fixtures/base_mailer/implicit_with_locale.pl.text.erb
|
257
|
+
- test/fixtures/base_mailer/implicit_with_locale.text.erb
|
258
|
+
- test/fixtures/base_mailer/inline_attachment.html.erb
|
259
|
+
- test/fixtures/base_mailer/inline_attachment.text.erb
|
260
|
+
- test/fixtures/base_mailer/plain_text_only.text.erb
|
261
|
+
- test/fixtures/base_mailer/welcome.erb
|
262
|
+
- test/fixtures/explicit_layout_mailer/logout.html.erb
|
263
|
+
- test/fixtures/explicit_layout_mailer/signup.html.erb
|
264
|
+
- test/fixtures/first_mailer/share.erb
|
265
|
+
- test/fixtures/i18n_test_mailer/mail_with_i18n_subject.erb
|
266
|
+
- test/fixtures/layouts/auto_layout_mailer.html.erb
|
267
|
+
- test/fixtures/layouts/auto_layout_mailer.text.erb
|
268
|
+
- test/fixtures/layouts/different_layout.html.erb
|
269
|
+
- test/fixtures/layouts/different_layout.text.erb
|
270
|
+
- test/fixtures/layouts/spam.html.erb
|
271
|
+
- test/fixtures/nested_layout_mailer/signup.html.erb
|
272
|
+
- test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb
|
273
|
+
- test/fixtures/raw_email
|
274
|
+
- test/fixtures/raw_email10
|
275
|
+
- test/fixtures/raw_email12
|
276
|
+
- test/fixtures/raw_email13
|
277
|
+
- test/fixtures/raw_email2
|
278
|
+
- test/fixtures/raw_email3
|
279
|
+
- test/fixtures/raw_email4
|
280
|
+
- test/fixtures/raw_email5
|
281
|
+
- test/fixtures/raw_email6
|
282
|
+
- test/fixtures/raw_email7
|
283
|
+
- test/fixtures/raw_email8
|
284
|
+
- test/fixtures/raw_email9
|
285
|
+
- test/fixtures/raw_email_quoted_with_0d0a
|
286
|
+
- test/fixtures/raw_email_with_invalid_characters_in_content_type
|
287
|
+
- test/fixtures/raw_email_with_nested_attachment
|
288
|
+
- test/fixtures/raw_email_with_partially_quoted_subject
|
289
|
+
- test/fixtures/second_mailer/share.erb
|
290
|
+
- test/fixtures/templates/signed_up.erb
|
291
|
+
- test/fixtures/test_mailer/_subtemplate.text.erb
|
292
|
+
- test/fixtures/test_mailer/custom_templating_extension.html.haml
|
293
|
+
- test/fixtures/test_mailer/custom_templating_extension.text.haml
|
294
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.html.erb
|
295
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.html.erb~
|
296
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb
|
297
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak
|
298
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.text.erb
|
299
|
+
- test/fixtures/test_mailer/implicitly_multipart_example.yaml.erb
|
300
|
+
- test/fixtures/test_mailer/included_subtemplate.text.erb
|
301
|
+
- test/fixtures/test_mailer/multipart_alternative.html.erb
|
302
|
+
- test/fixtures/test_mailer/multipart_alternative.plain.erb
|
303
|
+
- test/fixtures/test_mailer/rxml_template.rxml
|
304
|
+
- test/fixtures/test_mailer/signed_up.html.erb
|
305
|
+
- test/fixtures/url_test_mailer/signed_up_with_url.erb
|
306
|
+
- test/mail_layout_test.rb
|
307
|
+
- test/mail_render_test.rb
|
308
|
+
- test/mail_service_test.rb
|