bitclust-dev 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/tools/bc-tohtmlpackage.rb +19 -13
- metadata +11 -5
data/tools/bc-tohtmlpackage.rb
CHANGED
@@ -123,13 +123,22 @@ def main
|
|
123
123
|
db.transaction do
|
124
124
|
methods = {}
|
125
125
|
db.methods.each_with_index do |entry, i|
|
126
|
-
|
127
|
-
|
126
|
+
entry.names.each do |name|
|
127
|
+
method_name = entry.klass.name + entry.typemark + name
|
128
|
+
(methods[method_name] ||= []) << entry
|
129
|
+
end
|
128
130
|
end
|
129
|
-
entries = db.docs + db.libraries.sort + db.classes.sort
|
131
|
+
entries = db.docs + db.libraries.sort + db.classes.sort
|
132
|
+
n = entries.length + methods.length
|
130
133
|
entries.each_with_index do |c, i|
|
131
134
|
create_html_file(c, manager, outputdir, db)
|
132
|
-
$stderr.puts("#{i}/#{
|
135
|
+
$stderr.puts("#{i}/#{n} done") if i % 100 == 0 and verbose
|
136
|
+
end
|
137
|
+
i = entries.length
|
138
|
+
methods.each do |s, ents|
|
139
|
+
create_html_method_file(s, ents, manager, outputdir, db)
|
140
|
+
$stderr.puts("#{i}/#{n} done") if i % 100 == 0 and verbose
|
141
|
+
i += 1
|
133
142
|
end
|
134
143
|
end
|
135
144
|
fdb.transaction do
|
@@ -191,8 +200,6 @@ def create_html_file(entry, manager, outputdir, db)
|
|
191
200
|
path = outputdir + e.type_id.to_s + (encodename_package(e.name) + '.html')
|
192
201
|
create_html_file_p(entry, manager, path, db)
|
193
202
|
path.relative_path_from(outputdir).to_s
|
194
|
-
when :method
|
195
|
-
create_html_method_file(entry, manager, outputdir, db)
|
196
203
|
when :function
|
197
204
|
create_html_function_file(entry, manager, outputdir, db)
|
198
205
|
else
|
@@ -201,15 +208,14 @@ def create_html_file(entry, manager, outputdir, db)
|
|
201
208
|
e.unload
|
202
209
|
end
|
203
210
|
|
204
|
-
def create_html_method_file(
|
211
|
+
def create_html_method_file(method_name, entries, manager, outputdir, db)
|
205
212
|
path = nil
|
206
213
|
$bitclust_html_base = '../../..'
|
207
|
-
e =
|
208
|
-
e.
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
}
|
214
|
+
e = entries.sort.first
|
215
|
+
name = method_name.sub(e.klass.name + e.typemark, "")
|
216
|
+
path = outputdir + e.type_id.to_s + encodename_package(e.klass.name) +
|
217
|
+
e.typechar + (encodename_package(name) + '.html')
|
218
|
+
create_html_file_p(entries, manager, path, db)
|
213
219
|
path.relative_path_from(outputdir).to_s
|
214
220
|
end
|
215
221
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitclust-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bitclust-core
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.5.
|
21
|
+
version: 0.5.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.5.
|
29
|
+
version: 0.5.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: test-unit
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,15 +103,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- - ! '>='
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
hash: -3886220540771329052
|
106
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
110
|
none: false
|
108
111
|
requirements:
|
109
112
|
- - ! '>='
|
110
113
|
- !ruby/object:Gem::Version
|
111
114
|
version: '0'
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
hash: -3886220540771329052
|
112
118
|
requirements: []
|
113
119
|
rubyforge_project: ''
|
114
|
-
rubygems_version: 1.8.
|
120
|
+
rubygems_version: 1.8.24
|
115
121
|
signing_key:
|
116
122
|
specification_version: 3
|
117
123
|
summary: BitClust is a rurema document processor.
|