-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
36 lines (29 loc) · 961 Bytes
/
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
require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask'
task :default => :test
Rake::TestTask.new do |t|
t.pattern = "test/**/*_test.rb"
t.libs += ['test', 'lib']
end
Gem::manage_gems
specification = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "test_warning"
s.summary = "Adds support for warnings (non-fatal errors) to test unit"
s.version = "0.1.0"
s.author = "David Vollbracht"
s.description = s.summary
s.email = "[email protected]"
s.homepage = "http://test-warning.rubyforge.org"
s.rubyforge_project = "test_warning"
s.files = FileList['{lib,test}/**/*.{rb}', 'Rakefile'].to_a
end
Rake::GemPackageTask.new(specification) do |package|
package.need_zip = true
package.need_tar = true
end
Rake::Task[:gem].prerequisites.unshift :test
task :tar do
system "tar zcf pkg/test_warning.tar.gz --exclude=.git --exclude='*.tar.gz' --exclude='*.gem' --directory=.. test_warning"
end