Sha256: 9babce519637e608505dbd3d4dd3b11af717d250da8d7ecf10a6990b7582044b

Contents?: true

Size: 1.48 KB

Versions: 45

Compression:

Stored size: 1.48 KB

Contents

require File.dirname(__FILE__) + '/lib/yard'
require File.dirname(__FILE__) + '/lib/yard/rubygems/specification'
require 'rbconfig'

YARD::VERSION.replace(ENV['YARD_VERSION']) if ENV['YARD_VERSION']

task :default => :specs

desc "Builds the gem"
task :gem do
  Gem::Builder.new(eval(File.read('yard.gemspec'))).build
end

desc "Installs the gem"
task :install => :gem do
  sh "gem install yard-#{YARD::VERSION}.gem --no-rdoc --no-ri"
end

begin
require 'rvm-tester'
RVM::Tester::TesterTask.new do |t|
  t.rubies = %w(1.8.6 ree jruby 1.8.7 1.9.2 1.9.3)
  t.bundle_install = false # don't need to do this all the time
  t.verbose = true
end
rescue LoadError
end

task :travis_ci do
  ENV['SUITE'] = '1'
  ENV['CI'] = '1'
  ENV['LEGACY'] = nil
  Rake::Task['specs'].execute
  if RUBY_VERSION >= '1.9' && RUBY_PLATFORM != 'java'
    puts ""
    puts "Running specs with in legacy mode"
    ENV['LEGACY'] = '1'
    Rake::Task['specs'].execute
  end
end

desc "Run all specs"
task :specs do
  opts = ['rspec', '-c']
  opts += ["--require", File.join(File.dirname(__FILE__), 'spec', 'spec_helper')]
  opts += ['-I', YARD::ROOT]
  if ENV['DEBUG']
    $DEBUG = true
    opts += ['-d']
  end
  opts += FileList["spec/**/*_spec.rb"].sort
  cmd = opts.join(' ')
  puts cmd if Rake.application.options.trace
  system(cmd)
  raise "Command failed with status (#{$?.to_i}): #{cmd}" if $?.to_i != 0
end
task :spec => :specs

YARD::Rake::YardocTask.new do |t|
  t.options += ['--title', "YARD #{YARD::VERSION} Documentation"]
end

Version data entries

45 entries across 37 versions & 8 rubygems

Version Path
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/Rakefile
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/Rakefile
yard-0.8.7.3 Rakefile
yard-0.8.7.2 Rakefile
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/yard-0.8.7/Rakefile
candlepin-api-0.4.0 bundle/ruby/1.8/gems/yard-0.8.7/Rakefile
candlepin-api-0.4.0 bundle/ruby/gems/yard-0.8.7/Rakefile
yard-0.8.7.1 Rakefile
yard-0.8.7 Rakefile
challah-1.0.0 vendor/bundle/gems/yard-0.8.6.1/Rakefile
yard-0.8.6.2 Rakefile