File: Rakefile

package info (click to toggle)
ruby-docile 1.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156 kB
  • sloc: ruby: 374; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rake/clean'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require File.expand_path('on_what', File.dirname(__FILE__))

# Default task for `rake` is to run rspec
task :default => [:spec]

# Use default rspec rake task
RSpec::Core::RakeTask.new

# Configure `rake clobber` to delete all generated files
CLOBBER.include('pkg', 'doc', 'coverage')

# To limit needed compatibility with versions of dependencies, only configure
#   yard doc generation when *not* on Travis, JRuby, or 1.8
if !on_travis? && !on_jruby? && !on_1_8?
  require 'github/markup'
  require 'redcarpet'
  require 'yard'
  require 'yard/rake/yardoc_task'

  YARD::Rake::YardocTask.new do |t|
    OTHER_PATHS = %w()
    t.files   = ['lib/**/*.rb', OTHER_PATHS]
    t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md)
  end
end