1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| | # Copyright (C) 2015-2016 all contributors <olddoc-public@80x24.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
# helper methods for gemspecs
module Olddoc::Gemspec # :nodoc:
include Olddoc::Readme
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
|