-
Notifications
You must be signed in to change notification settings - Fork 0
/
rakefile
36 lines (31 loc) · 1.04 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
# encoding: UTF-8
#
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/testtask'
require 'syndication/syndication'
desc "Create HTML documentation from RDOC"
Rake::RDocTask.new do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "CHANGES", "IMPLEMENTATION", "DEVELOPER",
"lib/**/*.rb", "test/**/*.rb", "examples/**/*.rb")
end
desc "Make tar distribution"
Rake::PackageTask.new('syndication', Syndication::VERSION) do |t|
t.need_tar_bz2 = true
t.package_files.include("README", "CHANGES", "IMPLEMENTATION", "DEVELOPER", "lib/**/*.rb", "test/**/*.rb", "examples/**/*.rb", "rakefile", "setup.rb")
t.package_dir = "pkg"
end
desc "Run unit tests"
Rake::TestTask.new("test") { |t|
t.pattern = 'test/*.rb'
t.verbose = true
t.warning = true
}
task :default do
puts "This is a pure Ruby library, no compilation is required."
puts "Try rake --tasks"
puts "To build the gem, use gem build syndication.gemspec"
end