Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Version of PrettyDiff that generate markup that works in most email clients
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
mail_diff.gemspec

README.rdoc

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.

Something went wrong with that request. Please try again.