1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2010-04-02 05:43:27 +00:00
parent 88ccbf048f
commit aae8b872d5
3 changed files with 12 additions and 9 deletions

View file

@ -1,3 +1,10 @@
Fri Apr 2 14:43:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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 <nobu@ruby-lang.org> Fri Apr 2 14:26:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by

View file

@ -1,11 +1,6 @@
#!ruby # -*- mode: ruby; ruby-indent-level: 2; tab-width: 2 -*-
# vim: noet ts=2 sts=8 sw=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 'pp'
require 'pathname' require 'pathname'
require 'fileutils' require 'fileutils'

View file

@ -426,6 +426,7 @@ rescue LoadError
end end
# require built-in generators after discovery in case they've been replaced # require built-in generators after discovery in case they've been replaced
require 'rdoc/generator/darkfish' module RDoc::Generator
require 'rdoc/generator/ri' autoload :Darkfish, 'rdoc/generator/darkfish'
autoload :RI, 'rdoc/generator/ri'
end