Sha256: a66f3f335a36fe4973b638509cc08c3b19c8fc41ddac9b8d86ec489f666460f7

Contents?: true

Size: 570 Bytes

Versions: 5

Compression:

Stored size: 570 Bytes

Contents

require 'rubygems'

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'

Rake::TestTask.new do |t|
  t.pattern = "spec/*_spec.rb"
end

task :default => :test
task :spec => :test

require 'sdoc'
require 'rdoc/task'

rails = File.expand_path "rails"

directory rails do
  sh "git clone --depth=1 https://github.com/rails/rails"
end

namespace :test do
  task :rails => rails

  RDoc::Task.new(:rails) do |rdoc|
    rdoc.rdoc_dir = 'doc/rails'
    rdoc.generator = 'sdoc'
    rdoc.template = 'rails'

    rdoc.rdoc_files.include("rails/")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sdoc-1.0.0.rc2 Rakefile
sdoc-1.0.0.rc1 Rakefile
sdoc-1.0.0.beta2 Rakefile
sdoc-1.0.0.beta1 Rakefile
sdoc-0.4.2 Rakefile