Thursday, December 30, 2010

Install Mail, a Ruby Gem

Installation of mail gem is simple.
It supports both 1.8.x and 1.9.1.

$ sudo gem install mail
Successfully installed mime-types-1.16
Successfully installed polyglot-0.3.1
Successfully installed treetop-1.4.9
Successfully installed i18n-0.5.0
Successfully installed mail-2.2.13
5 gems installed
Installing ri documentation for mime-types-1.16...
Installing ri documentation for polyglot-0.3.1...
Installing ri documentation for treetop-1.4.9...
Installing ri documentation for i18n-0.5.0...
Installing ri documentation for mail-2.2.13...
Installing RDoc documentation for mime-types-1.16...
Installing RDoc documentation for polyglot-0.3.1...
Installing RDoc documentation for treetop-1.4.9...
Installing RDoc documentation for i18n-0.5.0...
Installing RDoc documentation for mail-2.2.13...
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mail'
=> true
irb(main):003:0> exit
$ sudo gem1.9.1 install mail
Successfully installed mime-types-1.16
Successfully installed polyglot-0.3.1
Successfully installed treetop-1.4.9
Successfully installed i18n-0.5.0
Successfully installed mail-2.2.13
5 gems installed
Installing ri documentation for mime-types-1.16...
Installing ri documentation for polyglot-0.3.1...
Installing ri documentation for treetop-1.4.9...
Installing ri documentation for i18n-0.5.0...
Installing ri documentation for mail-2.2.13...
Installing RDoc documentation for mime-types-1.16...
Installing RDoc documentation for polyglot-0.3.1...
Installing RDoc documentation for treetop-1.4.9...
Installing RDoc documentation for i18n-0.5.0...
Installing RDoc documentation for mail-2.2.13...
$ irb1.9.1 
irb(main):001:0> require 'mail'
=> true
irb(main):002:0> 


Reference: https://github.com/mikel/mail

No comments:

Post a Comment