# -*-ruby-*- require 'rubygems' require 'bundler/setup' require 'rake' require 'rdoc/task' require 'rubygems/package_task' require 'rake/clean' require 'rspec/core/rake_task' require 'right_develop/ci/rake_task' desc "Run unit tests" task :default => :spec desc "Run unit tests" RSpec::Core::RakeTask.new do |t| t.pattern = Dir['**/*_spec.rb'] end desc 'Generate documentation for the right_publish gem.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'doc' rdoc.title = 'RightPublish' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.exclude('features/**/*') rdoc.rdoc_files.exclude('spec/**/*') end require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification; see http://docs.rubygems.org/read/chapter/20 for more options gem.name = "right_publish" gem.homepage = "https://github.com/rightscale/right_publish" gem.license = "Proprietary" gem.summary = %Q{Package publishing and indexing tool} gem.description = %Q{A tool for maintaining S3-based DEB, GEM and RPM packages.} gem.email = "support@rightscale.com" gem.authors = ['Brian Szmyd', 'Tony Spataro'] end Jeweler::RubygemsDotOrgTasks.new CLEAN.include('pkg') RightDevelop::CI::RakeTask.new