forked from blackducksoftware/ohloh_scm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
34 lines (28 loc) · 834 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
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rubygems'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = 'ohloh_scm'
s.version = '0.0.1'
s.author = 'Robin Luckey'
s.email = '[email protected]'
s.homepage = 'http://labs.ohloh.net'
s.platform = Gem::Platform::RUBY
s.summary = 'Ohloh Source Control Management Library'
s.files = FileList['README', 'COPYING', '{bin,lib,test}/**/*']
s.require_path = 'lib'
s.executables = 'ohlog'
s.has_rdoc = true
s.extra_rdoc_files = ['README']
s.test_files = FileList["test/**/*"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
pkg.need_zip = true
end
Rake::TestTask.new :unit_tests do |t|
t.test_files = FileList[File.dirname(__FILE__) + '/test/unit/**/*_test.rb']
end
task :default => :unit_tests