forked from alexvollmer/pci4r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
41 lines (36 loc) · 1.27 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
require "rubygems"
require "hoe"
require "./lib/pci4r.rb"
Hoe.new("pci4r", Pci4R::VERSION) do |p|
p.name = "pci4r"
p.developer 'Alex Vollmer', '[email protected]'
p.developer 'Mike Mondragon', '[email protected]'
p.developer 'Jesse Cook', '[email protected]'
p.developer 'Sandro Paganotti', '[email protected]'
p.summary = "A library of concepts covered in Toby Segaran's 'Programming Collective Intelligence'"
p.url = "http://github.com/alexvollmer/pci4r/tree/master"
p.extra_deps = [
['activerecord', '>=2.0.0'],
['sqlite3-ruby', '>=1.2.1']
]
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new('spec_with_rcov') do |t|
FileUtils.rm_rf('coverage')
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--html', '--xrefs', '--include lib', "--exclude spec,gems"]
t.verbose = true
end
WEB_HOME = 'pci4r.rubyforge.org:/var/www/gforge-projects/pci4r'
desc "Pull down website files to local 'website' directory"
task :pull_web do
%x(rsync --verbose --recursive #{WEB_HOME}/ website)
end
desc "Push 'website' files to pci4r.rubyforge.org website."
task :push_web do
%x(rsync --verbose --recursive website/ #{WEB_HOME})
end