Skip to content

Version of PrettyDiff that generate markup that works in most email clients

License

Notifications You must be signed in to change notification settings

isabanin/mail_diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Diff

Similar to PrettyDiff (github.com/iSabanin/pretty_diff) but for email messages. Contains a lot of hours of markup tuning to make diffs viewable in almost all known browsers.

Heavily used in Beanstalk (beanstalkapp.com) application.

Installation

gem install mail_diff

Example

A quick example will tell it all:

udiff = File.read("awesome.diff")
mail_diff = MailDiff::Diff.new(udiff)
mail_diff.to_html

Wrap it with HTML, add some styles and you will get something like this:

ilya.sabanin.ru/projects/pretty_diff_example.html

Features

Same as in PrettyDiff (github.com/iSabanin/pretty_diff).

Copyright © 2011 Ilya Sabanin and Eugene Fedorenko, Wildbit; see LICENSE for details.

About

Version of PrettyDiff that generate markup that works in most email clients

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages