crohr-docapi 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/docapi.gemspec +2 -2
  3. data/lib/docapi.rb +3 -2
  4. metadata +4 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{docapi}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril Rohr"]
12
- s.date = %q{2009-09-10}
12
+ s.date = %q{2009-09-15}
13
13
  s.default_executable = %q{docapi}
14
14
  s.description = %q{RDoc template for generating API documentation.}
15
15
  s.email = %q{cyril.rohr@gmail.com}
@@ -115,10 +115,11 @@ class Docapi
115
115
  methods.shift
116
116
  methods.map!{ |m|
117
117
  ["<div class='docapi-subsection'>", m.gsub(/<blockquote><pre>.*/m, "").gsub(/<a name="(.+?)">(.*?)<br \/>\s*?<\/a>/m, "<div class='docapi-title'><a name=\"\\1\">\\2<a></div>").gsub(/<h2>(.*?)<\/h2>/m, "<div class='docapi-subtitle'>\\1</div>").gsub(/<pre>(.*?)<\/pre>/m, "<pre><code>\\1</code></pre>"), "</div>"].join("")
118
- }.reverse!
118
+ }
119
119
 
120
120
  File.open(File.join(output_dir.realpath, "documentation.html"), "w+") do |f|
121
- methods.each{ |method| f << method }
121
+ # sort methods by :call-seq: length ASC. A bit dirty but...
122
+ methods.sort_by{|m| method = m[/<div class='docapi-title'><a name=".*?">(.+?)<a><\/div>/, 1].length}.each{ |method| f << method }
122
123
  end
123
124
  end
124
125
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crohr-docapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Rohr
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-10 00:00:00 -07:00
12
+ date: 2009-09-15 00:00:00 -07:00
13
13
  default_executable: docapi
14
14
  dependencies: []
15
15
 
@@ -58,6 +58,7 @@ files:
58
58
  - test/doc/3-tutorials/2-ruby/example-1.rb
59
59
  has_rdoc: true
60
60
  homepage: http://github.com/crohr/docapi
61
+ licenses:
61
62
  post_install_message:
62
63
  rdoc_options:
63
64
  - --charset=UTF-8
@@ -78,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  requirements: []
79
80
 
80
81
  rubyforge_project:
81
- rubygems_version: 1.2.0
82
+ rubygems_version: 1.3.5
82
83
  signing_key:
83
84
  specification_version: 3
84
85
  summary: RDoc template for generating API documentation.