Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

yard

  • Loading branch information...
commit cd4d54d8c7c86ef9c49f5ae349a4ed6fe708b07c 1 parent 70b9491
Al Shaw ashaw authored

Showing 3 changed files with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 .document
  2. +1 0  README
  3. +14 0 Rakefile
4 .document
... ... @@ -0,0 +1,4 @@
  1 +README
  2 +lib/**/*.rb
  3 +bin/*
  4 +LICENSE
1  README
... ... @@ -1,3 +1,4 @@
  1 +=
1 2 _______ ___ _____ __ __
2 3 /_ __(_)___ ___ ___ / (_)___ ___ / ___/___ / /_/ /____ _____
3 4 / / / / __ `__ \/ _ \/ / / __ \/ _ \\__ \/ _ \/ __/ __/ _ \/ ___/
14 Rakefile
... ... @@ -1,6 +1,7 @@
1 1 require 'rubygems'
2 2 require 'rake'
3 3 require 'rake/clean'
  4 +require 'rake/rdoctask'
4 5 require 'rspec/core/rake_task'
5 6 require './lib/timeline_setter'
6 7
@@ -61,11 +62,24 @@ rescue LoadError
61 62 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
62 63 end
63 64
  65 +Rake::RDocTask.new do |rdoc|
  66 + version = File.exist?('VERSION') ? File.read('VERSION') : ""
  67 + rdoc.rdoc_dir = 'rdoc'
  68 + rdoc.title = "TimelineSetter #{version}"
  69 + rdoc.rdoc_files.include('README*')
  70 + rdoc.rdoc_files.include('lib/**/*.rb')
  71 +end
  72 +
64 73 # run tests with `rake spec`
65 74 RSpec::Core::RakeTask.new(:spec) do |spec|
66 75 spec.pattern = 'spec/*_spec.rb'
67 76 spec.rspec_opts = ['--color', '--format nested']
68 77 end
69 78
  79 +desc "generate yard docs"
  80 +task :yard do
  81 + `yard -o ./rdoc`
  82 +end
  83 +
70 84
71 85

0 comments on commit cd4d54d

Please sign in to comment.
Something went wrong with that request. Please try again.