forked from jnunemaker/scrobbler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
36 lines (31 loc) · 1016 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
# Rakefile
require 'rubygems'
require 'rake'
require 'echoe'
require 'lib/scrobbler/version'
WEBSITE_PATH = '[email protected]:/var/www/gforge-projects/scrobbler'
Echoe.new('scrobbler', Scrobbler::Version) do |p|
p.description = "wrapper for audioscrobbler (last.fm) web services"
p.url = "http://scrobbler.rubyforge.org"
p.author = ['John Nunemaker', 'Jonathan Rudenberg']
p.email = "[email protected]"
p.extra_deps = [['hpricot', '>=0.4.86'], ['activesupport', '>=1.4.2']]
p.need_tar_gz = false
p.docs_host = WEBSITE_PATH
p.ignore_pattern = /website/
end
desc 'Upload website files to rubyforge'
task :website do
sh %{rsync -av website/ #{WEBSITE_PATH}}
Rake::Task['website_docs'].invoke
end
task :website_docs do
Rake::Task['redocs'].invoke
sh %{rsync -av doc/ #{WEBSITE_PATH}/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