2010-01-22 03:09:18 +00:00
|
|
|
require 'rake/testtask'
|
|
|
|
|
2010-01-31 06:06:22 +00:00
|
|
|
begin
|
|
|
|
require 'jeweler'
|
|
|
|
Jeweler::Tasks.new do |gemspec|
|
2010-02-10 07:08:23 +00:00
|
|
|
gemspec.name = "vagrant"
|
2010-03-08 00:08:59 +00:00
|
|
|
gemspec.summary = "Vagrant is a tool for building and distributing virtualized development environments."
|
|
|
|
gemspec.description = "Vagrant is a tool for building and distributing virtualized development environments."
|
|
|
|
gemspec.email = ["mitchell.hashimoto@gmail.com", "john.m.bender@gmail.com"]
|
2010-02-10 07:08:23 +00:00
|
|
|
gemspec.homepage = "http://github.com/mitchellh/vagrant"
|
2010-01-31 06:06:22 +00:00
|
|
|
gemspec.authors = ["Mitchell Hashimoto", "John Bender"]
|
2010-02-10 06:48:08 +00:00
|
|
|
|
2010-03-18 04:54:07 +00:00
|
|
|
gemspec.add_dependency('virtualbox', '>= 0.5.4')
|
2010-02-10 06:48:08 +00:00
|
|
|
gemspec.add_dependency('net-ssh', '>= 2.0.19')
|
|
|
|
gemspec.add_dependency('net-scp', '>= 1.0.2')
|
2010-03-20 09:05:03 +00:00
|
|
|
gemspec.add_dependency('json_pure', '>= 1.2.0')
|
2010-03-08 00:47:22 +00:00
|
|
|
gemspec.add_dependency('git-style-binaries', '>= 0.1.10')
|
2010-03-09 20:33:43 +00:00
|
|
|
gemspec.add_dependency('archive-tar-minitar', '= 0.5.2')
|
2010-01-31 06:06:22 +00:00
|
|
|
end
|
|
|
|
Jeweler::GemcutterTasks.new
|
|
|
|
rescue LoadError
|
|
|
|
puts "Jeweler not available. Install it with: gem install jeweler"
|
|
|
|
end
|
|
|
|
|
2010-01-22 03:09:18 +00:00
|
|
|
task :default => :test
|
|
|
|
|
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.libs << "test"
|
2010-01-22 05:08:55 +00:00
|
|
|
t.pattern = 'test/**/*_test.rb'
|
2010-01-22 05:07:01 +00:00
|
|
|
end
|
2010-03-04 07:14:06 +00:00
|
|
|
|
|
|
|
begin
|
|
|
|
require 'yard'
|
|
|
|
YARD::Rake::YardocTask.new do |t|
|
|
|
|
t.options = ['--main', 'README.md', '--markup', 'markdown']
|
|
|
|
t.options += ['--title', 'Vagrant Developer Documentation']
|
|
|
|
end
|
|
|
|
rescue LoadError
|
|
|
|
puts "Yard not available. Install it with: gem install yard"
|
|
|
|
puts "if you wish to be able to generate developer documentation."
|
2010-03-09 16:25:16 +00:00
|
|
|
end
|