[mocha-developer] mocha tarballs don't uncompress cleanly

James Mead jamesmead at reevoo.com
Mon Sep 3 07:29:54 EDT 2007


Hi Antonio,

Did you ever get any further with this...?

I'm sorry - I've been busy at work, then ill, then on holiday.

I can only assume this means the Rake::GemPackageTask is to blame.  
I'm using version 0.7.3 of the Rake gem on a PPC Mac with OSX  
10.4.10. I wonder if it's worth trying to set up a dummy (virtually  
empty) project and trying to create a tarball using  
Rake::GemPackageTask and see if we can reproduce the problem...?

Cheers, James.


On 1 Aug 2007, at 22:17, Antonio Terceiro wrote:

> James Mead escreveu isso aí:
>> I think you're in luck - I'm pretty sure this is the one!
>
> Aha, just as I as I suspected: the tarball on rubyforge is different
> from the one you have.
>
> -----------------------------8<------------------------------------
> terceiro at sede:~/tmp$ ls -l
> total 36
> -rw------- 1 terceiro terceiro 33766 2007-08-01 17:06 mocha-0.5.3.tgz
> terceiro at sede:~/tmp$ wget -O mocha-rubyforge-0.5.3.tgz http:// 
> rubyforge.org/frs/download.php/23330/mocha-0.5.3.tgz
> --17:06:45--  http://rubyforge.org/frs/download.php/23330/ 
> mocha-0.5.3.tgz
>            => `mocha-rubyforge-0.5.3.tgz'
> Resolvendo rubyforge.org... 205.234.109.18
> Connecting to rubyforge.org|205.234.109.18|:80... conectado!
> HTTP requisição enviada, aguardando resposta... 302 Found
> Localização: http://rubyforge.rubyuser.de/mocha/mocha-0.5.3.tgz  
> [seguinte]
> --17:06:46--  http://rubyforge.rubyuser.de/mocha/mocha-0.5.3.tgz
>            => `mocha-rubyforge-0.5.3.tgz'
> Resolvendo rubyforge.rubyuser.de... 80.237.222.133
> Connecting to rubyforge.rubyuser.de|80.237.222.133|:80... conectado!
> HTTP requisição enviada, aguardando resposta... 200 OK
> Tamanho: 33,768 (33K) [application/x-tgz]
>
> 100%[====================================>] 33,768        34.00K/s
>
> 17:06:48 (33.94 KB/s) - `mocha-rubyforge-0.5.3.tgz' saved  
> [33768/33768]
>
> terceiro at sede:~/tmp$ hexdump mocha-0.5.3.tgz > mocha-0.5.3.tgz.hex
> terceiro at sede:~/tmp$ hexdump mocha-rubyforge-0.5.3.tgz > mocha- 
> rubyforge-0.5.3.tgz.hex
> terceiro at sede:~/tmp$ diff -u mocha-0.5.3.tgz.hex mocha- 
> rubyforge-0.5.3.tgz.hex
> --- mocha-0.5.3.tgz.hex 2007-08-01 17:07:00.000000000 -0300
> +++ mocha-rubyforge-0.5.3.tgz.hex       2007-08-01  
> 17:07:08.000000000 -0300
> @@ -2108,5 +2108,5 @@
>  00083b0 ce9a 8e0e b77f fce9 0ef9 e709 6f21 15e6
>  00083c0 c4a8 5444 2a2d 6a59 9695 f2cf 3e59 67cb
>  00083d0 2cf9 e59f 7cb3 cf96 99f2 f3ff 03ff 2077
> -00083e0 13ff e800 0003
> -00083e6
> +00083e0 13ff e800 0003 0a0d
> +00083e8
> -----------------------------8<------------------------------------
>
> They are almost identical, but there is an extra newline byte pair  
> (0a0d
> = "\n\r") at the end of the file ... I checked and all the other files
> (*.zip and .gem) and they also have a 0a0d at their ends.
>
> I don't know what could be adding this extra newline ... :-(
>
> -- 
> Antonio Terceiro <terceiro at softwarelivre.org>
> http://people.softwarelivre.org/~terceiro/
> GnuPG ID: 0F9CB28F
>
>
>



More information about the mocha-developer mailing list