forked from jnunemaker/happymapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
43 lines (37 loc) · 1.19 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
ProjectName = 'happymapper'
WebsitePath = "[email protected]:/var/www/gforge-projects/#{ProjectName}"
require 'rubygems'
require 'rake'
require 'echoe'
require 'spec/rake/spectask'
require "lib/#{ProjectName}/version"
Echoe.new(ProjectName, HappyMapper::Version) do |p|
p.description = "object to xml mapping library"
p.install_message = "May you have many happy mappings!"
p.url = "http://#{ProjectName}.rubyforge.org"
p.author = "John Nunemaker"
p.email = "[email protected]"
p.extra_deps = [['libxml-ruby', '= 1.1.3']]
p.need_tar_gz = false
p.docs_host = WebsitePath
end
desc 'Upload website files to rubyforge'
task :website do
sh %{rsync -av website/ #{WebsitePath}}
Rake::Task['website_docs'].invoke
end
task :website_docs do
Rake::Task['redocs'].invoke
sh %{rsync -av doc/ #{WebsitePath}/docs}
end
desc 'Preps the gem for a new release'
task :prepare do
%w[manifest build_gemspec].each do |task|
Rake::Task[task].invoke
end
end
Rake::Task[:default].prerequisites.clear
task :default => :spec
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
end