forked from mmower/mailtrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (41 loc) · 1.39 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
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require './lib/mailtrap.rb'
require './lib/mailshovel.rb'
Hoe.spec('mailtrap') do |p|
p.rubyforge_name = 'simplyruby'
p.author = 'Matt Mower'
p.email = 'self@mattmower.com'
p.summary = 'Mailtrap is a mock SMTP server for use in Rails development'
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.remote_rdoc_dir = 'mailtrap'
p.extra_deps << ['daemons','>= 1.0.8']
p.extra_deps << ['trollop','>= 1.7']
p.extra_deps << ['tmail','>= 1.2.2']
end
namespace :spec do
desc "Run the specs under spec"
RSpec::Core::RakeTask.new('all') do |t|
t.rspec_opts = ['--options', "spec/spec.opts"]
#t.spec_files = FileList['spec/**/*_spec.rb']
t.pattern = 'spec/**/*_spec.rb'
end
desc "Run the specs under spec in specdoc format"
RSpec::Core::RakeTask.new('doc') do |t|
t.rspec_opts = ['--format', "specdoc"]
#t.spec_files = FileList['spec/**/*_spec.rb']
t.pattern = 'spec/**/*_spec.rb'
end
desc "Run the specs in HTML format"
RSpec::Core::RakeTask.new('html') do |t|
t.rspec_opts = ['--format', "html"]
#t.spec_files = FileList['spec/**/*_spec.rb']
t.pattern = 'spec/**/*_spec.rb'
end
end
desc "Run the default spec task"
task :spec => :"spec:all"
# vim: syntax=Ruby