module Wrongdoc::Gemspec

helper methods for gemspecs

Public Instance Methods

extra_rdoc_files(manifest) click to toggle source
# File lib/wrongdoc/gemspec.rb, line 6
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