On 3/12/07, Chad Woolley <[EMAIL PROTECTED]> wrote: > As for your problem with index_gem_repository - did you pull down the > whole "1.8" dir? For example, you should have copied > "/usr/local/lib/ruby/gems/1.8/" to some dir on your machine.
I don't think this is needed for index_gem_repository. I run my betagems directory with just a single subdirectory containing the .gem files. The index_gem_repository script generates the top level index.html, yaml and yaml.Z files as well as the quick directory and its subdirectories. Your directory structure should be like this: main_directory (this is my betagems directory here) gem (this contains all the .gem files) That should be sufficient. The index_gem_repository script should generate everything else. The main_directory is where the -d option should point. The error is occurring because File.read(file_path, 20) is returning a nil. "file_path" should refer to a .gem file at this point, so I would recommend double check that all the .gem files are readable and have good data (a zero length .gem file could possibly cause this problem). Hope this helps. -- -- Jim Weirich [EMAIL PROTECTED] http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) _______________________________________________ Rubygems-developers mailing list Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers