diff --git a/actionmailer/README b/actionmailer/README index 8eb973668eb2d47b36d1c8c70a47175041c74320..8c85e1aeb7acfd65d7f03005593a87d3d69ff2db 100755 --- a/actionmailer/README +++ b/actionmailer/README @@ -1,6 +1,6 @@ = Action Mailer -- Easy email delivery and testing -Action Mailer is framework for designing email-service layers. These layers +Action Mailer is a framework for designing email-service layers. These layers are used to consolidate code for sending out forgotten passwords, welcoming wishes on signup, invoices for billing, and any other use case that requires a written notification to either a person or another system. @@ -145,4 +145,4 @@ And as Jim from Rake says: new feature to be submitted in the form of new unit tests. For other information, feel free to ask on the ruby-talk mailing list (which -is mirrored to comp.lang.ruby) or contact mailto:david@loudthinking.com. \ No newline at end of file +is mirrored to comp.lang.ruby) or contact mailto:david@loudthinking.com. diff --git a/actionmailer/install.rb b/actionmailer/install.rb index e65d0d10ad17f6ec032237c871c6aa589421baef..c559edfff5ef046363054eea2c49f95341974c85 100644 --- a/actionmailer/install.rb +++ b/actionmailer/install.rb @@ -4,7 +4,7 @@ include Config -# this was adapted from rdoc's install.rb by ways of Log4r +# this was adapted from rdoc's install.rb by way of Log4r $sitedir = CONFIG["sitelibdir"] unless $sitedir diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index aa1fb648a0582a53d80d6f31e18c6a4e60fce8e8..cc996790c8a301ef45aa0b88bb72857ceab85be4 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -9,8 +9,8 @@ module ActionMailer # # class ApplicationMailer < ActionMailer::Base # # Set up properties - # # (Properties can also be specified via accessor methods - # # i.e. self.subject = "foo") and instance variables (@subject = "foo"). + # # Properties can also be specified via accessor methods + # # (i.e. self.subject = "foo") and instance variables (@subject = "foo"). # def signup_notification(recipient) # recipients recipient.email_address_with_name # subject "New account information" @@ -71,7 +71,7 @@ module ActionMailer # end # end # - # # After this post_notification will look for "templates/application_mailer/post_notification.rhtml" + # # After this, post_notification will look for "templates/application_mailer/post_notification.rhtml" # ApplicationMailer.template_root = "templates" # # ApplicationMailer.create_comment_notification(david, hello_world) # => a tmail object @@ -87,11 +87,11 @@ module ActionMailer # Can be set to nil for no logging. Compatible with both Ruby's own Logger and Log4r loggers. # # * server_settings - Allows detailed configuration of the server: - # * :address Allows you to use a remote mail server. Just change it away from it's default "localhost" setting. - # * :port On the off change that your mail server doesn't run on port 25, you can change it. + # * :address Allows you to use a remote mail server. Just change it from its default "localhost" setting. + # * :port On the off chance that your mail server doesn't run on port 25, you can change it. # * :domain If you need to specify a HELO domain, you can do it here. - # * :user_name If your mail server requires authentication, set the username and password in these two settings. - # * :password If your mail server requires authentication, set the username and password in these two settings. + # * :user_name If your mail server requires authentication, set the username in this setting. + # * :password If your mail server requires authentication, set the password in this setting. # * :authentication If your mail server requires authentication, you need to specify the authentication type here. # This is a symbol and one of :plain, :login, :cram_md5 # @@ -108,12 +108,12 @@ module ActionMailer # # * default_charset - The default charset used for the body and to encode the subject. Defaults to UTF-8. You can also # pick a different charset from inside a method with @charset. - # * default_content_type - The default content type used for main part of the message. Defaults to "text/plain". You + # * default_content_type - The default content type used for the main part of the message. Defaults to "text/plain". You # can also pick a different content type from inside a method with @content_type. # * default_mime_version - The default mime version used for the message. Defaults to nil. You # can also pick a different value from inside a method with @mime_version. When multipart messages are in # use, @mime_version will be set to "1.0" if it is not set inside a method. - # * default_implicit_parts_order - When a message is built implicitly (i.e. multiple parts are assemble from templates + # * default_implicit_parts_order - When a message is built implicitly (i.e. multiple parts are assembled from templates # which specify the content type in their filenames) this variable controls how the parts are ordered. Defaults to # ["text/html", "text/enriched", "text/plain"]. Items that appear first in the array have higher priority in the mail client # and appear last in the mime encoded message. You can also pick a different order from inside a method with diff --git a/actionmailer/lib/action_mailer/part_container.rb b/actionmailer/lib/action_mailer/part_container.rb index 9cbdd35497bf2e0bf5bdc560b2fd307e395058f1..6199fe0b6e1648b912ae290efc098be02718903f 100644 --- a/actionmailer/lib/action_mailer/part_container.rb +++ b/actionmailer/lib/action_mailer/part_container.rb @@ -20,7 +20,7 @@ module PartContainer attr_reader :parts # Add a part to a multipart message, with the given content-type. The - # part itself is yielded to the block, so that other properties (charset, + # part itself is yielded to the block so that other properties (charset, # body, headers, etc.) can be set on it. def part(params) params = {:content_type => params} if String === params