Project

mail_diff

0.0
No commit activity in last 3 years
No release in over 3 years
Version of PrettyDiff that generate markup that works in most email clients
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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.