Sha256: d4b3487644efc393c6f34d021f34da8eeea6217b7638151477a93083d66a9652
Contents?: true
Size: 1.33 KB
Versions: 16
Compression:
Stored size: 1.33 KB
Contents
require 'rubygems' require 'rake' require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end namespace :test do Rake::TestTask.new(:api) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/api/test_*.rb' test.verbose = true end Rake::TestTask.new(:integrations) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/test_integrations.rb' test.verbose = true end end Rake::TestTask.new(:examples) do |test| test.libs << 'lib' << 'examples' test.pattern = 'examples/test_*.rb' test.verbose = true end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| test.libs << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end rescue LoadError task :rcov do abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" end end task :default => :test require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "sauce #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end task :build do system "gem build sauce.gemspec" end task :push => :build do system "gem push `ls *.gem | sort | tail -n 1`" end
Version data entries
16 entries across 16 versions & 1 rubygems