Instiki 0.16.5
Update to Rails 2.3.2 (the stable Rails 2.3 release). Add audio/speex support Update CHANGELOG Bump version number
This commit is contained in:
parent
801d307405
commit
e2ccdfd812
264 changed files with 4850 additions and 1906 deletions
5
vendor/rails/actionmailer/CHANGELOG
vendored
5
vendor/rails/actionmailer/CHANGELOG
vendored
|
@ -1,10 +1,7 @@
|
|||
*2.3.1 [RC2] (March 5, 2009)*
|
||||
*2.3.2 [Final] (March 15, 2009)*
|
||||
|
||||
* Fixed that ActionMailer should send correctly formatted Return-Path in MAIL FROM for SMTP #1842 [Matt Jones]
|
||||
|
||||
|
||||
*2.3.0 [RC1] (February 1st, 2009)*
|
||||
|
||||
* Fixed RFC-2045 quoted-printable bug #1421 [squadette]
|
||||
|
||||
* Fixed that no body charset would be set when there are attachments present #740 [Paweł Kondzior]
|
||||
|
|
2
vendor/rails/actionmailer/Rakefile
vendored
2
vendor/rails/actionmailer/Rakefile
vendored
|
@ -55,7 +55,7 @@ spec = Gem::Specification.new do |s|
|
|||
s.rubyforge_project = "actionmailer"
|
||||
s.homepage = "http://www.rubyonrails.org"
|
||||
|
||||
s.add_dependency('actionpack', '= 2.3.1' + PKG_BUILD)
|
||||
s.add_dependency('actionpack', '= 2.3.2' + PKG_BUILD)
|
||||
|
||||
s.has_rdoc = true
|
||||
s.requirements << 'none'
|
||||
|
|
|
@ -479,7 +479,7 @@ module ActionMailer #:nodoc:
|
|||
)
|
||||
end
|
||||
unless @parts.empty?
|
||||
@content_type = "multipart/alternative"
|
||||
@content_type = "multipart/alternative" if @content_type !~ /^multipart/
|
||||
@parts = sort_parts(@parts, @implicit_parts_order)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1150,7 +1150,7 @@ if __FILE__ == $0
|
|||
assert_equal(Text::Format::JUSTIFY, @format_o.format_style)
|
||||
assert_match(/^of freedom, and that government of the people, by the people, for the$/,
|
||||
@format_o.format(GETTYSBURG).split("\n")[-3])
|
||||
assert_raises(ArgumentError) { @format_o.format_style = 33 }
|
||||
assert_raise(ArgumentError) { @format_o.format_style = 33 }
|
||||
end
|
||||
|
||||
def test_tag_paragraph
|
||||
|
|
|
@ -2,7 +2,7 @@ module ActionMailer
|
|||
module VERSION #:nodoc:
|
||||
MAJOR = 2
|
||||
MINOR = 3
|
||||
TINY = 1
|
||||
TINY = 2
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY].join('.')
|
||||
end
|
||||
|
|
|
@ -21,10 +21,12 @@ class AutoLayoutMailer < ActionMailer::Base
|
|||
body render(:inline => "Hello, <%= @world %>", :layout => false, :body => { :world => "Earth" })
|
||||
end
|
||||
|
||||
def multipart(recipient)
|
||||
def multipart(recipient, type = nil)
|
||||
recipients recipient
|
||||
subject "You have a mail"
|
||||
from "tester@example.com"
|
||||
|
||||
content_type(type) if type
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -64,6 +66,7 @@ class LayoutMailerTest < Test::Unit::TestCase
|
|||
|
||||
def test_should_pickup_multipart_layout
|
||||
mail = AutoLayoutMailer.create_multipart(@recipient)
|
||||
assert_equal "multipart/alternative", mail.content_type
|
||||
assert_equal 2, mail.parts.size
|
||||
|
||||
assert_equal 'text/plain', mail.parts.first.content_type
|
||||
|
@ -73,6 +76,31 @@ class LayoutMailerTest < Test::Unit::TestCase
|
|||
assert_equal "Hello from layout text/html multipart", mail.parts.last.body
|
||||
end
|
||||
|
||||
def test_should_pickup_multipartmixed_layout
|
||||
mail = AutoLayoutMailer.create_multipart(@recipient, "multipart/mixed")
|
||||
assert_equal "multipart/mixed", mail.content_type
|
||||
assert_equal 2, mail.parts.size
|
||||
|
||||
assert_equal 'text/plain', mail.parts.first.content_type
|
||||
assert_equal "text/plain layout - text/plain multipart", mail.parts.first.body
|
||||
|
||||
assert_equal 'text/html', mail.parts.last.content_type
|
||||
assert_equal "Hello from layout text/html multipart", mail.parts.last.body
|
||||
end
|
||||
|
||||
def test_should_fix_multipart_layout
|
||||
mail = AutoLayoutMailer.create_multipart(@recipient, "text/plain")
|
||||
assert_equal "multipart/alternative", mail.content_type
|
||||
assert_equal 2, mail.parts.size
|
||||
|
||||
assert_equal 'text/plain', mail.parts.first.content_type
|
||||
assert_equal "text/plain layout - text/plain multipart", mail.parts.first.body
|
||||
|
||||
assert_equal 'text/html', mail.parts.last.content_type
|
||||
assert_equal "Hello from layout text/html multipart", mail.parts.last.body
|
||||
end
|
||||
|
||||
|
||||
def test_should_pickup_layout_given_to_render
|
||||
mail = AutoLayoutMailer.create_spam(@recipient)
|
||||
assert_equal "Spammer layout Hello, Earth", mail.body.strip
|
||||
|
|
|
@ -1069,7 +1069,7 @@ class RespondToTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_should_still_raise_exception_with_expected_message_when_calling_an_undefined_method
|
||||
error = assert_raises NoMethodError do
|
||||
error = assert_raise NoMethodError do
|
||||
RespondToMailer.not_a_method
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class TestHelperMailerTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
def test_determine_default_mailer_raises_correct_error
|
||||
assert_raises(ActionMailer::NonInferrableMailerError) do
|
||||
assert_raise(ActionMailer::NonInferrableMailerError) do
|
||||
self.class.determine_default_mailer("NotAMailerTest")
|
||||
end
|
||||
end
|
||||
|
@ -84,7 +84,7 @@ class TestHelperMailerTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
def test_assert_emails_too_few_sent
|
||||
error = assert_raises ActiveSupport::TestCase::Assertion do
|
||||
error = assert_raise ActiveSupport::TestCase::Assertion do
|
||||
assert_emails 2 do
|
||||
TestHelperMailer.deliver_test
|
||||
end
|
||||
|
@ -94,7 +94,7 @@ class TestHelperMailerTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
def test_assert_emails_too_many_sent
|
||||
error = assert_raises ActiveSupport::TestCase::Assertion do
|
||||
error = assert_raise ActiveSupport::TestCase::Assertion do
|
||||
assert_emails 1 do
|
||||
TestHelperMailer.deliver_test
|
||||
TestHelperMailer.deliver_test
|
||||
|
@ -105,7 +105,7 @@ class TestHelperMailerTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
def test_assert_no_emails_failure
|
||||
error = assert_raises ActiveSupport::TestCase::Assertion do
|
||||
error = assert_raise ActiveSupport::TestCase::Assertion do
|
||||
assert_no_emails do
|
||||
TestHelperMailer.deliver_test
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue