Sha256: 5da47a83ce5dc7b6f7a330b421db5f19e9734965669dca3eb804e30d03b6c0b4

Contents?: true

Size: 1.17 KB

Versions: 30

Compression:

Stored size: 1.17 KB

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

require 'rake'
require 'bundler'

require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

task :default => :ci  

desc "run continuous integration suite (tests, coverage, docs)" 
task :ci => [:rspec, :doc]

task :spec => :rspec

RSpec::Core::RakeTask.new(:rspec) do |spec|
  spec.rspec_opts = ["-c", "--tty", "-f progress", "-r ./spec/spec_helper.rb"]
end

# Use yard to build docs
begin
  project_root = File.expand_path(File.dirname(__FILE__))
  doc_dest_dir = File.join(project_root, 'doc')

  YARD::Rake::YardocTask.new(:doc) do |yt|
    yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
                 [ File.join(project_root, 'README.rdoc') ]
    yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'Stanford-Mods Documentation']
  end
rescue LoadError
  desc "Generate YARD Documentation"
  task :doc do
    abort "Please install the YARD gem to generate rdoc."
  end
end  

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
stanford-mods-1.1.2 Rakefile
stanford-mods-1.1.1 Rakefile
stanford-mods-1.1.0 Rakefile
stanford-mods-1.0.3 Rakefile
stanford-mods-1.0.2 Rakefile
stanford-mods-1.0.1 Rakefile
stanford-mods-1.0.0 Rakefile
stanford-mods-0.0.27 Rakefile
stanford-mods-0.0.26 Rakefile
stanford-mods-0.0.25 Rakefile
stanford-mods-0.0.24 Rakefile
stanford-mods-0.0.23 Rakefile
stanford-mods-0.0.22 Rakefile
stanford-mods-0.0.21 Rakefile
stanford-mods-0.0.20 Rakefile
stanford-mods-0.0.19 Rakefile
stanford-mods-0.0.18 Rakefile
stanford-mods-0.0.17 Rakefile
stanford-mods-0.0.16 Rakefile
stanford-mods-0.0.15 Rakefile