[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

HTMLDiff for jruby and ruby

Virendra Negi

5/22/2009 9:18:00 AM

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
--
Posted via http://www.ruby-....

5 Answers

Brian Candler

5/22/2009 10:02:00 AM

0

Virendra Negi wrote:
> 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)
--
Posted via http://www.ruby-....

Virendra Negi

5/22/2009 10:26:00 AM

0

Brian Candler wrote:
> Virendra Negi wrote:
>> 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)

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'
--
Posted via http://www.ruby-....

Pieter V.

5/22/2009 2:32:00 PM

0

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

http://github.com/pva...

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.)

On Fri, May 22, 2009 at 3:25 AM, Virendra Negi
<virendra.negi@paladion.net> wrote:
> Brian Candler wrote:
>> Virendra Negi wrote:
>>> 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: =C2=A0could not find gem myobie-htmldiff locally or in a reposit=
ory
>>
>> 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:
>>
>> =C2=A0 git clone git://github.com/myobie/htmldiff.git
>> =C2=A0 cd htmldiff
>> =C2=A0 gem build htmldiff.gemspec
>> =C2=A0 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'
> --
> Posted via http://www.ruby-....
>
>

Martin DeMello

5/22/2009 3:09:00 PM

0

On Fri, May 22, 2009 at 8:02 PM, Pieter V. <pvande@gmail.com> wrote:
> This might seem oddly self-serving, but you might look into the Differ ge=
m.
>
> http://github.com/pva...
>
> 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

Pieter V.

5/22/2009 3:31:00 PM

0

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

On Fri, May 22, 2009 at 8:08 AM, Martin DeMello <martindemello@gmail.com> w=
rote:
> On Fri, May 22, 2009 at 8:02 PM, Pieter V. <pvande@gmail.com> wrote:
>> This might seem oddly self-serving, but you might look into the Differ g=
em.
>>
>> http://github.com/pva...
>>
>> While not designed to diff HTML specifically, that's something that it
>> could most probably be set up to do. =C2=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
>
>