summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-12 05:19:20 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-12 05:19:20 +0000
commitc08f7b80889b531865e74bc5f573df8fa27f2088 (patch)
treeea290c015a560753b702c4680ceb95638bccaa20
parent997f230c29aac2a29f4d0ac1e967da4813b6b2ef (diff)
Fixed install error with rdoc.gemspec
"lib/rdoc" is only workds on rdoc repository structure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rdoc/rdoc.gemspec8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.gemspec b/lib/rdoc/rdoc.gemspec
index 4c7cd92..f4adf8e 100644
--- a/lib/rdoc/rdoc.gemspec
+++ b/lib/rdoc/rdoc.gemspec
@@ -1,4 +1,10 @@
-require_relative "lib/rdoc"
+# -*- encoding: utf-8 -*-
+begin
+ require_relative "lib/rdoc"
+rescue LoadError
+ # for Ruby repository
+ require_relative "../rdoc"
+end
Gem::Specification.new do |s|
s.name = "rdoc"