Sha256: c6bc13d64cad9413b83a96d5bf911d70e1ec832b63a9e2f580fe9d5ee03aea40

Contents?: true

Size: 1021 Bytes

Versions: 6

Compression:

Stored size: 1021 Bytes

Contents

# $Id$

# 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)}$"

flatten_arrays = lambda do |this,os|
    os.instance_variable_get(:@table).each do |key,val|
      next if key == :dependencies
      case val
      when Array; val.flatten!
      when OpenStruct; this.call(this,val)
      end
    end
  end
flatten_arrays.call(flatten_arrays,PROJ)

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.gem.files ||=
  if test(?f, PROJ.manifest_file)
    files = File.readlines(PROJ.manifest_file).map {|fn| fn.chomp.strip}
    files.delete ''
    files
  else [] end

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

PROJ.rdoc.main ||= PROJ.readme_file

# EOF

Version data entries

6 entries across 5 versions & 4 rubygems

Version Path
engineyard-backup-0.0.1 tasks/post_load.rake
engineyard-backup-0.0.2 tasks/post_load.rake
fearoffish-backup-0.0.1 tasks/post_load.rake
filterfish-logging-0.9.8 tasks/post_load.rake
bones-2.0.0 data/tasks/post_load.rake
bones-2.0.0 tasks/post_load.rake