forked from mikedemers/caching-mailer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
42 lines (37 loc) · 1.12 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
require 'rubygems'
require 'rake'
require 'bundler'
Bundler.setup
Bundler.require
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "caching_mailer"
gemspec.summary = "Adds fragment caching to ActionMailer"
gemspec.description = "Uses ActionController to provide fragment caching to ActionMailer"
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/aughr/caching_mailer"
gemspec.authors = ["Mike Demers", "Andrew Bloomgarden"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: bundle install"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "resource_defaults #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Default: run unit tests.'
task :default => :test
require 'rake/testtask'
desc 'Test the caching_mailer plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end