public
Rubygem
Description: log_buddy is your friendly little log buddy by your side
Homepage: http://opensource.thinkrelevance.com/wiki/log_buddy
Clone URL: git://github.com/relevance/logbuddy.git
Search Repo:
tweak rdocs and rdoc task
rsanheim (author)
Fri Apr 04 11:56:47 -0700 2008
commit  be68fdbc03b410768b8b5d30236ce8d09e8de2b8
tree    27bea1ecfbd3ee50c2f923f55df9c80b6417bcc8
parent  5da27646ca4692bfb17f70efeaeadf35d36f34c2
...
1
2
 
...
1
2
3
0
@@ -1,3 +1,4 @@
0
 .tm_last_run_ruby
0
 *.log
0
+doc/*
...
1
2
 
3
4
5
6
 
7
8
9
...
1
 
2
3
4
5
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
 = LogBuddy
0
-
0
+
0
 * Log bugs/issues/suggestions here: http://opensource.thinkrelevance.com/wiki/log_buddy
0
 * Source: http://github.com/relevance/log_buddy/tree/master
0
 * git clone git://github.com/relevance/log_buddy.git
0
-* rdocs:
0
+* rdocs: http://thinkrelevance.rubyforge.org/log_buddy/
0
 
0
 == DESCRIPTION:
0
 
...
2
3
4
5
 
6
7
8
...
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
...
2
3
4
 
5
6
7
8
...
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
0
@@ -2,7 +2,7 @@
0
 require 'hoe'
0
 require './lib/log_buddy.rb'
0
 
0
-Hoe.new('log_buddy', LogBuddy::VERSION) do |p|
0
+hoe = Hoe.new('log_buddy', LogBuddy::VERSION) do |p|
0
   p.rubyforge_name = 'thinkrelevance'
0
   p.author = 'Rob Sanheim - Relevance'
0
   p.email = 'opensource@thinkrelevance.com'
0
@@ -10,5 +10,26 @@
0
   p.description = p.paragraphs_of('README.rdoc', 2..5).join("\n\n")
0
   p.url = p.paragraphs_of('README.rdoc', 0).first.split(/\n/)[1..-1]
0
   p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
0
+ p.rdoc_pattern = /^(lib|bin|ext)|txt|rdoc$/
0
+end
0
+
0
+# Override RDoc to use allison template, and also use our .rdoc README as the main page instead of the default README.txt
0
+Rake::RDocTask.new(:docs) do |rd|
0
+ gem "allison"
0
+ gem "markaby"
0
+ rd.main = "README.rdoc"
0
+ # rd.options << '-d' if RUBY_PLATFORM !~ /win32/ and `which dot` =~ /\/dot/ and not ENV['NODOT']
0
+ rd.rdoc_dir = 'doc'
0
+ files = hoe.spec.files.grep(hoe.rdoc_pattern)
0
+ p files
0
+ files -= ['Manifest.txt']
0
+ rd.rdoc_files.push(*files)
0
+
0
+ title = "#{hoe.name}-#{hoe.version} Documentation"
0
+ title = "#{hoe.rubyforge_name}'s " + title if hoe.rubyforge_name != hoe.name
0
+ rdoc_template = `allison --path`.strip << ".rb"
0
+ rd.template = rdoc_template
0
+ rd.options << "-t #{title}"
0
+ rd.options << '--line-numbers' << '--inline-source'
0
 end
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 =begin rdoc
0
- LogBuddy is a developer tool for easy logging while testing, debugging, and inspecting.
0
+LogBuddy is a developer tool for easy logging while testing, debugging, and inspecting.
0
   
0
 Log shortcut method to give you easy, concise output of variables with their names and values.
0
 

Comments

    No one has commented yet.