Sha256: 1e5232baf129762f8773138a5b293e5d64a095b5e018acc493277980dcf01812

Contents?: true

Size: 861 Bytes

Versions: 1

Compression:

Stored size: 861 Bytes

Contents

# $Id: post_load.rake 105 2008-02-26 04:43:21Z tim_pease $

# This file does not define any rake tasks. It is used to load some project
# settings if they are not defined by the user.

PROJ.rdoc_exclude << "^#{Regexp.escape(PROJ.manifest_file)}$"
PROJ.exclude << "^#{Regexp.escape(PROJ.ann_file)}$"

PROJ.exclude.flatten!
PROJ.rdoc_exclude.flatten!
PROJ.annotation_exclude.flatten!

PROJ.changes ||= paragraphs_of(PROJ.history_file, 0..1).join("\n\n")

PROJ.description ||= paragraphs_of(PROJ.readme_file, 'description').join("\n\n")

PROJ.summary ||= PROJ.description.split('.').first

PROJ.files ||=
  if test(?f, PROJ.manifest_file)
    files = File.readlines(PROJ.manifest_file).map {|fn| fn.chomp.strip}
    files.delete ''
    files
  else [] end

PROJ.executables ||= PROJ.files.find_all {|fn| fn =~ %r/^bin/}

PROJ.rdoc_main ||= PROJ.readme_file

# EOF

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logging-0.7.1 tasks/post_load.rake