用 gem mirror 同步一个镜像。然后执行 generate_index 有问题,--debug 看主要是这两行:
Exception NoMethodError' at /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:71 - undefined method
seek' for #Zlib::GzipReader:0x0000001d4c0370
Exception NoMethodError' at /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader/entry.rb:126 - undefined method
readpartial' for #Gem::Package::TarReader::Entry:0x0000001d4c0410
狂刷~ 我看 tar_reader/entry.rb 里用的是 io.read 啊,为什么会报 readpartial 的问题?