summaryrefslogtreecommitdiff
path: root/lib/rdoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc.rb')
-rw-r--r--lib/rdoc.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc.rb b/lib/rdoc.rb
index bdd3b06e2a..d6e26114c0 100644
--- a/lib/rdoc.rb
+++ b/lib/rdoc.rb
@@ -65,7 +65,7 @@ module RDoc
##
# RDoc version you are using
- VERSION = '4.2.0'
+ VERSION = '4.2.1'
##
# Method visibilities
@@ -110,6 +110,8 @@ module RDoc
def self.load_yaml
begin
gem 'psych'
+ rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
rescue Gem::LoadError
end