Added tasks to deal with testing and installing the gem in Ruby 1.9

This commit is contained in:
Adrian Madrid 2008-12-30 17:41:53 -07:00
parent 0c34782048
commit be5c715d71
1 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,11 @@ Rake::TestTask.new do |t|
t.test_files = FileList['tests/test*.rb']
end
desc "Test using Ruby 1.9"
task :'test:19' do
system "rake19 test"
end
desc "Generate documentation"
task :rdoc do
FileUtils.rm_rf('doc')
@ -55,6 +60,11 @@ namespace :gem do
task :install => [:package] do
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
end
desc "Install the gem locally with ruby 1.9"
task :'19:install' => [:package] do
sh %{sudo gem19 install pkg/#{GEM}-#{GEM_VERSION}}
end
desc "Create a gemspec file"
task :make_spec do