croc インストールしたgemのドキュメントをブラウザでインクリメンタル検索

install

$ gem install croc
Successfully installed croc-1.0.0
1 gem installed
Installing ri documentation for croc-1.0.0...
Installing RDoc documentation for croc-1.0.0...

$ croc
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- hpricot (LoadError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/croc-1.0.0/lib/croc.rb:2
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/croc-1.0.0/bin/croc:3
        from /usr/bin/croc:19:in `load'
        from /usr/bin/croc:19

$ gem install hpricot
Building native extensions.  This could take a while...
Successfully installed hpricot-0.6.164
1 gem installed
Installing ri documentation for hpricot-0.6.164...
Installing RDoc documentation for hpricot-0.6.164...

$ croc
Indexing gems in /usr/lib/ruby/gems/1.8/gems
Install Ruby and Stdlib rdocs from www.ruby-doc.org? (y/n)
y
Installing http://www.ruby-doc.org/download/ruby-1.8.6-core-rdocs.tgz
Installing http://www.ruby-doc.org/download/stdlib/ruby-doc-stdlib-0.10.1.tgz
Indexed abbrev
Indexed base64
Indexed 省略
Indexed hpricot
Indexed activesupport
Bookmark file:///home/ユーザ名/.croc/index.html

/home/ユーザ名/.croc/data.jsの置換

CygwinのcrocをWindowsのブラウザで使うのでファイルパスの変更が必要
/usr/lib/ -> /E:/cygwin/lib/