forked from resque/resque
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
66 lines (55 loc) · 1.92 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
load 'tasks/redis.rake'
$LOAD_PATH.unshift 'lib'
require 'resque/tasks'
task :default => :test
desc "Run tests"
task :test do
# Don't use the rake/testtask because it loads a new
# Ruby interpreter - we want to run tests with the current
# `rake` so our library manager still works
Dir['test/*_test.rb'].each do |f|
require f
end
end
desc "Activate kicker - gem install kicker"
task :kick do
exec "kicker -e rake lib test"
end
task :install => [ 'redis:install', 'dtach:install' ]
desc "Build a gem"
task :gem => [ :test, :gemspec, :build ]
begin
require 'jeweler'
require 'resque/version'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "scotttam-resque"
gemspec.summary = %Q{scotttam-resque is an extension to the resque queue system that has pre-fork hooks and ability to turn off forking.}
gemspec.description = %Q{scotttam-resque is an extension to the resque queue system that has pre-fork hooks and ability to turn off forking. Add more description here.}
gemspec.email = "tamosunas@gmail.com"
gemspec.homepage = "http://github.com/scotttam/resque"
gemspec.authors = ["Chris Wanstrath, Scott Tamosunas"]
gemspec.version = Resque::Version
gemspec.add_dependency "redis"
gemspec.add_dependency "redis-namespace"
gemspec.add_dependency "vegas", ">=0.1.2"
gemspec.add_dependency "sinatra", ">=0.9.2"
gemspec.add_development_dependency "jeweler"
end
rescue LoadError
puts "Jeweler not available. Install it with: "
puts "gem install jeweler"
end
begin
require 'sdoc_helpers'
rescue LoadError
puts "sdoc support not enabled. Please gem install sdoc-helpers."
end
desc "Push a new version to Gemcutter"
task :publish => [ :test, :gemspec, :build ] do
system "git tag v#{Resque::Version}"
system "git push origin v#{Resque::Version}"
system "git push origin master"
system "gem push pkg/resque-#{Resque::Version}.gem"
system "git clean -fd"
exec "rake pages"
end