forked from jmettraux/ruote
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
101 lines (73 loc) · 2.24 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
require 'lib/ruote/version.rb'
require 'rubygems'
require 'rake'
#
# clean
require 'rake/clean'
CLEAN.include('pkg', 'rdoc', 'ruote_work', 'ruote_data', 'logs')
task :default => [ :clean ]
#
# jeweler tasks
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.version = Ruote::VERSION
gem.name = 'ruote'
gem.summary = 'an open source ruby workflow engine'
gem.description = %{
ruote is an open source ruby workflow engine.
}
gem.email = '[email protected]'
gem.homepage = 'http://ruote.rubyforge.org'
gem.authors = [ 'John Mettraux', 'Kenneth Kalmer', 'Torsten Schoenebaum' ]
gem.rubyforge_project = 'ruote'
gem.test_file = 'test/test.rb'
gem.add_dependency 'rufus-json', '>= 0.2.5'
gem.add_dependency 'rufus-cloche', '>= 0.1.20'
gem.add_dependency 'rufus-dollar'
gem.add_dependency 'rufus-mnemo', '>= 1.1.0'
gem.add_dependency 'rufus-scheduler', '>= 2.0.5'
gem.add_dependency 'rufus-treechecker', '>= 1.0.3'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'yard'
gem.add_development_dependency 'json'
gem.add_development_dependency 'builder'
gem.add_development_dependency 'mailtrap'
gem.add_development_dependency 'jeweler'
# Gem::Specification http://www.rubygems.org/read/chapter/20
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
end
#
# rdoc
#begin
# require 'yard'
# YARD::Rake::YardocTask.new do |doc|
# doc.options = [ '-o', 'rdoc', '--title', "ruote #{Ruote::VERSION}" ]
# end
#rescue LoadError
# task :yard do
# abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard'
# end
#end
#
# make sure to have rdoc 2.5.x to run that
#
require 'rake/rdoctask'
Rake::RDocTask.new do |rd|
rd.main = 'README.rdoc'
rd.rdoc_dir = 'rdoc'
rd.rdoc_files.include(
'README.rdoc', 'CHANGELOG.txt', 'CREDITS.txt', 'lib/**/*.rb')
rd.title = "ruote #{Ruote::VERSION}"
end
#
# upload_rdoc
desc 'Upload the documentation to rubyforge'
task :upload_rdoc => [ :clean, :rdoc ] do
account = '[email protected]'
webdir = '/var/www/gforge-projects/ruote'
sh "rsync -azv -e ssh rdoc #{account}:#{webdir}/"
end