Sha256: e35163b5fa3a17e429682f0739a5ce97099284fce8e5aa4d6f18781d9105605c
Contents?: true
Size: 1.64 KB
Versions: 35
Compression:
Stored size: 1.64 KB
Contents
# Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide. # # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, # reproduction, modification, or disclosure of this program is # strictly prohibited. Any use of this program by an authorized # licensee is strictly subject to the terms and conditions, # including confidentiality obligations, set forth in the applicable # License Agreement between RightScale.com, Inc. and # the licensee require 'rubygems' require 'fileutils' require 'rake' require 'rspec/core/rake_task' require 'rake/rdoctask' require 'rake/gempackagetask' require 'rake/clean' task :default => 'spec' task :build => [ 'spec', 'gem' ] # == Unit Tests == # desc "Run unit tests" RSpec::Core::RakeTask.new do |t| t.rspec_opts = ["--color --format=nested"] end namespace :spec do desc "Run unit tests with RCov" RSpec::Core::RakeTask.new(:rcov) do |t| t.rcov = true t.rcov_opts = %q[--exclude "spec"] end desc "Print Specdoc for unit tests" RSpec::Core::RakeTask.new(:doc) do |t| t.rspec_opts = ["--format", "documentation"] end end # == Gem == # gemtask = Rake::GemPackageTask.new(Gem::Specification.load('rconf.gemspec')) do |package| package.package_dir = ENV['PACKAGE_DIR'] || 'pkg' package.need_zip = true package.need_tar = true end directory gemtask.package_dir CLEAN.include(gemtask.package_dir) # == Documentation == # desc "Generate API documentation to doc/rdocs/index.html" Rake::RDocTask.new do |rd| rd.rdoc_dir = 'doc/rdocs' rd.main = 'README.rdoc' rd.rdoc_files.include 'README.rdoc', "lib/**/*.rb" end
Version data entries
35 entries across 35 versions & 1 rubygems