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']
|
t.test_files = FileList['tests/test*.rb']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Test using Ruby 1.9"
|
||||||
|
task :'test:19' do
|
||||||
|
system "rake19 test"
|
||||||
|
end
|
||||||
|
|
||||||
desc "Generate documentation"
|
desc "Generate documentation"
|
||||||
task :rdoc do
|
task :rdoc do
|
||||||
FileUtils.rm_rf('doc')
|
FileUtils.rm_rf('doc')
|
||||||
|
@ -56,6 +61,11 @@ namespace :gem do
|
||||||
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
|
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
|
||||||
end
|
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"
|
desc "Create a gemspec file"
|
||||||
task :make_spec do
|
task :make_spec do
|
||||||
File.open("#{GEM}.gemspec", "w") do |file|
|
File.open("#{GEM}.gemspec", "w") do |file|
|
||||||
|
|
Loading…
Reference in New Issue