Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Work with newer versions of rdoc

  • Loading branch information...
commit bc7c2ad5f6f2a957db9053cd77f4339145bc9ba3 1 parent f1b90aa
Jeremy Evans authored

Showing 1 changed file with 10 additions and 6 deletions. Show diff stats Hide diff stats

  1. +10 6 Rakefile
16 Rakefile
... ... @@ -1,16 +1,20 @@
1 1 require "rake"
2 2 require "rake/clean"
3 3 require "spec/rake/spectask"
4   -begin
5   - require "hanna/rdoctask"
6   -rescue LoadError
7   - require "rake/rdoctask"
8   -end
9 4
10 5 CLEAN.include ["*.gem", "rdoc"]
11 6 RDOC_OPTS = ['--inline-source', '--line-numbers', '--title', 'Sequel validation_helpers_block: Allows easy determination of which validation rules apply to a given column, at the expense of increased verbosity', '--main', 'Sequel::Plugins::ValidationHelpersBlock']
12 7
13   -Rake::RDocTask.new do |rdoc|
  8 +rdoc_task_class = begin
  9 + require "rdoc/task"
  10 + RDOC_OPTS.concat(['-f', 'hanna'])
  11 + RDoc::Task
  12 +rescue LoadError
  13 + require "rake/rdoctask"
  14 + Rake::RDocTask
  15 +end
  16 +
  17 +rdoc_task_class.new do |rdoc|
14 18 rdoc.rdoc_dir = "rdoc"
15 19 rdoc.options += RDOC_OPTS
16 20 rdoc.rdoc_files.add %w"lib/sequel_validation_helpers_block.rb LICENSE"

0 comments on commit bc7c2ad

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