Created
December 23, 2016 11:55
-
-
Save opensussex/f72d7ccaf305b41410428a1401704e8c to your computer and use it in GitHub Desktop.
a very basic example of using the Diffy library to do a diff on two files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ('diffy') | |
#uses the Diffy library - https://github.com/samg/diffy | |
file_1, file_2 = ARGV; | |
file_1_text = open(file_1) | |
file_2_text = open(file_2) | |
puts Diffy::Diff.new(file_1_text.read, file_2_text.read) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment