public
Description: a tls support gem for older ruby versions. can be used to add tls support (i.g. GMail) to Active Record
Homepage: http://simplificator.com
Clone URL: git://github.com/simplificator/tls-support.git
name age message
file .cvsignore Thu Aug 21 23:22:28 -0700 2008 created [pascalbetz]
file .gitignore Thu Aug 21 23:22:28 -0700 2008 created [pascalbetz]
file CHANGES Thu Aug 21 23:22:28 -0700 2008 created [pascalbetz]
file README Mon Aug 25 23:56:15 -0700 2008 removed instructions which do not apply to this... [simplificator]
file Rakefile Wed Sep 03 02:20:30 -0700 2008 added a rakefile [pascalbetz]
file init.rb Thu Aug 21 23:22:28 -0700 2008 created [pascalbetz]
directory lib/ Wed Sep 17 08:38:16 -0700 2008 ruby 1.8.7 compatiblility [panter]
file tls-support.gemspec Wed Sep 17 08:38:16 -0700 2008 ruby 1.8.7 compatiblility [panter]
README
== tls-support
= where does it come from ?

We did not write this code. We just gem-ified it!

We could not find out who's the original author of this piece of code.
Looks like everyone copied from everyone, pasted some code here and there and so on.
Here are some places where you can find this code (or similar)
 * http://www.ruby-forum.com/topic/160724
 * http://brunomiranda.com/past/2007/11/5/in_need_of_an_smtp/
 * http://groups.google.co.jp/group/rubyonrails-talk/browse_thread/thread/ab5b79feea255f5b
 * http://pastie.org/pastes/255293/edit

If you are the original author, please contact us so we can add proper credits (or remove the gem or ...)

= what is it
TLS Support for Ruby. We use it to connect to GMail from ActionMailer.


= Installation
sudo gem update --system (in case you are not yet on version 1.2.0 or higher)
sudo gem sources -a http://gems.github.com (only once)
sudo gem install simplificator-tls-support


= Usage
# require the libs
just require the gem

# Sample ActionMailer Config

DEFAULT_FROM_ADDRESS = 'Simplificator Notifier <notifier@simplificator.com>'
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address => 'smtp.gmail.com',
  :port => 587,
  :authentication => :plain,
  :user_name => 'notifier@simplificator.com',
  :password => 'XYZXYZXYZ'
}
# You can use these settings to create URLS with the rails helpers in your mails
ActionMailer::Base.default_url_options[:host] = 'localhost'
ActionMailer::Base.default_url_options[:port] = '3000'