warehouse feature question

Bogdan Gaza's Avatar

Bogdan Gaza

11 Jul, 2007 11:58 AM

Hello, Ive seen your new application Warehouse its really great. But as a rails developer i have a question about a feature that would like to implement myself in my app. Its about the comparison of two version (of the file) with showing the differences between them.

Can you please tell me how did you do that?

I want to build something similar to a writeboard(http://www.writeboard.com/), i used acts_as_versioned but i could not find a way to show the differences between two versions.

Thank you very much and hope to hear from you again. Bogdan Gaza - Romania

  1. 1 Posted by Rick on 11 Jul, 2007 01:23 PM

    Rick's Avatar

    Buy the app and find out :) Seriously though, the subversion API takes care of that for me, Warehouse just formats it to add color.

    i2 (the rails wiki) uses the html_diff library to show colorized diffs between two blobs of text.

  2. 2 Posted by Adam on 15 Jul, 2007 10:24 PM

    Adam's Avatar

    Not the same as what is in warehouse but you could use HTMLDiff (http://dev.rubyonrails.org/browser/tools/i2/branches/alexey/lib/diff.rb)

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac