a tls support gem for older ruby versions. can be used to add tls support (i.g. GMail) to Active Record
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.cvsignore
.gitignore
CHANGES
README
Rakefile
init.rb
tls-support.gemspec

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'