Added tasks to deal with testing and installing the gem in Ruby 1.9
This commit is contained in:
parent
0c34782048
commit
be5c715d71
10
Rakefile
10
Rakefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user