README.rdoc in scambra-ar_mailer-2.1.6 vs README.rdoc in scambra-ar_mailer-2.1.7

- old
+ new

@@ -28,24 +28,22 @@ Before installing you will need to make sure the original gem is uninstalled as they can't coexist: $ sudo gem uninstall ar_mailer -Install the gem from GitHub gems server: - -First, if you haven't already: - - $ sudo gem sources -a http://gems.github.com - Then $ sudo gem install adzap-ar_mailer For Rails >= 2.1, in your environment.rb: - - config.gem "adzap-ar_mailer", :lib => 'action_mailer/ar_mailer', :source => 'http://gems.github.com' + config.gem "adzap-ar_mailer", :lib => 'action_mailer/ar_mailer' + + # or since version 2.1.7 of this gem you can now just do + + config.gem "adzap-ar_mailer" + For Rails 2.0, in an initializer file: require 'action_mailer/ar_mailer' == Usage @@ -86,13 +84,13 @@ class MyMailer < ActionMailer::Base self.delivery_method = :activerecord end This can be useful when using plugins like ExceptionNotification. Where it -might be foolish to tie the sending of the email alert to the database when the +might be foolish to tie the sending of the email alert to the database when the database might be causing the exception being raised. In this instance you could -override ExceptionNofitier delivery method to be smtp or set the other +override ExceptionNofitier delivery method to be smtp or set the other mailer classes to use ARMailer explicitly. Then to run it: $ ar_sendmail @@ -114,11 +112,11 @@ If you are using Ruby >= 1.8.7, TLS will be enabled automatically if your SMTP server supports it. If you do not want it to automatically enabled then set the :tls option to false in your smtp_settings. If you are on Ruby <= 1.8.6, then the TLS patch included in this plugin will -be loaded, so you don't need another TLS plugin to add the capability. This +be loaded, so you don't need another TLS plugin to add the capability. This patch allows you to explicit set if the server supports TLS by setting the :tls option to true in your smtp_settings. === Help @@ -127,13 +125,13 @@ NOTE: You may need to delete an smtp_tls.rb file if you have one lying around. ar_mailer supplies it own. == Run as a service (init.d/rc.d scripts) -For Linux both script and demo config files are in share/linux. -See ar_sendmail.conf for setting up your config. Copy the ar_sendmail file +For Linux both script and demo config files are in share/linux. +See ar_sendmail.conf for setting up your config. Copy the ar_sendmail file to /etc/init.d/ and make it executable. Then for Debian based distros run -'sudo update-rc.d ar_sendmail defaults' and it should work. Make sure you have +'sudo update-rc.d ar_sendmail defaults' and it should work. Make sure you have the config file /etc/ar_sendmail.conf in place before starting. For FreeBSD or NetBSD script is share/bsd/ar_sendmail. This is old and does not support the config file unless someone wants to submit a patch.