-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
47 lines (38 loc) · 945 Bytes
/
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
gem 'rdoc'
require 'yaml'
require 'rdoc/task'
metadata = YAML.load_file('.ruby')
version = metadata['version']
# DEPRECATED: Use gh-pages instead
#Rake::Task[:publish_docs].instance_eval do
# @actions.clear
# enhance do
# sh("rsync -avc --delete doc/* [email protected]:/var/www/gforge-projects/dojo/gash/")
# end
#end
RDoc::Task.new do |rdoc|
rdoc.generator = 'hanna'
rdoc.main = 'README.rdoc'
rdoc.rdoc_dir = 'web'
rdoc.title = "Gash #{version} Documentation"
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc "build gem"
task :gem do
sh "gem build .gemspec"
end
desc "push gem to server"
task :push do
file = Dir["*-#{version}.gem"].first
abort "No gem!" unless file
sh "gem push #{file}"
end
#desc "tag version"
#task :tag do
# sh "git tag -a"
#end
desc "release package" # and tag"
task :release => [:gem, :push] do
puts "Don't forget to tag the version!"
end