Sha256: f6501c5bb3080026961ce16e7cffe09d060504c4030113ae37af376c5ad444db

Contents?: true

Size: 479 Bytes

Versions: 10

Compression:

Stored size: 479 Bytes

Contents

# 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
olddoc-1.9.0 lib/olddoc/gemspec.rb
olddoc-1.8.0 lib/olddoc/gemspec.rb
olddoc-1.7.1 lib/olddoc/gemspec.rb
olddoc-1.7.0 lib/olddoc/gemspec.rb
olddoc-1.6.0 lib/olddoc/gemspec.rb
olddoc-1.5.1 lib/olddoc/gemspec.rb
olddoc-1.5.0 lib/olddoc/gemspec.rb
olddoc-1.4.0 lib/olddoc/gemspec.rb
olddoc-1.3.0 lib/olddoc/gemspec.rb
olddoc-1.2.0 lib/olddoc/gemspec.rb