HTMLDiff for jruby and ruby

V

Virendra Negi

hello there

from past few days iam trying to find out a gem that can compare the
difference between two html file. i have tried to install
myobie-htmldiff gem but the install didnt work out properly an it gave
me error
ERROR: could not find gem myobie-htmldiff locally or in a repository

Note:- i have followed all the steps that were mention in the github
myobie-htmldiff home page

i have also tried gem xhtmldiff but its seem to give me weird error
while taking the difference between the two html file
like
when i tried this
XHTMLDiff.diff(first_file,second_file)

ArgumentError: both arguments must be equal or both be elements. a is
String and b is String

i wish somebody out there can help me out

Thank anyway
 
B

Brian Candler

Virendra said:
from past few days iam trying to find out a gem that can compare the
difference between two html file. i have tried to install
myobie-htmldiff gem but the install didnt work out properly an it gave
me error
ERROR: could not find gem myobie-htmldiff locally or in a repository

Looks like github hasn't built the gem. There was a bug which was
recently fixed which was preventing gems being built. You can ask the
author to bump the gem version to force a rebuild, or you can build and
install the gem yourself:

git clone git://github.com/myobie/htmldiff.git
cd htmldiff
gem build htmldiff.gemspec
sudo gem install htmldiff-0.0.1.gem

If you don't have git available, then instead of 'git clone' just
download a tar or zip of the project (click the 'download' link on the
github page)
 
V

Virendra Negi

Brian said:
Looks like github hasn't built the gem. There was a bug which was
recently fixed which was preventing gems being built. You can ask the
author to bump the gem version to force a rebuild, or you can build and
install the gem yourself:

git clone git://github.com/myobie/htmldiff.git
cd htmldiff
gem build htmldiff.gemspec
sudo gem install htmldiff-0.0.1.gem

If you don't have git available, then instead of 'git clone' just
download a tar or zip of the project (click the 'download' link on the
github page)

i followed your step but when iam trying to do require "htmldiff" its
give me error like that says

' LoadError: no such file to load -- htmldiff'
 
P

Pieter V.

This might seem oddly self-serving, but you might look into the Differ gem.

http://github.com/pvande/differ

While not designed to diff HTML specifically, that's something that it
could most probably be set up to do. Consider giving it a try.

(Full disclosure: Yeah, it's mine.)
 
M

Martin DeMello

This might seem oddly self-serving, but you might look into the Differ ge= m.

http://github.com/pvande/differ

While not designed to diff HTML specifically, that's something that it
could most probably be set up to do. =A0Consider giving it a try.

That's a string differ. A proper html differ needs to be aware of the
tree structure - it's a different problem.

martin
 
P

Pieter V.

Pardon my confusion; htmldiff appears to be a string differ (with HTML
output) as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,173
Messages
2,570,937
Members
47,481
Latest member
ElviraDoug

Latest Threads

Top