Sha256: 3c9e9cb25a35647e401db50852c85fb3a2b5aa7bfc8fd2b2507dafa917f38ce1

Contents?: true

Size: 992 Bytes

Versions: 2

Compression:

Stored size: 992 Bytes

Contents

require File.dirname(__FILE__) + '/lib/yard'
require 'rubygems'
require 'rake/gempackagetask'
require 'spec'
require 'spec/rake/spectask'

WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'

task :default => :specs

load 'yard.gemspec'
Rake::GemPackageTask.new(SPEC) do |pkg|
  pkg.gem_spec = SPEC
  pkg.need_zip = true
  pkg.need_tar = true
end

desc "Install the gem locally"
task :install => :package do 
  sh "#{SUDO} gem install pkg/#{SPEC.name}-#{SPEC.version}.gem --local"
  sh "rm -rf pkg/yard-#{SPEC.version}" unless ENV['KEEP_FILES']
end

desc "Run all specs"
Spec::Rake::SpecTask.new("specs") do |t|
  $DEBUG = true if ENV['DEBUG']
  t.spec_opts = ["--format", "specdoc", "--colour"]
  t.spec_files = Dir["spec/**/*_spec.rb"].sort
  t.rcov = true if ENV['RCOV']
  t.rcov_opts = ['-x', '_spec\.rb$,spec_helper\.rb$']
end
task :spec => :specs

YARD::Rake::YardocTask.new do |t|
  t.after = lambda { `cp -R docs/images/ doc/images/` }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-0.2.3.2 Rakefile
yard-0.2.3.3 Rakefile