olddoc.git  about / heads / tags
olddoc - old-fashioned RDoc generator(s)
blob f9f6417633c8143d8fcd819b217cb1ff7557dcb5 479 bytes (raw)
$ git show HEAD:lib/olddoc/gemspec.rb	# shows this blob on the CLI

 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

git clone https://80x24.org/olddoc.git