Sha256: e54713164d62b6eaec9785d869c17a7ca3a57512d51d62046006760c8b6c00d1

Contents?: true

Size: 1.59 KB

Versions: 37

Compression:

Stored size: 1.59 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'

# == Unit Tests == #

desc "Run unit tests"
RSpec::Core::RakeTask.new do |t|
  t.rspec_opts = ["--color"]
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

37 entries across 37 versions & 1 rubygems

Version Path
rconf-0.7.3 Rakefile
rconf-0.7.2 Rakefile
rconf-0.7.1 Rakefile
rconf-0.7.0 Rakefile
rconf-0.6.35 Rakefile
rconf-0.6.34 Rakefile
rconf-0.6.33 Rakefile
rconf-0.6.32 Rakefile
rconf-0.6.31 Rakefile
rconf-0.6.30 Rakefile
rconf-0.6.25 Rakefile
rconf-0.6.24 Rakefile
rconf-0.6.23 Rakefile
rconf-0.6.22 Rakefile
rconf-0.6.21 Rakefile
rconf-0.6.20 Rakefile
rconf-0.6.19 Rakefile
rconf-0.6.18 Rakefile
rconf-0.6.17 Rakefile
rconf-0.6.16 Rakefile