public
Rubygem
Fork of mislav/will_paginate
Description: Most awesome pagination solution for Rails
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/carllerche/will_paginate.git
try to use Hanna for rake rdoc
mislav (author)
Sun May 04 11:12:03 -0700 2008
commit  43abd3b63d7040e77e48b356da6ebe4fd5620a65
tree    1e0fe59d0047418165999e7dc0932503e186143d
parent  1ef16f1863d95b7df892e291b321352bde1d85c7
...
1
2
 
 
 
 
 
 
 
 
 
3
4
5
...
7
8
9
10
11
 
 
12
13
14
15
16
 
17
18
19
20
21
22
23
24
25
 
26
27
28
...
 
 
1
2
3
4
5
6
7
8
9
10
11
12
...
14
15
16
 
 
17
18
19
20
21
 
 
22
23
24
25
 
 
 
26
 
 
27
28
29
30
0
@@ -1,5 +1,12 @@
0
-require 'rake'
0
-require 'rake/rdoctask'
0
+require 'rubygems'
0
+begin
0
+ hanna_dir = '/home/mislav/projects/hanna/lib'
0
+ $:.unshift hanna_dir if File.exists? hanna_dir
0
+ require 'hanna/rdoctask'
0
+rescue LoadError
0
+ require 'rake'
0
+ require 'rake/rdoctask'
0
+end
0
 load 'test/tasks.rake'
0
 
0
 desc 'Default: run unit tests.'
0
@@ -7,22 +14,17 @@ task :default => :test
0
 
0
 desc 'Generate RDoc documentation for the will_paginate plugin.'
0
 Rake::RDocTask.new(:rdoc) do |rdoc|
0
- files = ['README.rdoc', 'LICENSE', 'CHANGELOG']
0
- files << FileList.new('lib/**/*.rb').
0
+ rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG').
0
+ include('lib/**/*.rb').
0
     exclude('lib/will_paginate/named_scope*').
0
     exclude('lib/will_paginate/array.rb').
0
     exclude('lib/will_paginate/version.rb')
0
-
0
- rdoc.rdoc_files.add(files)
0
+
0
   rdoc.main = "README.rdoc" # page to start on
0
   rdoc.title = "will_paginate documentation"
0
   
0
- templates = %w[/Users/chris/ruby/projects/err/rock/template.rb /var/www/rock/template.rb]
0
- rdoc.template = templates.find { |t| File.exists? t }
0
-
0
   rdoc.rdoc_dir = 'doc' # rdoc output folder
0
- rdoc.options << '--inline-source'
0
- rdoc.options << '--charset=UTF-8'
0
+ rdoc.options << '--inline-source' << '--charset=UTF-8'
0
   rdoc.options << '--webcvs=http://github.com/mislav/will_paginate/tree/master/'
0
 end
0
 

Comments

    No one has commented yet.