forked from RISCfuture/autumn
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
78 lines (66 loc) · 2.09 KB
/
Rakefile
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
begin; require 'rubygems'; rescue LoadError; end
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'time'
require 'date'
require "lib/autumn"
PROJECT_SPECS = FileList[
'spec/*.rb',
'lib/skel/spec/*.rb'
]
PROJECT_MODULE = 'Autumn'
PROJECT_README = 'README.markdown'
#PROJECT_RUBYFORGE_GROUP_ID = 3034
PROJECT_COPYRIGHT = [
"# Copyright (c) #{Time.now.year} Tim Morgan [email protected]",
"# Distributed under the same terms as the Ruby license.",
"# Portions of this code are copyright ©2004 David Heinemeier Hansson; ",
"# please see libs/inheritable_attributes.rb for more information.",
"# Autumn's package tasks are copyright 2009 Michael Fellinger [email protected];",
"# Distributed under the terms of the Ramaze license"
]
# To release the monthly version do:
# $ PROJECT_VERSION=2009.03 rake release
IGNORE_FILES = [/\.gitignore/]
GEMSPEC = Gem::Specification.new{|s|
s.name = 'autumn'
s.author = "Tim 'riscfuture' Morgan"
s.summary = "Autumn is a simple and modular irc framework"
s.description = s.summary
s.email = '[email protected]'
s.homepage = 'http://github.com/bougyman/autumn'
s.platform = Gem::Platform::RUBY
s.version = (ENV['PROJECT_VERSION'] || Date.today.strftime("%Y.%m.%d"))
s.files = `git ls-files`.split("\n").sort.reject { |f| IGNORE_FILES.detect { |exp| f.match(exp) } }
s.has_rdoc = true
s.require_path = 'lib'
s.bindir = "bin"
s.executables = ["autumn"]
s.rubyforge_project = "pastr"
s.add_dependency('facets')
s.add_dependency('anise')
s.add_dependency('english')
s.add_dependency('daemons')
s.post_install_message = <<MESSAGE.strip
============================================================
Thank you for installing Autumn!
You can now create a new bot:
# autumn create yourbot
============================================================
MESSAGE
}
Dir['tasks/*.rake'].each{|f| import(f) }
task :default => [:spec]
CLEAN.include %w[
**/.*.sw?
*.gem
.config
**/*~
**/{data.db,cache.yaml}
*.yaml
pkg
rdoc
ydoc
*coverage*
]