Skip to content

Instantly share code, notes, and snippets.

View reborg's full-sized avatar

reborg reborg

View GitHub Profile
require 'hotcocoa'
include HotCocoa
framework 'webkit'
ALL_TAGS_REPORT = File.join(
NSBundle.mainBundle.resourcePath.fileSystemRepresentation,
'resources/all_tags_report.html')
application do |app|
window(:frame => [100, 100, 500, 300], :title => "Reports") do |win|
#
# Will find the rdoc paths of your local gems and generate a html index frameset which will let you select
# the desired gem's rdoc from a dropdown navigation...
#
# Specify your local gems installation's doc directory and the desired html output path, open the generated index.html
# in the output path in your favorite browser and add a boomark.
# You might want to add the script into your path for easy access or put it in a cron job.
#
# Tested on Ubuntu 8.10, but really should work anywhere with proper gem install path set
# Working on Mac Os with custom Ruby install in /usr/local