From aae8b872d55d3d61bf32d7e3a33f32c117e8ee55 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Apr 2010 05:43:27 +0000 Subject: [PATCH] * lib/rdoc/rdoc.rb (RDoc::Generator): defer by autoload. * lib/rdoc/generator/darkfish.rb: use normal library instead of gem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ lib/rdoc/generator/darkfish.rb | 7 +------ lib/rdoc/rdoc.rb | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11e2e63ea1..434ff531e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Apr 2 14:43:18 2010 Nobuyoshi Nakada + + * lib/rdoc/rdoc.rb (RDoc::Generator): defer by autoload. + + * lib/rdoc/generator/darkfish.rb: use normal library instead of + gem. + Fri Apr 2 14:26:26 2010 Nobuyoshi Nakada * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by diff --git a/lib/rdoc/generator/darkfish.rb b/lib/rdoc/generator/darkfish.rb index a25475d39f..51339ebce3 100644 --- a/lib/rdoc/generator/darkfish.rb +++ b/lib/rdoc/generator/darkfish.rb @@ -1,11 +1,6 @@ -#!ruby +# -*- mode: ruby; ruby-indent-level: 2; tab-width: 2 -*- # vim: noet ts=2 sts=8 sw=2 -unless File.exist? File.expand_path('../.svn', __FILE__) then - require 'rubygems' - gem 'rdoc', '>= 2.4' -end - require 'pp' require 'pathname' require 'fileutils' diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index b2c7d55b77..bdd9dc8858 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -426,6 +426,7 @@ rescue LoadError end # require built-in generators after discovery in case they've been replaced -require 'rdoc/generator/darkfish' -require 'rdoc/generator/ri' - +module RDoc::Generator + autoload :Darkfish, 'rdoc/generator/darkfish' + autoload :RI, 'rdoc/generator/ri' +end