forked from seanhussey/woulda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
43 lines (34 loc) · 1.18 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = "woulda"
s.version = "0.1.5"
s.summary = "woulda is a home for shoulda macros that don't belong in the main shoulda library"
s.homepage = "http://github.com/seanhussey/woulda"
s.rubyforge_project = "woulda"
s.files = FileList["[A-Z]*", "{shoulda_macros}/**/*", "lib/**/*"]
# s.has_rdoc = true
# s.extra_rdoc_files = ["README.rdoc", "CONTRIBUTION_GUIDELINES.rdoc"]
# s.rdoc_options = ["--line-numbers", "--inline-source", "--main", "README.rdoc"]
s.authors = ["Sean Hussey", "Josh Nichols"]
s.email = ["[email protected]", "[email protected]"]
s.add_dependency "thoughtbot-shoulda", ">= 2.0.0"
end
Rake::GemPackageTask.new spec do |pkg|
pkg.need_tar = true
pkg.need_zip = true
end
desc "Generate a gemspec file for GitHub"
task :gemspec do
File.open("#{spec.name}.gemspec", 'w') do |f|
f.write spec.to_ruby
end
end
desc "Run all tests"
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
task :default => :test