Skip to content

Commit 1ba4a5a

Browse files
committed
Fixed installation error on Ruby repository.
1 parent 2412cd4 commit 1ba4a5a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rdoc.gemspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
require_relative "lib/rdoc"
1+
# -*- encoding: utf-8 -*-
2+
begin
3+
require_relative "lib/rdoc"
4+
rescue LoadError
5+
# for Ruby repository
6+
require_relative "../rdoc"
7+
end
28

39
Gem::Specification.new do |s|
410
s.name = "rdoc"

0 commit comments

Comments
 (0)