blob: 0d31ffd3891c7ee3f599617e4da052c25b17a67f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# helper methods for gemspecs
module Wrongdoc::Gemspec
include Wrongdoc::Readme
include Wrongdoc::RdocOptions
def extra_rdoc_files(manifest)
File.readlines('.document').map! do |x|
x.chomp!
if File.directory?(x)
manifest.grep(%r{\A#{x}/})
elsif File.file?(x)
x
else
nil
end
end.flatten.compact
end
end
|