Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (39 sloc) 1.389 kB
b60fdaa initial commit
Jeff Gran authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "resque-timeout"
8 gem.summary = "Timeout for long-running jobs in Resque"
9 gem.description = 'Resque plugin allowing long-running jobs to automatically fail after a specified time.'
10 gem.email = "jeff.gran@gmail.com"
11 gem.homepage = "http://github.com/jeffgran/resque-timeout"
12 gem.authors = ["Jeff Gran"]
13 gem.add_dependency "resque", "~>1.0"
14 gem.add_development_dependency "rspec", ">= 1.2.9"
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16 end
17 Jeweler::GemcutterTasks.new
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20 end
21
22 require 'spec/rake/spectask'
23 Spec::Rake::SpecTask.new(:spec) do |spec|
24 spec.libs << 'lib' << 'spec'
25 spec.spec_files = FileList['spec/**/*_spec.rb']
26 end
27
28 Spec::Rake::SpecTask.new(:rcov) do |spec|
29 spec.libs << 'lib' << 'spec'
30 spec.pattern = 'spec/**/*_spec.rb'
31 spec.rcov = true
32 end
33
34 task :spec => :check_dependencies
35
36 task :default => :spec
37
38 require 'rake/rdoctask'
39 Rake::RDocTask.new do |rdoc|
40 version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
42 rdoc.rdoc_dir = 'rdoc'
43 rdoc.title = "resque-fairly #{version}"
44 rdoc.rdoc_files.include('README*')
45 rdoc.rdoc_files.include('lib/**/*.rb')
46 end
Something went wrong with that request. Please try again.