aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-08-14 18:59:08 +0100
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-08-14 19:00:49 +0100
commit13ccc6351aaf5257ce5cd55327701583eea686ae (patch)
treef64f1c321929a0395aa5c665846c638439689090
parent22f82c679d12c2a00bed70664a112a5870fa9570 (diff)
downloadpaludis-13ccc6351aaf5257ce5cd55327701583eea686ae.tar.gz
paludis-13ccc6351aaf5257ce5cd55327701583eea686ae.tar.xz
Fix ruby doc
-rw-r--r--doc/api/ruby/create_ruby_doc.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/ruby/create_ruby_doc.rb b/doc/api/ruby/create_ruby_doc.rb
index 6e48264..670decb 100644
--- a/doc/api/ruby/create_ruby_doc.rb
+++ b/doc/api/ruby/create_ruby_doc.rb
@@ -1,11 +1,13 @@
#!/usr/bin/env ruby
# vim: set sw=4 sts=4 et tw=80 :
+require 'rubygems'
require 'rdoc/rdoc'
gps = Gem::GemPathSearcher.new;
allison_spec = gps.find('allison.rb');
-allison = "#{Gem::dir}/gems/#{allison_spec.name}-#{allison_spec.version}/lib/allison.rb"
+
+allison = "#{allison_spec.loaded_from.gsub('specifications','gems').gsub('.gemspec','')}/lib/allison.rb"
module RDoc