diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-12 05:19:20 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-12 05:19:20 +0000 |
commit | c08f7b80889b531865e74bc5f573df8fa27f2088 (patch) | |
tree | ea290c015a560753b702c4680ceb95638bccaa20 | |
parent | 997f230c29aac2a29f4d0ac1e967da4813b6b2ef (diff) | |
download | ruby-c08f7b80889b531865e74bc5f573df8fa27f2088.tar.gz |
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.gemspec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.gemspec b/lib/rdoc/rdoc.gemspec index 4c7cd92549..f4adf8e87a 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" |