summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-31 00:19:00 (GMT)
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-31 00:19:00 (GMT)
commit89b601d176a64f1293a3d3b5195b6735cbf880af (patch)
treec7f148e8cf8576202220ce567dc8b9a698e4b114 /bin
parent4ac69a57b5e8587a321b052212ae5b9bedeafe55 (diff)
* lib/rdoc: Update to RDoc 3.9. Fixed `ri []`, stopdoc creating an
object reference, nodoc for class aliases, verbatim === lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rdoc7
-rwxr-xr-xbin/ri7
2 files changed, 14 insertions, 0 deletions
diff --git a/bin/rdoc b/bin/rdoc
index 8fafd01..64601a8 100755
--- a/bin/rdoc
+++ b/bin/rdoc
@@ -8,6 +8,13 @@
#
# $Revision$
+begin
+ gem 'rdoc'
+rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
+rescue Gem::LoadError
+end
+
require 'rdoc/rdoc'
begin
diff --git a/bin/ri b/bin/ri
index 2435574..7fbed0c 100755
--- a/bin/ri
+++ b/bin/ri
@@ -1,5 +1,12 @@
#!/usr/bin/env ruby
+begin
+ gem 'rdoc'
+rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
+rescue Gem::LoadError
+end
+
require 'rdoc/ri/driver'
RDoc::RI::Driver.run ARGV