public
Description: Comma is a small CSV (ie. comma separated values) generation extension for Ruby objects, that lets you seamlessly define a CSV output format via a small DSL
Homepage: http://github.com/crafterm/comma
Clone URL: git://github.com/crafterm/comma.git
comma / Rakefile
100644 42 lines (37 sloc) 1.007 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
require 'rake/gempackagetask'
 
spec = Gem::Specification.new do |s|
  s.name = "comma"
  s.version = "0.2.2"
  s.author = "Marcus Crafter"
  s.email = "crafterm@redartisan.com"
  s.homepage = "http://github.com/crafterm/comma"
  s.platform = Gem::Platform::RUBY
  s.summary = "Ruby Comma Seperated Values generation library"
  s.files = %w( README.markdown MIT-LICENSE lib/comma.rb lib/comma/extractors.rb )
  s.require_path = "lib"
  s.add_dependency("fastercsv", ">= 1.4.0")
  s.add_dependency("activesupport", ">= 2.2.2")
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_tar = false
end
 
begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  require 'spec'
end
begin
  require 'spec/rake/spectask'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install rspec gem:
gem install rspec
EOS
  exit(0)
end
 
desc "Run the specs under spec"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
end