darkfish-rdoc 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +21 -0
- data/Rakefile +5 -2
- data/lib/darkfish-rdoc.rb +1 -1
- data/lib/rdoc/generator/darkfish.rb +7 -7
- data/lib/rdoc/generator/template/darkfish/classpage.rhtml +19 -4
- data/lib/rdoc/generator/template/darkfish/rdoc.css +1 -1
- data/rake/rdoc.rb +2 -1
- data/rake/svn.rb +10 -3
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
-- Tue, 19 Aug 2008 02:12:27 -0000 by deveiant (r27) -----
|
2
|
+
Changed: lib/rdoc/generator/darkfish.rb
|
3
|
+
lib/darkfish-rdoc.rb
|
4
|
+
|
5
|
+
Oops. Forgot I need to change the version string in two places. Should really figure out some better
|
6
|
+
way to do this.
|
7
|
+
|
8
|
+
|
9
|
+
-- Tue, 19 Aug 2008 02:10:53 -0000 by deveiant (r26) -----
|
10
|
+
Changed: README
|
11
|
+
lib/rdoc/generator/darkfish.rb
|
12
|
+
lib/rdoc/generator/template/darkfish/classpage.rhtml
|
13
|
+
Rakefile
|
14
|
+
lib/rdoc/generator/template/darkfish/rdoc.css
|
15
|
+
ChangeLog (and 2 other/s)
|
16
|
+
|
17
|
+
* Bumped version to 1.1.3
|
18
|
+
* Updated build system
|
19
|
+
* Fixed output for C source
|
20
|
+
|
21
|
+
|
1
22
|
-- Thu, 14 Aug 2008 00:59:07 -0000 by deveiant (r24) -----
|
2
23
|
Changed: /trunk
|
3
24
|
lib/rdoc/generator/darkfish.rb
|
data/Rakefile
CHANGED
@@ -234,8 +234,11 @@ task :cruise => [:clean, :spec, :package] do |task|
|
|
234
234
|
artifact_dir = ARTIFACTS_DIR.cleanpath
|
235
235
|
artifact_dir.mkpath
|
236
236
|
|
237
|
-
|
238
|
-
|
237
|
+
coverage = BASEDIR + 'coverage'
|
238
|
+
if coverage.exist? && coverage.directory?
|
239
|
+
$stderr.puts "Copying coverage stats..."
|
240
|
+
FileUtils.cp_r( 'coverage', artifact_dir )
|
241
|
+
end
|
239
242
|
|
240
243
|
$stderr.puts "Copying packages..."
|
241
244
|
FileUtils.cp_r( FileList['pkg/*'].to_a, artifact_dir )
|
data/lib/darkfish-rdoc.rb
CHANGED
@@ -8,7 +8,7 @@ require 'pathname'
|
|
8
8
|
require 'rdoc/rdoc' unless defined?( RDoc ) && defined?( RDoc::RDoc )
|
9
9
|
|
10
10
|
### Version for the Rakefile (update this in rdoc/generator/darkfish.rb too)
|
11
|
-
# VERSION = '1.1.
|
11
|
+
# VERSION = '1.1.3'
|
12
12
|
|
13
13
|
begin
|
14
14
|
generator_dir = Pathname.new( __FILE__ ).dirname + 'rdoc/generator'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!ruby
|
2
2
|
#
|
3
3
|
# Darkfish RDoc HTML Generator
|
4
|
-
# $Id: darkfish.rb
|
4
|
+
# $Id: darkfish.rb 27 2008-08-19 02:12:27Z deveiant $
|
5
5
|
#
|
6
6
|
# Author: Michael Granger <ged@FaerieMUD.org>
|
7
7
|
#
|
@@ -48,17 +48,17 @@ class RDoc::Generator::Darkfish < RDoc::Generator::XML
|
|
48
48
|
include ERB::Util
|
49
49
|
|
50
50
|
# Subversion rev
|
51
|
-
SVNRev = %$Rev:
|
51
|
+
SVNRev = %$Rev: 27 $
|
52
52
|
|
53
53
|
# Subversion ID
|
54
|
-
SVNId = %$Id: darkfish.rb
|
54
|
+
SVNId = %$Id: darkfish.rb 27 2008-08-19 02:12:27Z deveiant $
|
55
55
|
|
56
56
|
# Path to this file's parent directory. Used to find templates and other
|
57
57
|
# resources.
|
58
58
|
GENERATOR_DIR = Pathname.new( __FILE__ ).expand_path.dirname
|
59
59
|
|
60
|
-
# Darkfish Version (update this in )
|
61
|
-
VERSION = '1.1.
|
60
|
+
# Darkfish Version (update this in the comment in darkfish-rdoc.rb, too!)
|
61
|
+
VERSION = '1.1.3'
|
62
62
|
|
63
63
|
|
64
64
|
#################################################################
|
@@ -158,7 +158,7 @@ class RDoc::Generator::Darkfish < RDoc::Generator::XML
|
|
158
158
|
hash
|
159
159
|
}
|
160
160
|
|
161
|
-
# Make a hash of
|
161
|
+
# Make a hash of file info keyed by path
|
162
162
|
files_by_path = files.inject({}) {|hash, fileinfo|
|
163
163
|
hash[ fileinfo['full_path'] ] = fileinfo
|
164
164
|
hash[ fileinfo['full_path'] ][:outfile] =
|
@@ -292,7 +292,7 @@ class RDoc::Generator::Darkfish < RDoc::Generator::XML
|
|
292
292
|
end
|
293
293
|
|
294
294
|
|
295
|
-
# %q$Id: darkfish.rb
|
295
|
+
# %q$Id: darkfish.rb 27 2008-08-19 02:12:27Z deveiant $"
|
296
296
|
SVNID_PATTERN = /
|
297
297
|
\$Id:\s
|
298
298
|
(\S+)\s # filename
|
@@ -207,7 +207,16 @@
|
|
207
207
|
<div id="<%= methodlist['type'].downcase %>-<%= methodlist['category'].downcase %>-method-details" class="method-section section">
|
208
208
|
<h3 class="section-header"><%= methodlist['type'] %> <%= methodlist['category'] %> Methods</h3>
|
209
209
|
|
210
|
-
|
210
|
+
<% methodlist['methods'].each do |methodinfo| %>
|
211
|
+
|
212
|
+
<%
|
213
|
+
# If the method doesn't have a 'name' attribute, it's defined in C, so make one out of the
|
214
|
+
# first method name in the callseq.
|
215
|
+
unless methodinfo['name']
|
216
|
+
methodinfo['name'] = methodinfo['callseq'][/^.*?\.(\w+)/, 1] or
|
217
|
+
raise "No method name nor callseq!"
|
218
|
+
end
|
219
|
+
%>
|
211
220
|
<% if methodinfo['m_desc'] =~ /Alias for/ %>
|
212
221
|
<div id="<%= methodinfo['name'].gsub( /[^a-z]+/, '-' ) %>-method" class="method-detail method-alias">
|
213
222
|
<% else %>
|
@@ -216,9 +225,14 @@
|
|
216
225
|
<a name="<%= methodinfo['name'] %>"></a>
|
217
226
|
|
218
227
|
<div class="method-heading">
|
228
|
+
<% if methodinfo['callseq'] %>
|
229
|
+
<span class="method-callseq"><%= methodinfo['callseq'].strip.gsub( /^\w.*?\./m, '') %></span>
|
230
|
+
<span class="method-click-advice">click to toggle source</span>
|
231
|
+
<% else %>
|
219
232
|
<span class="method-name"><%= methodinfo['name'] %></span><span
|
220
233
|
class="method-args"><%= methodinfo['params'] %></span>
|
221
234
|
<span class="method-click-advice">click to toggle source</span>
|
235
|
+
<% end %>
|
222
236
|
</div>
|
223
237
|
|
224
238
|
<div class="method-description">
|
@@ -246,10 +260,11 @@
|
|
246
260
|
</div>
|
247
261
|
<% end %>
|
248
262
|
</div>
|
249
|
-
|
250
|
-
</div>
|
251
|
-
<% end %>
|
263
|
+
|
252
264
|
<% end %>
|
265
|
+
</div>
|
266
|
+
<% end %>
|
267
|
+
<% end %>
|
253
268
|
|
254
269
|
</div>
|
255
270
|
</div>
|
data/rake/rdoc.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# RDoc Rake tasks for ThingFish
|
3
|
-
# $Id: rdoc.rb
|
3
|
+
# $Id: rdoc.rb 35 2008-08-19 01:10:27Z deveiant $
|
4
4
|
#
|
5
5
|
|
6
6
|
require 'rake/rdoctask'
|
@@ -27,4 +27,5 @@ Rake::RDocTask.new do |rdoc|
|
|
27
27
|
|
28
28
|
rdoc.rdoc_files.include 'README'
|
29
29
|
rdoc.rdoc_files.include LIB_FILES.collect {|f| f.to_s }
|
30
|
+
rdoc.rdoc_files.include EXT_FILES.collect {|f| f.to_s }
|
30
31
|
end
|
data/rake/svn.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Subversion Rake Tasks
|
3
|
-
# $Id: svn.rb
|
3
|
+
# $Id: svn.rb 33 2008-08-14 05:39:37Z deveiant $
|
4
4
|
#
|
5
5
|
# Authors:
|
6
6
|
# * Michael Granger <ged@FaerieMUD.org>
|
@@ -19,8 +19,15 @@ RELEASE_VERSION_PATTERN = /\d+\.\d+\.\d+/
|
|
19
19
|
|
20
20
|
DEFAULT_EDITOR = 'vi'
|
21
21
|
DEFAULT_KEYWORDS = %w[Date Rev Author URL Id]
|
22
|
-
KEYWORDED_FILEDIRS = %w[applets bin etc lib misc]
|
23
|
-
KEYWORDED_FILEPATTERN =
|
22
|
+
KEYWORDED_FILEDIRS = %w[applets spec bin etc ext experiments examples lib misc docs]
|
23
|
+
KEYWORDED_FILEPATTERN = /
|
24
|
+
^(?:
|
25
|
+
(?:meta)?rakefile.* # Rakefiles
|
26
|
+
|
|
27
|
+
.*\.(?:rb|c|h|js|html|css|template|erb) # Source file extensions
|
28
|
+
|
|
29
|
+
readme|install|todo
|
30
|
+
)$/ix
|
24
31
|
|
25
32
|
COMMIT_MSG_FILE = 'commit-msg.txt'
|
26
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: darkfish-rdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-08-
|
12
|
+
date: 2008-08-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|