-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathRakefile
60 lines (51 loc) · 1.71 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
# coding: utf-8
require 'rake'
require 'rake/rdoctask'
gem 'rspec-rails', '>= 1.0.0'
require 'spec/rake/spectask'
NAME = "delayed_job_mailer"
SUMMARY = %Q{Send emails asynchronously using delayed_job.}
HOMEPAGE = "http://github.com/andersondias/#{NAME}"
AUTHOR = "Anderson Dias"
EMAIL = "[email protected]"
SUPPORT_FILES = %w(README)
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.author = AUTHOR
gem.email = EMAIL
gem.require_paths = %w{lib}
gem.files = SUPPORT_FILES << %w(MIT-LICENSE Rakefile) << Dir.glob(File.join('{generators,lib,test,rails}', '**', '*'))
gem.executables = %w()
gem.extra_rdoc_files = SUPPORT_FILES
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{Default: Run specs for "#{NAME}".}
task :default => :spec
SPEC_FILES = Rake::FileList[File.join('spec', '**', '*_spec.rb')]
desc %Q{Run specs for "#{NAME}".}
Spec::Rake::SpecTask.new do |t|
t.spec_files = SPEC_FILES
t.spec_opts = ['-c']
end
desc %Q{Generate code coverage for "#{NAME}".}
Spec::Rake::SpecTask.new(:coverage) do |t|
t.spec_files = SPEC_FILES
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,/var/lib/gems']
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