forked from bryanstearns/awesome_email
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
50 lines (44 loc) · 1.52 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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
NAME = "awesome_email"
SUMMARY = %Q{Rails ActionMailer with HTML layouts, inline CSS and entity substitution.}
HOMEPAGE = "http://github.com/grimen/#{NAME}/tree/master"
AUTHORS = ["imedo GmbH"]
EMAIL = "[email protected]"
SUPPORT_FILES = %w(README.textile)
begin
gem 'technicalpickles-jeweler', '>= 1.2.1'
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = NAME
gem.summary = SUMMARY
gem.description = SUMMARY
gem.homepage = HOMEPAGE
gem.authors = AUTHORS
gem.email = EMAIL
gem.require_paths = %w{lib}
gem.files = SUPPORT_FILES << %w(MIT-LICENSE Rakefile) << Dir.glob(File.join('{lib,rails,test}', '**', '*'))
gem.executables = %w()
gem.extra_rdoc_files = %w{README.textile}
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc %Q{Run unit tests for "#{NAME}".}
task :default => :test
desc %Q{Run unit tests for "#{NAME}".}
Rake::TestTask.new(:test) do |test|
test.libs << ['lib', 'test']
test.pattern = File.join('test', '**', '*_test.rb')
test.verbose = true
end
desc %Q{Generate documentation for "#{NAME}".}
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = NAME
rdoc.options << '--line-numbers' << '--inline-source' << '--charset=UTF-8'
rdoc.rdoc_files.include(SUPPORT_FILES)
rdoc.rdoc_files.include(File.join('lib', '**', '*.rb'))
end