public
Description: Git fork of rbet - a Ruby wrapper for the Exact Target API
Homepage: http://code.google.com/p/rbet/
Clone URL: git://github.com/sbraford/rbet.git
rbet / Rakefile
100644 45 lines (35 sloc) 0.933 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
require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
 
ET_PACKAGE='rbetmailer'
ET_VERSION='0.0.1'
 
Rake::TestTask.new do |t|
  t.test_files = FileList["test/*_test.rb"]
  t.verbose = true
end
 
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc/rdoc'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.add(['README','LICENSE','COPYING','lib/**/*.rb'])
end
 
task :clean do
  rm_rf "test/coverage"
end
 
task :default => :test
 
spec = Gem::Specification.new do |s|
  s.name = ET_PACKAGE
  s.version = ET_VERSION
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = [ "README" ]
 
  s.files = %w(COPYING LICENSE README Rakefile) +
    Dir.glob("{doc/rdoc,test}/**/*") +
    Dir.glob("{examples,lib}/**/*.rb")
 
  s.require_path = "lib"
end
 
Rake::GemPackageTask.new(spec) do |p|
  p.gem_spec = spec
  p.need_tar = true if RUBY_PLATFORM !~ /mswin/
end