forked from zapnap/resque_mailer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
60 lines (50 loc) · 1.72 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
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "resque_mailer"
gem.summary = %Q{Rails plugin for sending asynchronous email with ActionMailer and Resque}
gem.description = %Q{Rails plugin for sending asynchronous email with ActionMailer and Resque}
gem.email = "[email protected]"
gem.homepage = "http://github.com/zapnap/resque_mailer"
gem.authors = ["Nick Plante", "Marcin Kulik"]
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency "resque", ">= 1.2.3"
gem.add_development_dependency "actionmailer", ">= 2.3.4"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
begin
require 'spec/rake/spectask'
puts "Using RSpec 1.x / Rails 2.x"
desc "Run specs for Rails 2.x"
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.spec_files = FileList['spec/common_spec.rb', 'spec/rails2_spec.rb']
end
rescue LoadError
puts "RSpec 1.x unavailable"
end
begin
require 'rspec/core'
require 'rspec/core/rake_task'
puts "Using RSpec 2.x / Rails 3.x"
desc "Run specs for Rails 3.x"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = ["spec/common_spec.rb","spec/rails3_spec.rb"]
end
rescue LoadError
puts "RSpec 2.x unavailable"
end
task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "resque_mailer #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end