public
Description: Ruby library for handling fixed width record flat files
Homepage:
Clone URL: git://github.com/alibby/flat_filer.git
Andy Libby (author)
Tue Apr 15 16:34:26 -0700 2008
commit  6397939563e0960d8aa057a0724434f5131537b0
tree    3b71b9d8bf937ea56b031c7e3ede6506c847967e
parent  27c08fc099a53c5c9b2552145bc204e38ad27b13
flat_filer / Rakefile
100644 47 lines (38 sloc) 1.031 kb
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
46
47
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 = "alibby@tangeis.com"
  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