actionmailer 1.3.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionmailer might be problematic. Click here for more details.

Files changed (96) hide show
  1. data/CHANGELOG +40 -28
  2. data/MIT-LICENSE +1 -1
  3. data/README +2 -2
  4. data/Rakefile +4 -3
  5. data/install.rb +1 -1
  6. data/lib/action_mailer.rb +5 -3
  7. data/lib/action_mailer/base.rb +57 -36
  8. data/lib/action_mailer/helpers.rb +4 -4
  9. data/lib/action_mailer/part.rb +2 -5
  10. data/lib/action_mailer/test_case.rb +59 -0
  11. data/lib/action_mailer/test_helper.rb +67 -0
  12. data/lib/action_mailer/vendor.rb +14 -0
  13. data/lib/action_mailer/vendor/{text → text-format-0.6.3/text}/format.rb +0 -0
  14. data/lib/action_mailer/vendor/tmail-1.1.0/tmail.rb +4 -0
  15. data/lib/action_mailer/vendor/tmail-1.1.0/tmail/Makefile +19 -0
  16. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/address.rb +6 -3
  17. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/attachments.rb +10 -2
  18. data/lib/action_mailer/vendor/tmail-1.1.0/tmail/base64.rb +52 -0
  19. data/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb +39 -0
  20. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/config.rb +5 -3
  21. data/lib/action_mailer/vendor/tmail-1.1.0/tmail/core_extensions.rb +67 -0
  22. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/encode.rb +23 -9
  23. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/facade.rb +0 -0
  24. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/header.rb +23 -6
  25. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/info.rb +0 -0
  26. data/lib/action_mailer/vendor/tmail-1.1.0/tmail/interface.rb +540 -0
  27. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/loader.rb +0 -0
  28. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/mail.rb +20 -5
  29. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/mailbox.rb +5 -3
  30. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/mbox.rb +0 -0
  31. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/net.rb +5 -3
  32. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/obsolete.rb +5 -3
  33. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/parser.rb +234 -281
  34. data/lib/action_mailer/vendor/tmail-1.1.0/tmail/parser.y +381 -0
  35. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/port.rb +5 -3
  36. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/quoting.rb +12 -1
  37. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/scanner.rb +5 -3
  38. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/scanner_r.rb +1 -1
  39. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/stringio.rb +6 -4
  40. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/tmail.rb +0 -0
  41. data/lib/action_mailer/vendor/{tmail → tmail-1.1.0/tmail}/utils.rb +50 -7
  42. data/lib/action_mailer/vendor/{tmail/base64.rb → tmail-1.1.0/tmail/version.rb} +7 -40
  43. data/lib/action_mailer/version.rb +3 -3
  44. data/lib/actionmailer.rb +1 -0
  45. data/test/abstract_unit.rb +19 -0
  46. data/test/delivery_method_test.rb +51 -0
  47. data/test/fixtures/first_mailer/share.erb +1 -0
  48. data/test/fixtures/first_mailer/share.rhtml +0 -1
  49. data/test/fixtures/helper_mailer/use_example_helper.erb +1 -0
  50. data/test/fixtures/helper_mailer/use_example_helper.rhtml +0 -0
  51. data/test/fixtures/helper_mailer/use_helper.erb +1 -0
  52. data/test/fixtures/helper_mailer/use_helper.rhtml +0 -1
  53. data/test/fixtures/helper_mailer/use_helper_method.erb +1 -0
  54. data/test/fixtures/helper_mailer/use_helper_method.rhtml +0 -1
  55. data/test/fixtures/helper_mailer/use_mail_helper.erb +5 -0
  56. data/test/fixtures/helper_mailer/use_mail_helper.rhtml +0 -5
  57. data/test/fixtures/helpers/{test_helper.rb → example_helper.rb} +2 -2
  58. data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +1 -0
  59. data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml +0 -1
  60. data/test/fixtures/raw_base64_decoded_string +0 -0
  61. data/test/fixtures/raw_base64_encoded_string +1 -0
  62. data/test/fixtures/raw_email_with_invalid_characters_in_content_type +104 -0
  63. data/test/fixtures/raw_email_with_nested_attachment +100 -0
  64. data/test/fixtures/second_mailer/share.erb +1 -0
  65. data/test/fixtures/second_mailer/share.rhtml +0 -1
  66. data/test/fixtures/templates/signed_up.erb +3 -0
  67. data/test/fixtures/templates/signed_up.rhtml +0 -3
  68. data/test/fixtures/test_mailer/_subtemplate.text.plain.erb +1 -0
  69. data/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +6 -0
  70. data/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +6 -0
  71. data/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +1 -0
  72. data/test/fixtures/test_mailer/implicitly_multipart_example.ignored.rhtml +0 -1
  73. data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +10 -0
  74. data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.rhtml +0 -10
  75. data/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +2 -0
  76. data/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.rhtml +0 -2
  77. data/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +1 -0
  78. data/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.rhtml +0 -1
  79. data/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +1 -0
  80. data/test/fixtures/test_mailer/rxml_template.builder +2 -0
  81. data/test/fixtures/test_mailer/rxml_template.rxml +2 -0
  82. data/test/fixtures/test_mailer/signed_up.erb +3 -0
  83. data/test/fixtures/test_mailer/signed_up.rhtml +0 -3
  84. data/test/fixtures/test_mailer/signed_up_with_url.erb +5 -0
  85. data/test/fixtures/test_mailer/signed_up_with_url.rhtml +0 -3
  86. data/test/mail_helper_test.rb +10 -6
  87. data/test/mail_render_test.rb +45 -2
  88. data/test/mail_service_test.rb +150 -27
  89. data/test/quoting_test.rb +57 -3
  90. data/test/test_helper_test.rb +117 -0
  91. data/test/tmail_test.rb +9 -0
  92. data/test/url_test.rb +10 -2
  93. metadata +69 -32
  94. data/lib/action_mailer/vendor/tmail.rb +0 -3
  95. data/test/fixtures/helper_mailer/use_test_helper.rhtml +0 -1
  96. data/test/fixtures/raw_email11 +0 -34
@@ -3,6 +3,44 @@ require 'tmail'
3
3
  require 'tempfile'
4
4
 
5
5
  class QuotingTest < Test::Unit::TestCase
6
+
7
+ # Move some tests from TMAIL here
8
+ def test_unquote_quoted_printable
9
+ a ="=?ISO-8859-1?Q?[166417]_Bekr=E6ftelse_fra_Rejsefeber?="
10
+ b = TMail::Unquoter.unquote_and_convert_to(a, 'utf-8')
11
+ assert_equal "[166417] Bekr\303\246ftelse fra Rejsefeber", b
12
+ end
13
+
14
+ def test_unquote_base64
15
+ a ="=?ISO-8859-1?B?WzE2NjQxN10gQmVrcuZmdGVsc2UgZnJhIFJlanNlZmViZXI=?="
16
+ b = TMail::Unquoter.unquote_and_convert_to(a, 'utf-8')
17
+ assert_equal "[166417] Bekr\303\246ftelse fra Rejsefeber", b
18
+ end
19
+
20
+ def test_unquote_without_charset
21
+ a ="[166417]_Bekr=E6ftelse_fra_Rejsefeber"
22
+ b = TMail::Unquoter.unquote_and_convert_to(a, 'utf-8')
23
+ assert_equal "[166417]_Bekr=E6ftelse_fra_Rejsefeber", b
24
+ end
25
+
26
+ def test_unqoute_multiple
27
+ a ="=?utf-8?q?Re=3A_=5B12=5D_=23137=3A_Inkonsistente_verwendung_von_=22Hin?==?utf-8?b?enVmw7xnZW4i?="
28
+ b = TMail::Unquoter.unquote_and_convert_to(a, 'utf-8')
29
+ assert_equal "Re: [12] #137: Inkonsistente verwendung von \"Hinzuf\303\274gen\"", b
30
+ end
31
+
32
+ def test_unqoute_in_the_middle
33
+ a ="Re: Photos =?ISO-8859-1?Q?Brosch=FCre_Rand?="
34
+ b = TMail::Unquoter.unquote_and_convert_to(a, 'utf-8')
35
+ assert_equal "Re: Photos Brosch\303\274re Rand", b
36
+ end
37
+
38
+ def test_unqoute_iso
39
+ a ="=?ISO-8859-1?Q?Brosch=FCre_Rand?="
40
+ b = TMail::Unquoter.unquote_and_convert_to(a, 'iso-8859-1')
41
+ assert_equal "Brosch\374re Rand", b
42
+ end
43
+
6
44
  def test_quote_multibyte_chars
7
45
  original = "\303\246 \303\270 and \303\245"
8
46
 
@@ -18,7 +56,8 @@ class QuotingTest < Test::Unit::TestCase
18
56
  unquoted = TMail::Unquoter.unquote_and_convert_to(result, nil)
19
57
  assert_equal unquoted, original
20
58
  end
21
-
59
+
60
+
22
61
  # test an email that has been created using \r\n newlines, instead of
23
62
  # \n newlines.
24
63
  def test_email_quoted_with_0d0a
@@ -30,9 +69,19 @@ class QuotingTest < Test::Unit::TestCase
30
69
  mail = TMail::Mail.parse(IO.read("#{File.dirname(__FILE__)}/fixtures/raw_email_with_partially_quoted_subject"))
31
70
  assert_equal "Re: Test: \"\346\274\242\345\255\227\" mid \"\346\274\242\345\255\227\" tail", mail.subject
32
71
  end
33
-
72
+
73
+ def test_decode
74
+ encoded, decoded = expected_base64_strings
75
+ assert_equal decoded, TMail::Base64.decode(encoded)
76
+ end
77
+
78
+ def test_encode
79
+ encoded, decoded = expected_base64_strings
80
+ assert_equal encoded.length, TMail::Base64.encode(decoded).length
81
+ end
82
+
34
83
  private
35
-
84
+
36
85
  # This whole thing *could* be much simpler, but I don't think Tempfile,
37
86
  # popen and others exist on all platforms (like Windows).
38
87
  def execute_in_sandbox(code)
@@ -54,4 +103,9 @@ class QuotingTest < Test::Unit::TestCase
54
103
  File.delete(test_name) rescue nil
55
104
  File.delete(res_name) rescue nil
56
105
  end
106
+
107
+ def expected_base64_strings
108
+ [ File.read("#{File.dirname(__FILE__)}/fixtures/raw_base64_encoded_string"), File.read("#{File.dirname(__FILE__)}/fixtures/raw_base64_decoded_string") ]
109
+ end
57
110
  end
111
+
@@ -0,0 +1,117 @@
1
+ require File.dirname(__FILE__) + '/abstract_unit'
2
+
3
+ class TestHelperMailer < ActionMailer::Base
4
+ def test
5
+ recipients "test@example.com"
6
+ from "tester@example.com"
7
+ body render(:inline => "Hello, <%= @world %>", :body => { :world => "Earth" })
8
+ end
9
+ end
10
+
11
+ class TestHelperMailerTest < ActionMailer::TestCase
12
+
13
+ def test_setup_sets_right_action_mailer_options
14
+ assert_equal :test, ActionMailer::Base.delivery_method
15
+ assert ActionMailer::Base.perform_deliveries
16
+ assert_equal [], ActionMailer::Base.deliveries
17
+ end
18
+
19
+ def test_setup_creates_the_expected_mailer
20
+ assert @expected.is_a?(TMail::Mail)
21
+ assert_equal "1.0", @expected.mime_version
22
+ assert_equal "text/plain", @expected.content_type
23
+ end
24
+
25
+ def test_mailer_class_is_correctly_inferred
26
+ assert_equal TestHelperMailer, self.class.mailer_class
27
+ end
28
+
29
+ def test_determine_default_mailer_raises_correct_error
30
+ assert_raises(ActionMailer::NonInferrableMailerError) do
31
+ self.class.determine_default_mailer("NotAMailerTest")
32
+ end
33
+ end
34
+
35
+ def test_charset_is_utf_8
36
+ assert_equal "utf-8", charset
37
+ end
38
+
39
+ def test_encode
40
+ assert_equal "=?utf-8?Q?=0aasdf=0a?=", encode("\nasdf\n")
41
+ end
42
+
43
+ def test_assert_emails
44
+ assert_nothing_raised do
45
+ assert_emails 1 do
46
+ TestHelperMailer.deliver_test
47
+ end
48
+ end
49
+ end
50
+
51
+ def test_repeated_assert_emails_calls
52
+ assert_nothing_raised do
53
+ assert_emails 1 do
54
+ TestHelperMailer.deliver_test
55
+ end
56
+ end
57
+
58
+ assert_nothing_raised do
59
+ assert_emails 2 do
60
+ TestHelperMailer.deliver_test
61
+ TestHelperMailer.deliver_test
62
+ end
63
+ end
64
+ end
65
+
66
+ def test_assert_emails_with_no_block
67
+ assert_nothing_raised do
68
+ TestHelperMailer.deliver_test
69
+ assert_emails 1
70
+ end
71
+
72
+ assert_nothing_raised do
73
+ TestHelperMailer.deliver_test
74
+ TestHelperMailer.deliver_test
75
+ assert_emails 3
76
+ end
77
+ end
78
+
79
+ def test_assert_no_emails
80
+ assert_nothing_raised do
81
+ assert_no_emails do
82
+ TestHelperMailer.create_test
83
+ end
84
+ end
85
+ end
86
+
87
+ def test_assert_emails_too_few_sent
88
+ error = assert_raises Test::Unit::AssertionFailedError do
89
+ assert_emails 2 do
90
+ TestHelperMailer.deliver_test
91
+ end
92
+ end
93
+
94
+ assert_match /2 .* but 1/, error.message
95
+ end
96
+
97
+ def test_assert_emails_too_many_sent
98
+ error = assert_raises Test::Unit::AssertionFailedError do
99
+ assert_emails 1 do
100
+ TestHelperMailer.deliver_test
101
+ TestHelperMailer.deliver_test
102
+ end
103
+ end
104
+
105
+ assert_match /1 .* but 2/, error.message
106
+ end
107
+
108
+ def test_assert_no_emails_failure
109
+ error = assert_raises Test::Unit::AssertionFailedError do
110
+ assert_no_emails do
111
+ TestHelperMailer.deliver_test
112
+ end
113
+ end
114
+
115
+ assert_match /0 .* but 1/, error.message
116
+ end
117
+ end
@@ -10,4 +10,13 @@ class TMailMailTest < Test::Unit::TestCase
10
10
  assert_equal "something_with_underscores=\n", m.quoted_body
11
11
  assert_equal expected, m.body
12
12
  end
13
+
14
+ def test_nested_attachments_are_recognized_correctly
15
+ fixture = File.read("#{File.dirname(__FILE__)}/fixtures/raw_email_with_nested_attachment")
16
+ mail = TMail::Mail.parse(fixture)
17
+ assert_equal 2, mail.attachments.length
18
+ assert_equal "image/png", mail.attachments.first.content_type
19
+ assert_equal 1902, mail.attachments.first.length
20
+ assert_equal "application/pkcs7-signature", mail.attachments.last.content_type
21
+ end
13
22
  end
@@ -1,6 +1,9 @@
1
1
  require "#{File.dirname(__FILE__)}/abstract_unit"
2
2
 
3
3
  class TestMailer < ActionMailer::Base
4
+
5
+ default_url_options[:host] = 'www.basecamphq.com'
6
+
4
7
  def signed_up_with_url(recipient)
5
8
  @recipients = recipient
6
9
  @subject = "[Signed up] Welcome #{recipient}"
@@ -37,22 +40,27 @@ class ActionMailerUrlTest < Test::Unit::TestCase
37
40
  end
38
41
 
39
42
  def setup
40
- ActionMailer::Base.delivery_method = :test
43
+ set_delivery_method :test
41
44
  ActionMailer::Base.perform_deliveries = true
42
45
  ActionMailer::Base.deliveries = []
43
46
 
44
47
  @recipient = 'test@localhost'
45
48
  end
46
49
 
50
+ def teardown
51
+ restore_delivery_method
52
+ end
53
+
47
54
  def test_signed_up_with_url
48
55
  ActionController::Routing::Routes.draw do |map|
49
56
  map.connect ':controller/:action/:id'
57
+ map.welcome 'welcome', :controller=>"foo", :action=>"bar"
50
58
  end
51
59
 
52
60
  expected = new_mail
53
61
  expected.to = @recipient
54
62
  expected.subject = "[Signed up] Welcome #{@recipient}"
55
- expected.body = "Hello there, \n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting"
63
+ expected.body = "Hello there, \n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting http://www.basecamphq.com/welcome\n\n<img alt=\"Somelogo\" src=\"/images/somelogo.png\" />"
56
64
  expected.from = "system@loudthinking.com"
57
65
  expected.date = Time.local(2004, 12, 12)
58
66
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: actionmailer
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.3.6
7
- date: 2007-11-24 00:00:00 +13:00
6
+ version: 2.0.0
7
+ date: 2007-12-06 00:00:00 -06:00
8
8
  summary: Service layer for easy email delivery and testing.
9
9
  require_paths:
10
10
  - lib
@@ -42,54 +42,74 @@ files:
42
42
  - lib/action_mailer/part.rb
43
43
  - lib/action_mailer/part_container.rb
44
44
  - lib/action_mailer/quoting.rb
45
+ - lib/action_mailer/test_case.rb
46
+ - lib/action_mailer/test_helper.rb
45
47
  - lib/action_mailer/utils.rb
46
48
  - lib/action_mailer/vendor
47
- - lib/action_mailer/vendor/text
48
- - lib/action_mailer/vendor/text/format.rb
49
- - lib/action_mailer/vendor/tmail
50
- - lib/action_mailer/vendor/tmail/address.rb
51
- - lib/action_mailer/vendor/tmail/attachments.rb
52
- - lib/action_mailer/vendor/tmail/base64.rb
53
- - lib/action_mailer/vendor/tmail/config.rb
54
- - lib/action_mailer/vendor/tmail/encode.rb
55
- - lib/action_mailer/vendor/tmail/facade.rb
56
- - lib/action_mailer/vendor/tmail/header.rb
57
- - lib/action_mailer/vendor/tmail/info.rb
58
- - lib/action_mailer/vendor/tmail/loader.rb
59
- - lib/action_mailer/vendor/tmail/mail.rb
60
- - lib/action_mailer/vendor/tmail/mailbox.rb
61
- - lib/action_mailer/vendor/tmail/mbox.rb
62
- - lib/action_mailer/vendor/tmail/net.rb
63
- - lib/action_mailer/vendor/tmail/obsolete.rb
64
- - lib/action_mailer/vendor/tmail/parser.rb
65
- - lib/action_mailer/vendor/tmail/port.rb
66
- - lib/action_mailer/vendor/tmail/quoting.rb
67
- - lib/action_mailer/vendor/tmail/scanner.rb
68
- - lib/action_mailer/vendor/tmail/scanner_r.rb
69
- - lib/action_mailer/vendor/tmail/stringio.rb
70
- - lib/action_mailer/vendor/tmail/tmail.rb
71
- - lib/action_mailer/vendor/tmail/utils.rb
72
- - lib/action_mailer/vendor/tmail.rb
49
+ - lib/action_mailer/vendor/text-format-0.6.3
50
+ - lib/action_mailer/vendor/text-format-0.6.3/text
51
+ - lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
52
+ - lib/action_mailer/vendor/tmail-1.1.0
53
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail
54
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/address.rb
55
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/attachments.rb
56
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/base64.rb
57
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb
58
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb
59
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/core_extensions.rb
60
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/encode.rb
61
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/facade.rb
62
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/header.rb
63
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/info.rb
64
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/interface.rb
65
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/loader.rb
66
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/mail.rb
67
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/mailbox.rb
68
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/Makefile
69
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/mbox.rb
70
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/net.rb
71
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/obsolete.rb
72
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/parser.rb
73
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/parser.y
74
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/port.rb
75
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/quoting.rb
76
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/scanner.rb
77
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/scanner_r.rb
78
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/stringio.rb
79
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/tmail.rb
80
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/utils.rb
81
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail/version.rb
82
+ - lib/action_mailer/vendor/tmail-1.1.0/tmail.rb
83
+ - lib/action_mailer/vendor.rb
73
84
  - lib/action_mailer/version.rb
74
85
  - lib/action_mailer.rb
86
+ - lib/actionmailer.rb
75
87
  - test/abstract_unit.rb
88
+ - test/delivery_method_test.rb
76
89
  - test/fixtures
77
90
  - test/fixtures/first_mailer
91
+ - test/fixtures/first_mailer/share.erb
78
92
  - test/fixtures/first_mailer/share.rhtml
79
93
  - test/fixtures/helper_mailer
94
+ - test/fixtures/helper_mailer/use_example_helper.erb
95
+ - test/fixtures/helper_mailer/use_example_helper.rhtml
96
+ - test/fixtures/helper_mailer/use_helper.erb
80
97
  - test/fixtures/helper_mailer/use_helper.rhtml
98
+ - test/fixtures/helper_mailer/use_helper_method.erb
81
99
  - test/fixtures/helper_mailer/use_helper_method.rhtml
100
+ - test/fixtures/helper_mailer/use_mail_helper.erb
82
101
  - test/fixtures/helper_mailer/use_mail_helper.rhtml
83
- - test/fixtures/helper_mailer/use_test_helper.rhtml
84
102
  - test/fixtures/helpers
85
- - test/fixtures/helpers/test_helper.rb
103
+ - test/fixtures/helpers/example_helper.rb
86
104
  - test/fixtures/path.with.dots
87
105
  - test/fixtures/path.with.dots/funky_path_mailer
106
+ - test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb
88
107
  - test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml
89
108
  - test/fixtures/path.with.dots/multipart_with_template_path_with_dots.rhtml
109
+ - test/fixtures/raw_base64_decoded_string
110
+ - test/fixtures/raw_base64_encoded_string
90
111
  - test/fixtures/raw_email
91
112
  - test/fixtures/raw_email10
92
- - test/fixtures/raw_email11
93
113
  - test/fixtures/raw_email12
94
114
  - test/fixtures/raw_email13
95
115
  - test/fixtures/raw_email2
@@ -101,23 +121,40 @@ files:
101
121
  - test/fixtures/raw_email8
102
122
  - test/fixtures/raw_email9
103
123
  - test/fixtures/raw_email_quoted_with_0d0a
124
+ - test/fixtures/raw_email_with_invalid_characters_in_content_type
125
+ - test/fixtures/raw_email_with_nested_attachment
104
126
  - test/fixtures/raw_email_with_partially_quoted_subject
105
127
  - test/fixtures/second_mailer
128
+ - test/fixtures/second_mailer/share.erb
106
129
  - test/fixtures/second_mailer/share.rhtml
107
130
  - test/fixtures/templates
131
+ - test/fixtures/templates/signed_up.erb
108
132
  - test/fixtures/templates/signed_up.rhtml
109
133
  - test/fixtures/test_mailer
134
+ - test/fixtures/test_mailer/_subtemplate.text.plain.erb
135
+ - test/fixtures/test_mailer/custom_templating_extension.text.html.haml
136
+ - test/fixtures/test_mailer/custom_templating_extension.text.plain.haml
137
+ - test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb
110
138
  - test/fixtures/test_mailer/implicitly_multipart_example.ignored.rhtml
111
139
  - test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak
140
+ - test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb
112
141
  - test/fixtures/test_mailer/implicitly_multipart_example.text.html.rhtml
142
+ - test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb
113
143
  - test/fixtures/test_mailer/implicitly_multipart_example.text.plain.rhtml
144
+ - test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb
114
145
  - test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.rhtml
146
+ - test/fixtures/test_mailer/included_subtemplate.text.plain.erb
147
+ - test/fixtures/test_mailer/rxml_template.builder
148
+ - test/fixtures/test_mailer/rxml_template.rxml
149
+ - test/fixtures/test_mailer/signed_up.erb
115
150
  - test/fixtures/test_mailer/signed_up.rhtml
151
+ - test/fixtures/test_mailer/signed_up_with_url.erb
116
152
  - test/fixtures/test_mailer/signed_up_with_url.rhtml
117
153
  - test/mail_helper_test.rb
118
154
  - test/mail_render_test.rb
119
155
  - test/mail_service_test.rb
120
156
  - test/quoting_test.rb
157
+ - test/test_helper_test.rb
121
158
  - test/tmail_test.rb
122
159
  - test/url_test.rb
123
160
  test_files: []
@@ -140,5 +177,5 @@ dependencies:
140
177
  requirements:
141
178
  - - "="
142
179
  - !ruby/object:Gem::Version
143
- version: 1.13.6
180
+ version: 2.0.0
144
181
  version:
@@ -1,3 +0,0 @@
1
- require 'tmail/info'
2
- require 'tmail/mail'
3
- require 'tmail/mailbox'
@@ -1 +0,0 @@
1
- So, <%= test_format(@text) %>
@@ -1,34 +0,0 @@
1
- From xxx@xxxx.com Wed Apr 27 14:15:31 2005
2
- Mime-Version: 1.0 (Apple Message framework v619.2)
3
- To: xxxxx@xxxxx <matmail>
4
- Message-Id: <416eaebec6d333ec6939eaf8a7d80724@xxxxx>
5
- Content-Type: multipart/alternative;
6
- boundary=Apple-Mail-5-1037861608
7
- From: xxxxx@xxxxx <xxxxx@xxxxx>
8
- Subject: worse when you use them.
9
- Date: Wed, 27 Apr 2005 14:15:31 -0700
10
-
11
-
12
-
13
-
14
- --Apple-Mail-5-1037861608
15
- Content-Transfer-Encoding: 7bit
16
- Content-Type: text/plain;
17
- charset=US-ASCII;
18
- format=flowed
19
-
20
-
21
- XXXXX Xxxxx
22
-
23
- --Apple-Mail-5-1037861608
24
- Content-Transfer-Encoding: 7bit
25
- Content-Type: text/enriched;
26
- charset=US-ASCII
27
-
28
-
29
-
30
- <bold>XXXXX Xxxxx</bold>
31
-
32
-
33
- --Apple-Mail-5-1037861608--
34
-