Rakefile in apnserver-0.1.9 vs Rakefile in apnserver-0.1.10
- old
+ new
@@ -1,6 +1,8 @@
require 'rubygems'
+require 'rake/testtask'
+require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "apnserver"
@@ -17,18 +19,23 @@
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
-require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.test_files = FileList.new('test/**/test_*.rb') do |list|
list.exclude 'test/test_helper.rb'
end
test.libs << 'test'
test.verbose = true
end
Jeweler::RubyforgeTasks.new do |rubyforge|
+end
+
+Rake::RDocTask.new do |rd|
+ rd.main = "README.textile"
+ rd.rdoc_dir = 'rdoc'
+ rd.rdoc_files.include("README.textile", "lib/**/*.rb")
end
task :default => [:test]