From c08f7b80889b531865e74bc5f573df8fa27f2088 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 12 Sep 2017 05:19:20 +0000 Subject: 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 --- lib/rdoc/rdoc.gemspec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/rdoc') 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" -- cgit v1.2.3