actionmailer 2.3.18 → 3.0.0.beta
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.
- data/CHANGELOG +13 -16
- data/README +39 -21
- data/lib/action_mailer/adv_attr_accessor.rb +14 -18
- data/lib/action_mailer/base.rb +437 -560
- data/lib/action_mailer/collector.rb +36 -0
- data/lib/action_mailer/delivery_methods.rb +86 -0
- data/lib/action_mailer/deprecated_api.rb +139 -0
- data/lib/action_mailer/mail_helper.rb +25 -13
- data/lib/action_mailer/old_api.rb +248 -0
- data/lib/action_mailer/quoting.rb +4 -2
- data/lib/action_mailer/railtie.rb +25 -0
- data/lib/action_mailer/railties/subscriber.rb +20 -0
- data/lib/action_mailer/test_case.rb +4 -6
- data/lib/action_mailer/test_helper.rb +0 -1
- data/lib/action_mailer/tmail_compat.rb +34 -0
- data/lib/action_mailer/version.rb +3 -3
- data/lib/action_mailer.rb +25 -30
- metadata +41 -161
- data/Rakefile +0 -97
- data/install.rb +0 -30
- data/lib/action_mailer/helpers.rb +0 -113
- data/lib/action_mailer/part.rb +0 -107
- data/lib/action_mailer/part_container.rb +0 -55
- data/lib/action_mailer/utils.rb +0 -7
- data/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb +0 -1466
- data/lib/action_mailer/vendor/text_format.rb +0 -10
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/Makefile +0 -18
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb +0 -392
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/attachments.rb +0 -65
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/base64.rb +0 -46
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/compat.rb +0 -41
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/config.rb +0 -67
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/core_extensions.rb +0 -63
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb +0 -590
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/header.rb +0 -962
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/index.rb +0 -9
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb +0 -1162
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/loader.rb +0 -3
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb +0 -578
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb +0 -496
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/main.rb +0 -6
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mbox.rb +0 -3
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/net.rb +0 -250
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/obsolete.rb +0 -132
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.rb +0 -1060
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.y +0 -416
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/port.rb +0 -379
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/quoting.rb +0 -164
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/require_arch.rb +0 -58
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner.rb +0 -49
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner_r.rb +0 -262
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/stringio.rb +0 -280
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/utils.rb +0 -362
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/COPYING +0 -504
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/README +0 -12
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb +0 -927
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb +0 -238
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb +0 -112
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb +0 -75
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb +0 -64
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb +0 -89
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb +0 -244
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb +0 -88
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb +0 -596
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb +0 -430
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb +0 -474
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb +0 -289
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb +0 -570
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb +0 -229
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb +0 -229
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb +0 -330
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb +0 -227
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb +0 -202
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb +0 -226
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb +0 -201
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb +0 -147
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb +0 -89
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb +0 -45
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb +0 -542
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb +0 -124
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb +0 -56
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb +0 -88
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb +0 -168
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb +0 -87
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet.rb +0 -67
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/version.rb +0 -39
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail.rb +0 -6
- data/lib/action_mailer/vendor/tmail.rb +0 -17
- data/lib/actionmailer.rb +0 -2
- data/test/abstract_unit.rb +0 -62
- data/test/asset_host_test.rb +0 -54
- data/test/delivery_method_test.rb +0 -51
- data/test/fixtures/asset_host_mailer/email_with_asset.html.erb +0 -1
- data/test/fixtures/auto_layout_mailer/hello.html.erb +0 -1
- data/test/fixtures/auto_layout_mailer/multipart.text.html.erb +0 -1
- data/test/fixtures/auto_layout_mailer/multipart.text.plain.erb +0 -1
- data/test/fixtures/explicit_layout_mailer/logout.html.erb +0 -1
- data/test/fixtures/explicit_layout_mailer/signup.html.erb +0 -1
- data/test/fixtures/first_mailer/share.erb +0 -1
- data/test/fixtures/helper_mailer/use_example_helper.erb +0 -1
- data/test/fixtures/helper_mailer/use_helper.erb +0 -1
- data/test/fixtures/helper_mailer/use_helper_method.erb +0 -1
- data/test/fixtures/helper_mailer/use_mail_helper.erb +0 -5
- data/test/fixtures/helpers/example_helper.rb +0 -5
- data/test/fixtures/layouts/auto_layout_mailer.html.erb +0 -1
- data/test/fixtures/layouts/auto_layout_mailer.text.erb +0 -1
- data/test/fixtures/layouts/spam.html.erb +0 -1
- data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +0 -1
- data/test/fixtures/raw_email +0 -14
- data/test/fixtures/raw_email10 +0 -20
- data/test/fixtures/raw_email12 +0 -32
- data/test/fixtures/raw_email13 +0 -29
- data/test/fixtures/raw_email2 +0 -114
- data/test/fixtures/raw_email3 +0 -70
- data/test/fixtures/raw_email4 +0 -59
- data/test/fixtures/raw_email5 +0 -19
- data/test/fixtures/raw_email6 +0 -20
- data/test/fixtures/raw_email7 +0 -66
- data/test/fixtures/raw_email8 +0 -47
- data/test/fixtures/raw_email9 +0 -28
- data/test/fixtures/raw_email_quoted_with_0d0a +0 -14
- data/test/fixtures/raw_email_with_invalid_characters_in_content_type +0 -104
- data/test/fixtures/raw_email_with_nested_attachment +0 -100
- data/test/fixtures/raw_email_with_partially_quoted_subject +0 -14
- data/test/fixtures/second_mailer/share.erb +0 -1
- data/test/fixtures/templates/signed_up.erb +0 -3
- data/test/fixtures/test_mailer/_subtemplate.text.plain.erb +0 -1
- data/test/fixtures/test_mailer/body_ivar.erb +0 -2
- data/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +0 -6
- data/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +0 -6
- data/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +0 -1
- data/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak +0 -1
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +0 -10
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb~ +0 -10
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +0 -2
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +0 -1
- data/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +0 -1
- data/test/fixtures/test_mailer/rxml_template.builder +0 -2
- data/test/fixtures/test_mailer/rxml_template.rxml +0 -2
- data/test/fixtures/test_mailer/signed_up.html.erb +0 -3
- data/test/fixtures/test_mailer/signed_up_with_url.erb +0 -5
- data/test/mail_helper_test.rb +0 -95
- data/test/mail_layout_test.rb +0 -123
- data/test/mail_render_test.rb +0 -116
- data/test/mail_service_test.rb +0 -1145
- data/test/quoting_test.rb +0 -105
- data/test/test_helper_test.rb +0 -129
- data/test/tmail_test.rb +0 -22
- data/test/url_test.rb +0 -76
data/lib/action_mailer.rb
CHANGED
@@ -21,42 +21,37 @@
|
|
21
21
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
22
|
#++
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
rescue LoadError
|
27
|
-
actionpack_path = "#{File.dirname(__FILE__)}/../../actionpack/lib"
|
28
|
-
if File.directory?(actionpack_path)
|
29
|
-
$:.unshift actionpack_path
|
30
|
-
require 'action_controller'
|
31
|
-
end
|
32
|
-
end
|
24
|
+
actionpack_path = File.expand_path('../../../actionpack/lib', __FILE__)
|
25
|
+
$:.unshift(actionpack_path) if File.directory?(actionpack_path) && !$:.include?(actionpack_path)
|
33
26
|
|
27
|
+
require 'abstract_controller'
|
34
28
|
require 'action_view'
|
35
29
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
30
|
+
# Common ActiveSupport usage in ActionMailer
|
31
|
+
require 'active_support/core_ext/class'
|
32
|
+
require 'active_support/core_ext/object/blank'
|
33
|
+
require 'active_support/core_ext/array/uniq_by'
|
34
|
+
require 'active_support/core_ext/module/attr_internal'
|
35
|
+
require 'active_support/core_ext/module/delegation'
|
36
|
+
require 'active_support/core_ext/string/inflections'
|
40
37
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
autoload :
|
45
|
-
autoload :
|
46
|
-
autoload :
|
47
|
-
autoload :
|
48
|
-
autoload :
|
49
|
-
autoload :
|
38
|
+
module ActionMailer
|
39
|
+
extend ::ActiveSupport::Autoload
|
40
|
+
|
41
|
+
autoload :AdvAttrAccessor
|
42
|
+
autoload :Collector
|
43
|
+
autoload :Base
|
44
|
+
autoload :DeliveryMethods
|
45
|
+
autoload :DeprecatedApi
|
46
|
+
autoload :MailHelper
|
47
|
+
autoload :OldApi
|
48
|
+
autoload :Quoting
|
49
|
+
autoload :TestCase
|
50
|
+
autoload :TestHelper
|
50
51
|
end
|
51
52
|
|
52
53
|
module Text
|
53
|
-
|
54
|
-
end
|
54
|
+
extend ActiveSupport::Autoload
|
55
55
|
|
56
|
-
|
57
|
-
autoload :SMTP, 'net/smtp'
|
56
|
+
autoload :Format, 'text/format'
|
58
57
|
end
|
59
|
-
|
60
|
-
autoload :MailHelper, 'action_mailer/mail_helper'
|
61
|
-
|
62
|
-
require 'action_mailer/vendor/tmail'
|
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionmailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 2
|
7
|
-
- 3
|
8
|
-
- 18
|
9
|
-
version: 2.3.18
|
4
|
+
version: 3.0.0.beta
|
10
5
|
platform: ruby
|
11
6
|
authors:
|
12
7
|
- David Heinemeier Hansson
|
@@ -14,24 +9,40 @@ autorequire:
|
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
11
|
|
17
|
-
date:
|
12
|
+
date: 2010-02-04 00:00:00 -08:00
|
18
13
|
default_executable:
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: actionpack
|
22
|
-
|
23
|
-
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
20
|
requirements:
|
25
21
|
- - "="
|
26
22
|
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
23
|
+
version: 3.0.0.beta
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mail
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.1.2
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: text-format
|
32
37
|
type: :runtime
|
33
|
-
|
34
|
-
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.0.0
|
44
|
+
version:
|
45
|
+
description: Email composition, delivery, and recieval framework (part of Rails).
|
35
46
|
email: david@loudthinking.com
|
36
47
|
executables: []
|
37
48
|
|
@@ -40,153 +51,24 @@ extensions: []
|
|
40
51
|
extra_rdoc_files: []
|
41
52
|
|
42
53
|
files:
|
43
|
-
- Rakefile
|
44
|
-
- install.rb
|
45
|
-
- README
|
46
54
|
- CHANGELOG
|
55
|
+
- README
|
47
56
|
- MIT-LICENSE
|
48
57
|
- lib/action_mailer/adv_attr_accessor.rb
|
49
58
|
- lib/action_mailer/base.rb
|
50
|
-
- lib/action_mailer/
|
59
|
+
- lib/action_mailer/collector.rb
|
60
|
+
- lib/action_mailer/delivery_methods.rb
|
61
|
+
- lib/action_mailer/deprecated_api.rb
|
51
62
|
- lib/action_mailer/mail_helper.rb
|
52
|
-
- lib/action_mailer/
|
53
|
-
- lib/action_mailer/part_container.rb
|
63
|
+
- lib/action_mailer/old_api.rb
|
54
64
|
- lib/action_mailer/quoting.rb
|
65
|
+
- lib/action_mailer/railtie.rb
|
66
|
+
- lib/action_mailer/railties/subscriber.rb
|
55
67
|
- lib/action_mailer/test_case.rb
|
56
68
|
- lib/action_mailer/test_helper.rb
|
57
|
-
- lib/action_mailer/
|
58
|
-
- lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
|
59
|
-
- lib/action_mailer/vendor/text_format.rb
|
60
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb
|
61
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/attachments.rb
|
62
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/base64.rb
|
63
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/compat.rb
|
64
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/config.rb
|
65
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/core_extensions.rb
|
66
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb
|
67
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/header.rb
|
68
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/index.rb
|
69
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb
|
70
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/loader.rb
|
71
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb
|
72
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb
|
73
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/main.rb
|
74
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/Makefile
|
75
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/mbox.rb
|
76
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/net.rb
|
77
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/obsolete.rb
|
78
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.rb
|
79
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.y
|
80
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/port.rb
|
81
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/quoting.rb
|
82
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/require_arch.rb
|
83
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner.rb
|
84
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner_r.rb
|
85
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/stringio.rb
|
86
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/utils.rb
|
87
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/COPYING
|
88
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb
|
89
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb
|
90
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb
|
91
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb
|
92
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb
|
93
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb
|
94
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb
|
95
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb
|
96
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb
|
97
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb
|
98
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb
|
99
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb
|
100
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb
|
101
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb
|
102
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb
|
103
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb
|
104
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb
|
105
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb
|
106
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb
|
107
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb
|
108
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb
|
109
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb
|
110
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb
|
111
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb
|
112
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb
|
113
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb
|
114
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb
|
115
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb
|
116
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb
|
117
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb
|
118
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb
|
119
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb
|
120
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb
|
121
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb
|
122
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet.rb
|
123
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/README
|
124
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail/version.rb
|
125
|
-
- lib/action_mailer/vendor/tmail-1.2.7/tmail.rb
|
126
|
-
- lib/action_mailer/vendor/tmail.rb
|
69
|
+
- lib/action_mailer/tmail_compat.rb
|
127
70
|
- lib/action_mailer/version.rb
|
128
71
|
- lib/action_mailer.rb
|
129
|
-
- lib/actionmailer.rb
|
130
|
-
- test/abstract_unit.rb
|
131
|
-
- test/asset_host_test.rb
|
132
|
-
- test/delivery_method_test.rb
|
133
|
-
- test/fixtures/asset_host_mailer/email_with_asset.html.erb
|
134
|
-
- test/fixtures/auto_layout_mailer/hello.html.erb
|
135
|
-
- test/fixtures/auto_layout_mailer/multipart.text.html.erb
|
136
|
-
- test/fixtures/auto_layout_mailer/multipart.text.plain.erb
|
137
|
-
- test/fixtures/explicit_layout_mailer/logout.html.erb
|
138
|
-
- test/fixtures/explicit_layout_mailer/signup.html.erb
|
139
|
-
- test/fixtures/first_mailer/share.erb
|
140
|
-
- test/fixtures/helper_mailer/use_example_helper.erb
|
141
|
-
- test/fixtures/helper_mailer/use_helper.erb
|
142
|
-
- test/fixtures/helper_mailer/use_helper_method.erb
|
143
|
-
- test/fixtures/helper_mailer/use_mail_helper.erb
|
144
|
-
- test/fixtures/helpers/example_helper.rb
|
145
|
-
- test/fixtures/layouts/auto_layout_mailer.html.erb
|
146
|
-
- test/fixtures/layouts/auto_layout_mailer.text.erb
|
147
|
-
- test/fixtures/layouts/spam.html.erb
|
148
|
-
- test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb
|
149
|
-
- test/fixtures/raw_email
|
150
|
-
- test/fixtures/raw_email10
|
151
|
-
- test/fixtures/raw_email12
|
152
|
-
- test/fixtures/raw_email13
|
153
|
-
- test/fixtures/raw_email2
|
154
|
-
- test/fixtures/raw_email3
|
155
|
-
- test/fixtures/raw_email4
|
156
|
-
- test/fixtures/raw_email5
|
157
|
-
- test/fixtures/raw_email6
|
158
|
-
- test/fixtures/raw_email7
|
159
|
-
- test/fixtures/raw_email8
|
160
|
-
- test/fixtures/raw_email9
|
161
|
-
- test/fixtures/raw_email_quoted_with_0d0a
|
162
|
-
- test/fixtures/raw_email_with_invalid_characters_in_content_type
|
163
|
-
- test/fixtures/raw_email_with_nested_attachment
|
164
|
-
- test/fixtures/raw_email_with_partially_quoted_subject
|
165
|
-
- test/fixtures/second_mailer/share.erb
|
166
|
-
- test/fixtures/templates/signed_up.erb
|
167
|
-
- test/fixtures/test_mailer/_subtemplate.text.plain.erb
|
168
|
-
- test/fixtures/test_mailer/body_ivar.erb
|
169
|
-
- test/fixtures/test_mailer/custom_templating_extension.text.html.haml
|
170
|
-
- test/fixtures/test_mailer/custom_templating_extension.text.plain.haml
|
171
|
-
- test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb
|
172
|
-
- test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak
|
173
|
-
- test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb
|
174
|
-
- test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb~
|
175
|
-
- test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb
|
176
|
-
- test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb
|
177
|
-
- test/fixtures/test_mailer/included_subtemplate.text.plain.erb
|
178
|
-
- test/fixtures/test_mailer/rxml_template.builder
|
179
|
-
- test/fixtures/test_mailer/rxml_template.rxml
|
180
|
-
- test/fixtures/test_mailer/signed_up.html.erb
|
181
|
-
- test/fixtures/test_mailer/signed_up_with_url.erb
|
182
|
-
- test/mail_helper_test.rb
|
183
|
-
- test/mail_layout_test.rb
|
184
|
-
- test/mail_render_test.rb
|
185
|
-
- test/mail_service_test.rb
|
186
|
-
- test/quoting_test.rb
|
187
|
-
- test/test_helper_test.rb
|
188
|
-
- test/tmail_test.rb
|
189
|
-
- test/url_test.rb
|
190
72
|
has_rdoc: true
|
191
73
|
homepage: http://www.rubyonrails.org
|
192
74
|
licenses: []
|
@@ -200,22 +82,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
82
|
requirements:
|
201
83
|
- - ">="
|
202
84
|
- !ruby/object:Gem::Version
|
203
|
-
segments:
|
204
|
-
- 0
|
205
85
|
version: "0"
|
86
|
+
version:
|
206
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
88
|
requirements:
|
208
|
-
- - "
|
89
|
+
- - ">"
|
209
90
|
- !ruby/object:Gem::Version
|
210
|
-
|
211
|
-
|
212
|
-
version: "0"
|
91
|
+
version: 1.3.1
|
92
|
+
version:
|
213
93
|
requirements:
|
214
94
|
- none
|
215
95
|
rubyforge_project: actionmailer
|
216
|
-
rubygems_version: 1.3.
|
96
|
+
rubygems_version: 1.3.5
|
217
97
|
signing_key:
|
218
98
|
specification_version: 3
|
219
|
-
summary:
|
99
|
+
summary: Email composition, delivery, and recieval framework (part of Rails).
|
220
100
|
test_files: []
|
221
101
|
|
data/Rakefile
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'rake/testtask'
|
4
|
-
require 'rdoc/task'
|
5
|
-
require 'rake/packagetask'
|
6
|
-
require 'rubygems/package_task'
|
7
|
-
require File.join(File.dirname(__FILE__), 'lib', 'action_mailer', 'version')
|
8
|
-
|
9
|
-
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
10
|
-
PKG_NAME = 'actionmailer'
|
11
|
-
PKG_VERSION = ActionMailer::VERSION::STRING + PKG_BUILD
|
12
|
-
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
13
|
-
|
14
|
-
RELEASE_NAME = "REL #{PKG_VERSION}"
|
15
|
-
|
16
|
-
RUBY_FORGE_PROJECT = "actionmailer"
|
17
|
-
RUBY_FORGE_USER = "webster132"
|
18
|
-
|
19
|
-
desc "Default Task"
|
20
|
-
task :default => [ :test ]
|
21
|
-
|
22
|
-
# Run the unit tests
|
23
|
-
Rake::TestTask.new { |t|
|
24
|
-
t.libs << "test"
|
25
|
-
t.pattern = 'test/*_test.rb'
|
26
|
-
t.verbose = true
|
27
|
-
t.warning = false
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
# Generate the RDoc documentation
|
32
|
-
RDoc::Task.new { |rdoc|
|
33
|
-
rdoc.rdoc_dir = 'doc'
|
34
|
-
rdoc.title = "Action Mailer -- Easy email delivery and testing"
|
35
|
-
rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
|
36
|
-
rdoc.options << '--charset' << 'utf-8'
|
37
|
-
rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo'
|
38
|
-
rdoc.rdoc_files.include('README', 'CHANGELOG')
|
39
|
-
rdoc.rdoc_files.include('lib/action_mailer.rb')
|
40
|
-
rdoc.rdoc_files.include('lib/action_mailer/*.rb')
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
# Create compressed packages
|
45
|
-
spec = Gem::Specification.new do |s|
|
46
|
-
s.platform = Gem::Platform::RUBY
|
47
|
-
s.name = PKG_NAME
|
48
|
-
s.summary = "Service layer for easy email delivery and testing."
|
49
|
-
s.description = %q{Makes it trivial to test and deliver emails sent from a single service layer.}
|
50
|
-
s.version = PKG_VERSION
|
51
|
-
|
52
|
-
s.author = "David Heinemeier Hansson"
|
53
|
-
s.email = "david@loudthinking.com"
|
54
|
-
s.rubyforge_project = "actionmailer"
|
55
|
-
s.homepage = "http://www.rubyonrails.org"
|
56
|
-
|
57
|
-
s.add_dependency('actionpack', '= 2.3.18' + PKG_BUILD)
|
58
|
-
|
59
|
-
s.requirements << 'none'
|
60
|
-
s.require_path = 'lib'
|
61
|
-
|
62
|
-
s.files = [ "Rakefile", "install.rb", "README", "CHANGELOG", "MIT-LICENSE" ]
|
63
|
-
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
64
|
-
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
65
|
-
end
|
66
|
-
|
67
|
-
Gem::PackageTask.new(spec) do |p|
|
68
|
-
p.gem_spec = spec
|
69
|
-
p.need_tar = true
|
70
|
-
p.need_zip = true
|
71
|
-
end
|
72
|
-
|
73
|
-
|
74
|
-
desc "Publish the API documentation"
|
75
|
-
task :pgem => [:package] do
|
76
|
-
require 'rake/contrib/sshpublisher'
|
77
|
-
Rake::SshFilePublisher.new("gems.rubyonrails.org", "/u/sites/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
|
78
|
-
`ssh gems.rubyonrails.org '/u/sites/gems/gemupdate.sh'`
|
79
|
-
end
|
80
|
-
|
81
|
-
desc "Publish the API documentation"
|
82
|
-
task :pdoc => [:rdoc] do
|
83
|
-
require 'rake/contrib/sshpublisher'
|
84
|
-
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/am", "doc").upload
|
85
|
-
end
|
86
|
-
|
87
|
-
desc "Publish the release files to RubyForge."
|
88
|
-
task :release => [ :package ] do
|
89
|
-
require 'rubyforge'
|
90
|
-
require 'rake/contrib/rubyforgepublisher'
|
91
|
-
|
92
|
-
packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
|
93
|
-
|
94
|
-
rubyforge = RubyForge.new
|
95
|
-
rubyforge.login
|
96
|
-
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
|
97
|
-
end
|
data/install.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'rbconfig'
|
2
|
-
require 'find'
|
3
|
-
require 'ftools'
|
4
|
-
|
5
|
-
include Config
|
6
|
-
|
7
|
-
# this was adapted from rdoc's install.rb by way of Log4r
|
8
|
-
|
9
|
-
$sitedir = CONFIG["sitelibdir"]
|
10
|
-
unless $sitedir
|
11
|
-
version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
|
12
|
-
$libdir = File.join(CONFIG["libdir"], "ruby", version)
|
13
|
-
$sitedir = $:.find {|x| x =~ /site_ruby/ }
|
14
|
-
if !$sitedir
|
15
|
-
$sitedir = File.join($libdir, "site_ruby")
|
16
|
-
elsif $sitedir !~ Regexp.quote(version)
|
17
|
-
$sitedir = File.join($sitedir, version)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# the actual gruntwork
|
22
|
-
Dir.chdir("lib")
|
23
|
-
|
24
|
-
Find.find("action_mailer", "action_mailer.rb") { |f|
|
25
|
-
if f[-3..-1] == ".rb"
|
26
|
-
File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
|
27
|
-
else
|
28
|
-
File::makedirs(File.join($sitedir, *f.split(/\//)))
|
29
|
-
end
|
30
|
-
}
|
@@ -1,113 +0,0 @@
|
|
1
|
-
require 'active_support/dependencies'
|
2
|
-
|
3
|
-
module ActionMailer
|
4
|
-
module Helpers #:nodoc:
|
5
|
-
def self.included(base) #:nodoc:
|
6
|
-
# Initialize the base module to aggregate its helpers.
|
7
|
-
base.class_inheritable_accessor :master_helper_module
|
8
|
-
base.master_helper_module = Module.new
|
9
|
-
|
10
|
-
# Extend base with class methods to declare helpers.
|
11
|
-
base.extend(ClassMethods)
|
12
|
-
|
13
|
-
base.class_eval do
|
14
|
-
# Wrap inherited to create a new master helper module for subclasses.
|
15
|
-
class << self
|
16
|
-
alias_method_chain :inherited, :helper
|
17
|
-
end
|
18
|
-
|
19
|
-
# Wrap initialize_template_class to extend new template class
|
20
|
-
# instances with the master helper module.
|
21
|
-
alias_method_chain :initialize_template_class, :helper
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
module ClassMethods
|
26
|
-
# Makes all the (instance) methods in the helper module available to templates rendered through this controller.
|
27
|
-
# See ActionView::Helpers (link:classes/ActionView/Helpers.html) for more about making your own helper modules
|
28
|
-
# available to the templates.
|
29
|
-
def add_template_helper(helper_module) #:nodoc:
|
30
|
-
master_helper_module.module_eval "include #{helper_module}"
|
31
|
-
end
|
32
|
-
|
33
|
-
# Declare a helper:
|
34
|
-
# helper :foo
|
35
|
-
# requires 'foo_helper' and includes FooHelper in the template class.
|
36
|
-
# helper FooHelper
|
37
|
-
# includes FooHelper in the template class.
|
38
|
-
# helper { def foo() "#{bar} is the very best" end }
|
39
|
-
# evaluates the block in the template class, adding method +foo+.
|
40
|
-
# helper(:three, BlindHelper) { def mice() 'mice' end }
|
41
|
-
# does all three.
|
42
|
-
def helper(*args, &block)
|
43
|
-
args.flatten.each do |arg|
|
44
|
-
case arg
|
45
|
-
when Module
|
46
|
-
add_template_helper(arg)
|
47
|
-
when String, Symbol
|
48
|
-
file_name = arg.to_s.underscore + '_helper'
|
49
|
-
class_name = file_name.camelize
|
50
|
-
|
51
|
-
begin
|
52
|
-
require_dependency(file_name)
|
53
|
-
rescue LoadError => load_error
|
54
|
-
requiree = / -- (.*?)(\.rb)?$/.match(load_error.message).to_a[1]
|
55
|
-
msg = (requiree == file_name) ? "Missing helper file helpers/#{file_name}.rb" : "Can't load file: #{requiree}"
|
56
|
-
raise LoadError.new(msg).copy_blame!(load_error)
|
57
|
-
end
|
58
|
-
|
59
|
-
add_template_helper(class_name.constantize)
|
60
|
-
else
|
61
|
-
raise ArgumentError, 'helper expects String, Symbol, or Module argument'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Evaluate block in template class if given.
|
66
|
-
master_helper_module.module_eval(&block) if block_given?
|
67
|
-
end
|
68
|
-
|
69
|
-
# Declare a controller method as a helper. For example,
|
70
|
-
# helper_method :link_to
|
71
|
-
# def link_to(name, options) ... end
|
72
|
-
# makes the link_to controller method available in the view.
|
73
|
-
def helper_method(*methods)
|
74
|
-
methods.flatten.each do |method|
|
75
|
-
master_helper_module.module_eval <<-end_eval
|
76
|
-
def #{method}(*args, &block)
|
77
|
-
controller.__send__(%(#{method}), *args, &block)
|
78
|
-
end
|
79
|
-
end_eval
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# Declare a controller attribute as a helper. For example,
|
84
|
-
# helper_attr :name
|
85
|
-
# attr_accessor :name
|
86
|
-
# makes the name and name= controller methods available in the view.
|
87
|
-
# The is a convenience wrapper for helper_method.
|
88
|
-
def helper_attr(*attrs)
|
89
|
-
attrs.flatten.each { |attr| helper_method(attr, "#{attr}=") }
|
90
|
-
end
|
91
|
-
|
92
|
-
private
|
93
|
-
def inherited_with_helper(child)
|
94
|
-
inherited_without_helper(child)
|
95
|
-
begin
|
96
|
-
child.master_helper_module = Module.new
|
97
|
-
child.master_helper_module.__send__(:include, master_helper_module)
|
98
|
-
child.helper child.name.to_s.underscore
|
99
|
-
rescue MissingSourceFile => e
|
100
|
-
raise unless e.is_missing?("helpers/#{child.name.to_s.underscore}_helper")
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
private
|
106
|
-
# Extend the template class instance with our controller's helper module.
|
107
|
-
def initialize_template_class_with_helper(assigns)
|
108
|
-
initialize_template_class_without_helper(assigns).tap do |template|
|
109
|
-
template.extend self.class.master_helper_module
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|