Mike Gunderloy
1e02d95d60
Make ActioMailer quoting test play nice with Ruby 1.9 [ #1726 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-01-16 17:25:37 +00:00
Joshua Peek
558ab327b7
Clean up view path cruft and split path implementations into Template::Path and Template::EagerPath
2008-12-29 19:27:19 -06:00
Joshua Peek
858a420ce1
Ensure the template format is always passed to the template finder. Now we can cleanup some nasty stuff.
2008-12-21 17:24:16 -06:00
Jeremy Kemper
781e29be0a
Fix tests broken by switch to Pathname
2008-12-09 11:39:45 -08:00
Joshua Peek
7c0dfa35db
Register bogus template handlers for ActionMailer test fixtures
2008-12-03 13:58:47 -06:00
Tekin Suleyman
dab78e55cf
Ensure ActionMailer doesn't blow up when a two argument proc is set for the asset host
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1394 state:committed]
2008-12-01 19:38:25 +01:00
Jeremy Kemper
6d91e7a7d6
Remove explicit tmail requires in favor of autoload
2008-11-23 13:16:39 -08:00
Colin Curtin
1d4554d766
ActionMailer should respect content type when choosing layouts
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-11-21 04:09:14 +05:30
Alexey Mahotkin
84583657f4
Fixed RFC-2045 quoted-printable bug [ #1421 state:committed]
...
http://www.faqs.org/rfcs/rfc2045.html says:
may be
represented by an "=" followed by a two digit
hexadecimal representation of the octet's value. The
digits of the hexadecimal alphabet, for this purpose,
are "0123456789ABCDEF". Uppercase letters must be
used; lowercase letters are not allowed.
ActionMailer, however, used "=%02x" specification.
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-11-20 23:10:15 +01:00
Jeremy Kemper
eeea1a26ec
Merge branch 'master' into testing
2008-11-15 12:21:04 -08:00
David Heinemeier Hansson
e6b33a8337
Added lambda merging to OptionMerger (especially useful with named_scope and with_options) [ #740 state:commited] (Paweł Kondzior)
2008-11-15 16:44:47 +01:00
Joel Chippindale
c65075feb6
Fixed method_missing for ActionMailer so it no longer matches methods where deliver or create are not a suffix [ #1318 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-11-11 09:46:29 -06:00
Joel Chippindale
a62e9e90d8
Fix for ActionMailer::Base.method_missing so that it raises NoMethodError when no method is found [ #1330 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-11-11 09:46:29 -06:00
Jeremy Kemper
17ac2a2482
Ruby 1.9 compat: check for minitest's assertion also
2008-11-08 22:49:28 -05:00
Grant Hollingworth
732c724df6
Turn on STARTTLS if it is available in Net::SMTP (added in Ruby 1.8.7) and the SMTP server supports it [ #1336 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-11-06 13:07:16 +01:00
madlep
2def5b6314
Fixed load path for actionmailer and activesupport tests to always load from local lib files.
...
[#983 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-10-04 07:57:18 -07:00
Joshua Peek
28bf2fa038
Protect body ivar from being clobbered by the mailer template assigns
2008-09-28 12:31:45 -05:00
U-ESCAPEE\Mack
f3f7d166d8
Fixed problem causes by leftover backup templates ending in tilde [state:committed #969 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-09-09 23:29:29 -05:00
David Heinemeier Hansson
6228220c9b
Revert "Revert "Add layout functionality to mailers.""
...
This reverts commit 36c6aa01ee0a7aee5b0510a8e649c44de318b060.
2008-09-09 17:25:09 -05:00
David Heinemeier Hansson
36c6aa01ee
Revert "Add layout functionality to mailers."
...
This reverts commit e9a8e0053be3b293ab89fb584f1d660063f107aa.
2008-09-09 17:20:55 -05:00
Pratik Naik
e9a8e0053b
Add layout functionality to mailers.
...
Mailer layouts behaves just like controller layouts, except layout names need to
have '_mailer' postfix for them to be automatically picked up.
2008-08-31 19:17:42 +01:00
James Mead
3cf773b187
ActionMailer should respond_to? to methods handled by method_missing [ #700 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-08-29 15:09:47 -05:00
Joshua Peek
c0dd0cee46
Removed old deprecation test because the warning was removed in 1129a24
2008-08-22 13:43:34 -05:00
Joshua Peek
04248c6208
Ensure templates are rendered if all the parts are already processed
2008-08-13 19:04:56 -05:00
Joshua Peek
b2504f8ba0
Tidy up ActionMailer rendering logic to take advantage of view path cache instead of using file system lookups
2008-08-06 20:11:21 -05:00
Tarmo Tänav
656f0e7c6c
Fix file permissions
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-31 16:36:23 -05:00
Joshua Peek
e23156e87b
Only create a path for ActionMailer template root instead of a path set. Better fix than 7461227
2008-07-19 12:35:42 -05:00
Joshua Peek
b74b97fef5
Update uses_mocha in ActionMailer and ActiveResource
2008-07-19 11:14:12 -05:00
Joshua Peek
7d5c447d9c
Stubba is included in Mocha already
2008-07-11 11:12:53 -05:00
Joshua Peek
bec4b69a3b
Replaced TemplateFinder abstraction with ViewLoadPaths
2008-06-17 21:21:07 -05:00
Adam
cf6299dbd7
Add ActionMailer#reply_to. [ #245 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-29 10:38:00 +01:00
Jeremy Kemper
940cf0cacd
Bah, don't test TMail in AM
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-03 18:32:10 +00:00
Jeremy Kemper
5c17a74d59
Ruby 1.9 compat: compare with same encoding
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-03 17:28:05 +00:00
Jeremy Kemper
767be30e61
force_encoding to ascii-8bit instead of nil
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 05:32:11 +00:00
Jeremy Kemper
af74077544
Ruby 1.9 compat: mark utf-8 encoding.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 05:31:37 +00:00
Jeremy Kemper
218417b8a9
Remove empty .rhtml templates
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-07 23:10:01 +00:00
Jeremy Kemper
fbd3eb7142
Less verbose mail logging: just recipients for :info log level; the whole email for :debug only. Closes #8000 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-02 05:32:15 +00:00
Jeremy Kemper
abfab89fd8
Ruby 1.9 compat: test encoding fixes. Closes #10597 [murphy]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-19 03:03:38 +00:00
Rick Olson
2dda639120
Updated TMail to version 1.2.1 [raasdnil]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-11 01:55:20 +00:00
Jeremy Kemper
139b92495f
* Continue evolution toward ActiveSupport::TestCase and friends. #10679 [Josh Peek]
...
* TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:34:15 +00:00
Jeremy Kemper
1ad87adc9f
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:32:22 +00:00
David Heinemeier Hansson
6a6367d7d2
Fixed that you don't have to call super in ActionMailer::TestCase#setup ( closes #10406 ) [jamesgolick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:40:28 +00:00
Michael Koziarski
f1047173e8
Remove old tests which relied on @ being an ATOM to work around old Mail.app bugs. Closes #10317 [mikel]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-02 20:31:39 +00:00
Michael Koziarski
1d32cec17d
Allow body to be specified for nested parts with action mailer. Closes #10271 [redinger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-29 02:52:49 +00:00
Rick Olson
bd5ed65110
Update ActionMailer so it treats ActionView the same way that ActionController does. Closes #10244 [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-26 03:36:28 +00:00
Michael Koziarski
e0ce691187
Add missing sub template fixtures. References #10130 [java]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-22 05:01:43 +00:00
David Heinemeier Hansson
a76490d917
Fixed that partial rendering should look at the type of the first render to determine its own type if no other clues are available (like when using text.plain.erb as the extension in AM) ( closes #10130 ) [java] Fixed that partials would be broken when using text.plain.erb as the extension #10130 [java]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-18 22:01:33 +00:00
David Heinemeier Hansson
57cde63138
Allow ActionMailer subclasses to individually set their delivery method (so two subclasses can have different delivery methods) ( closes #10033 ) [zdennis]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-07 16:05:17 +00:00
Rick Olson
2a51c8682d
Update TMail to v1.1.0. Use an updated version of TMail if available. [mikel]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-06 14:24:32 +00:00
Michael Koziarski
2283524dff
Test which fails without [8052] [Koz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-29 04:13:51 +00:00