public
Description: Aims to extend Ruby standard library, providing some useful tools that's not existed in the standard library, especially for functional programming.
Homepage: http://rubyforge.org/projects/ludy
Clone URL: git://github.com/godfat/ludy.git
godfat (author)
Sat Oct 11 08:25:35 -0700 2008
commit  2400d1dc84e138fa0d3f292e2cf0f82a3dc4821d
tree    a2619df93757797807d12cb7f4d87d2e9e4ef9d2
parent  71ee19235946c169616dc0e51a96fc4778fd06e5
ludy / Rakefile
100644 62 lines (50 sloc) 1.836 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# encoding: utf-8
# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.
load 'tasks/setup.rb'
ensure_in_path 'lib'
 
require 'ludy'
require 'ludy/tasks'
 
CLEAN.include Dir['**/*.rbc']
 
task :default do
  Rake.application.options.show_task_pattern = /./
  Rake.application.display_tasks_and_comments
end
 
namespace :gem do
  desc 'create ludy.gemspec'
  task 'gemspec' do
    puts 'rake gem:debug > ludy.gemspec'
    File.open('ludy.gemspec', 'w'){|spec| spec << `rake gem:debug`.sub(/.*/, '')}
  end
end
 
namespace :git do
  desc 'push to rubyforge and github'
  task 'push' do
    sh 'git push rubyforge master'
    puts
    sh 'git push github master'
  end
end
 
PROJ.name = 'ludy'
PROJ.authors = 'Lin Jen-Shin (a.k.a. godfat 真常)'
PROJ.email = 'godfat (XD) godfat.org'
PROJ.url = 'http://ludy.rubyforge.org/'
PROJ.description = PROJ.summary = paragraphs_of('README', 'description').join("\n\n")
PROJ.changes = paragraphs_of('CHANGES', 0..1).join("\n\n")
PROJ.rubyforge.name = 'ludy'
PROJ.version = paragraphs_of('README', 0).first.split("\n").first.split(' ').last
 
PROJ.gem.executables = ['bin/ludy']
# PROJ.gem.files = []
 
PROJ.manifest_file = 'Manifest'
PROJ.exclude += ['Manifest', '^tmp', 'tmp$', '^pkg', '.gitignore', '^ann-']
 
PROJ.readme_file = 'README'
PROJ.rdoc.main = 'README'
PROJ.rdoc.exclude << 'Manifest' << 'Rakefile' << 'tmp$' << '^tmp'
PROJ.rdoc.include << '\w+'
PROJ.rdoc.opts << '--diagram' if !WIN32 and `which dot` =~ %r/\/dot/
PROJ.rdoc.opts += ['--charset=utf-8', '--inline-source',
                   '--line-numbers', '--promiscuous']
 
PROJ.spec.opts << '--color'
 
PROJ.ann.file = "ann-pagify-#{PROJ.version}"
PROJ.ann.paragraphs.concat %w[LINKS SYNOPSIS REQUIREMENTS INSTALL LICENSE]