File: generate-doc.rake

package info (click to toggle)
ruby-mocha 0.11.3-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,300 kB
  • sloc: ruby: 9,935; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (6)
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
29
30
31
32
33
34
35
require 'yard'
require './lib/mocha/version'

desc 'Remove generated documentation'
task 'clobber_yardoc' do
  `rm -rf ./doc`
end

desc 'Generate documentation'
YARD::Rake::YardocTask.new('yardoc') do |task|
  task.options = ["--title", "Mocha #{Mocha::VERSION}", "--no-private"]
  task.files   = [
    'lib/mocha/api.rb',
    'lib/mocha/mock.rb',
    'lib/mocha/expectation.rb',
    'lib/mocha/object.rb',
    'lib/mocha/parameter_matchers.rb',
    'lib/mocha/parameter_matchers',
    'lib/mocha/state_machine.rb',
    'lib/mocha/sequence.rb',
    'lib/mocha/configuration.rb',
    'lib/mocha/stubbing_error.rb',
    'lib/mocha/unexpected_invocation.rb',
    '-',
    'RELEASE.rdoc',
    'COPYING.rdoc',
    'MIT-LICENSE.rdoc',
    'examples/mocha.rb',
    'examples/stubba.rb',
    'examples/misc.rb',
  ]
end

desc "Generate documentation"
task 'default' => ['clobber_yardoc', 'yardoc']