forked from alibby/flat_filer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
46 lines (38 loc) · 1.01 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
require 'rubygems'
require 'spec'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'kinetic_rakes'
require 'find'
desc "clean up stuff"
task :clean => [:clobber_package, :clobber_rdoc]
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("lib/**/*.rb")
end
desc "Run specs"
task :spec do
Find.find('spec') do |f|
next unless f.match /.*\.rb$/
system("spec #{f}")
end
end
spec = Gem::Specification.new do |s|
s.name = "flat_filer"
s.version = "0.0.14"
s.author = "Andrew Libby"
s.email = "[email protected]"
s.homepage = "http://www.tangeis.com/"
s.platform = Gem::Platform::RUBY
s.summary = "Library for processing flat files"
s.files = FileList["lib/**/*"].to_a
s.require_path = "lib"
# s.autorequire = "name"
s.test_files = FileList["{test}/**/*test.rb"].to_a
s.has_rdoc = true
# s.extra_rdoc_files = ["README"]
# s.add_dependency("dependency", ">= 0.x.x")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end