Sha256: 655b4cecc92fd26337d4aa93be24b49f68d16f8916f9766c5fd4b1cc7e99a742

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

# 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.exclude << ["^#{Regexp.escape(PROJ.ignore_file)}$"]

flatten_arrays = lambda do |this,os|
    os.instance_variable_get(:@table).each do |key,val|
      next if key == :dependencies \
           or key == :development_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

# EOF

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.0.4 tasks/post_load.rake
gir_ffi-0.0.3 tasks/post_load.rake
gir_ffi-0.0.2 tasks/post_load.rake
gir_ffi-0.0.1 tasks/post_load.rake