Sha256: 5b1be6847c44c5f51190898d6b15ee9e4764710ccdf59dcc9a557d10aa1032b5

Contents?: true

Size: 569 Bytes

Versions: 8

Compression:

Stored size: 569 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'

Rake::TestTask.new do |t|
  t.pattern = "spec/*_spec.rb"
  t.libs << "spec"
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

8 entries across 8 versions & 1 rubygems

Version Path
sdoc-2.1.0 Rakefile
sdoc-2.0.4 Rakefile
sdoc-2.0.3 Rakefile
sdoc-2.0.2 Rakefile
sdoc-2.0.1 Rakefile
sdoc-2.0.0 Rakefile
sdoc-1.1.0 Rakefile
sdoc-1.0.0 Rakefile