-
Notifications
You must be signed in to change notification settings - Fork 118
/
Rakefile
45 lines (39 loc) · 1.49 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
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "subdomain-fu"
gemspec.rubyforge_project = 'subdomain-fu'
gemspec.summary = "SubdomainFu is a Rails plugin that provides subdomain routing and URL writing helpers."
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/mbleigh/subdomain-fu"
gemspec.files = FileList["[A-Z]*", "{lib}/**/*"] - FileList["**/*.log"]
gemspec.description = "SubdomainFu is a Rails plugin to provide all of the basic functionality necessary to handle multiple subdomain applications (such as Basecamp-esque subdomain accounts and more)."
gemspec.authors = ["Michael Bleigh"]
end
Jeweler::GemcutterTasks.new
FileList['tasks/**/*.rake'].each { |task| import task }
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
begin
require 'rspec/core/rake_task'
task :cleanup_rcov_files do
rm_rf 'coverage.data'
end
desc "Run all specs."
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w[--color]
end
namespace :spec do
desc "Run all specs using rcov."
RSpec::Core::RakeTask.new(:rcov => :cleanup_rcov_files) do |t|
t.rcov = true
t.rcov_opts = '-Ilib:spec --exclude "gems/.*,features"'
t.rcov_opts << %[--text-report --sort coverage --html --aggregate coverage.data]
end
end
task :default => :spec
rescue LoadError
puts "RSpec-2 not available."
end