Ruwiki gem install problems

Hi!

I was trying to install ruwiki via gem.

C:\temp\rubygems\rubygems-0.8.1>gem install ruwiki
Attempting local installation of 'ruwiki'
Local gem file not found: ruwiki*.gem
Attempting remote installation of 'ruwiki'
ERROR: While executing gem ... (Zlib::BufError)
     buffer error

C:\temp\rubygems\rubygems-0.8.1>gem --version
0.8.1

C:\temp\rubygems\rubygems-0.8.1>ruby -v
ruby 1.8.2 (2004-07-16) [i386-mswin32]

Thinking that it might be some broken dowlnoad issue or something, I downloaded the file myself and tried to install it locally.

C:\temp>gem install -l ruwiki-0.9.0.gem
Attempting local installation of 'ruwiki-0.9.0.gem'
ERROR: Error installing gem ruwiki-0.9.0.gem[.gem]: buffer error

Strangely enough I can manually unpack the .gem file using shareware WinRAR just fine. The included .gz files don't seem corrupt, either; I could unpack them.

Then I went for the manual installation, which worked fine, except one failure in one of archive-tar-minitars unit tests

C:\temp\archive-tar-minitar-0.5.1>install
Checking for test cases:

Loaded suite Unnamed TestSuite
Started
.F...................
Finished in 0.406 seconds.

   1) Failure:
test_each_works(TC_Tar__Input)
     [./tests/tc_tar.rb:509:in `test_each_works'
      ./tests/tc_tar.rb:504:in `each_with_index'
      ./tests/tc_tar.rb:504:in `each'
      ./lib/archive/tar/minitar.rb:679:in `each_entry'
      ./lib/archive/tar/minitar.rb:605:in `loop'
      ./lib/archive/tar/minitar.rb:605:in `each_entry'
      ./lib/archive/tar/minitar.rb:587:in `each'
      ./lib/archive/tar/minitar.rb:679:in `each'
      ./tests/tc_tar.rb:504:in `each_with_index'
      ./tests/tc_tar.rb:504:in `test_each_works'
      ./tests/tc_tar.rb:502:in `open'
      ./tests/tc_tar.rb:502:in `test_each_works']:
<1072911600> expected but was
<1072933200>.

21 tests, 348 assertions, 1 failures, 0 errors

                             minitar:
                          minitar.rb: mmc........mccccccc..cc..........cm...c....
..............c.......c....c.....
                          command.rb: mc........................ccccc...........c
...c....c....c......
                              README:
                           ChangeLog:
                             Install:
Generating HTML...

Files: 6
Classes: 25
Modules: 5
Methods: 109
Elapsed: 4.563s
install -c -m 0755 ./_tmp_wrapper c:/ruby/bin/minitar.bat
install -c -m 0755 ./_tmp c:/ruby/bin/minitar

ruwiki seems to work fine though.

Thanks a lot!

Henrik

/me promises not to ask for unreasonable support, honestly :wink:

Hi!

I was trying to install ruwiki via gem.

Bizarre. I get this as well, and I experience the same as you with
respect to being able to access the package via alternative tools,
including Archive::Tar::Minitar directly, so this appears to be a bug
with RubyGems, but I don't know exactly what the problem is. I will be
taking it up with the RubyGems developers directly. Alternatively, it
could be something to do with differing versions of Ruby on Windows. I
don't recall which version of the Ruby Windows installer I have on my
main Ruwiki development machine and the machine I just tested on (the
one at work).

Can anyone else verify this?

However, in researching this issue, I discovered an issue that I have
to fix (something in the Google redirect doesn't work as it should),
so I will be releasing 0.9.1 in the next two days (it may not be today
because I have not had nearly enough sleep, and I'm not sure where the
gem problem originates from).

In the meantime, change line 83 of lib/ruwiki/wiki/tokens/00default.rb to read:
    "Redirect Notice;

Apparently, Google's redirector doesn't recognise the ; form of CGI
parameter escaping, so you must use the older &amp; form. Mauricio, if
you could update this on the RPA distribution, that would be fine.

C:\temp\archive-tar-minitar-0.5.1>install
Checking for test cases:

Loaded suite Unnamed TestSuite
Started
.F...................
Finished in 0.406 seconds.

   1) Failure:
test_each_works(TC_Tar__Input)
     [./tests/tc_tar.rb:509:in `test_each_works'
      ./tests/tc_tar.rb:504:in `each_with_index'
      ./tests/tc_tar.rb:504:in `each'
      ./lib/archive/tar/minitar.rb:679:in `each_entry'
      ./lib/archive/tar/minitar.rb:605:in `loop'
      ./lib/archive/tar/minitar.rb:605:in `each_entry'
      ./lib/archive/tar/minitar.rb:587:in `each'
      ./lib/archive/tar/minitar.rb:679:in `each'
      ./tests/tc_tar.rb:504:in `each_with_index'
      ./tests/tc_tar.rb:504:in `test_each_works'
      ./tests/tc_tar.rb:502:in `open'
      ./tests/tc_tar.rb:502:in `test_each_works']:
<1072911600> expected but was
<1072933200>.

I could not reproduce this.

Ruwiki doesn't directly need Archive::Tar::Minitar; it is mostly
needed for support for RubyGem and RPA installations (e.g., the ruwiki
command).

-austin

···

On Mon, 29 Nov 2004 19:53:37 +0900, Henrik Horneber <ryco@gmx.net> wrote:
--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca

Fixed in ruwiki 0.9.0-8.

name: ruwiki
version: 0.9.0-8
classification: Top.Application
requires: diff-lcs archive-tar-minitar
description: Simple, extensible Wiki engine with CGI and WEBrick interfaces.

Ruwiki is a simple, extensible Wiki-clone written in Ruby, supporting
CGI and WEBrick interfaces, templates, CSS formatting, namespaces, and
internationalisation.

rpa install ruwiki

should do.

···

On Mon, Nov 29, 2004 at 10:39:50PM +0900, Austin Ziegler wrote:

In the meantime, change line 83 of lib/ruwiki/wiki/tokens/00default.rb to read:
    "Redirect Notice;

Apparently, Google's redirector doesn't recognise the ; form of CGI
parameter escaping, so you must use the older &amp; form. Mauricio, if
you could update this on the RPA distribution, that would be fine.

--
Hassle-free packages for Ruby?
RPA is available from http://www.rubyarchive.org/