bitclust-core 0.5.0

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.
Files changed (127) hide show
  1. data/ChangeLog +2907 -0
  2. data/Gemfile +7 -0
  3. data/README +21 -0
  4. data/Rakefile +20 -0
  5. data/bin/bitclust +14 -0
  6. data/bin/refe +36 -0
  7. data/bitclust-dev.gemspec +33 -0
  8. data/bitclust.gemspec +30 -0
  9. data/config.in +23 -0
  10. data/config.ru +48 -0
  11. data/config.ru.sample +31 -0
  12. data/data/bitclust/catalog/ja_JP.EUC-JP +78 -0
  13. data/data/bitclust/catalog/ja_JP.UTF-8 +78 -0
  14. data/data/bitclust/template.lillia/class +98 -0
  15. data/data/bitclust/template.lillia/class-index +28 -0
  16. data/data/bitclust/template.lillia/doc +48 -0
  17. data/data/bitclust/template.lillia/layout +19 -0
  18. data/data/bitclust/template.lillia/library +129 -0
  19. data/data/bitclust/template.lillia/library-index +32 -0
  20. data/data/bitclust/template.lillia/method +20 -0
  21. data/data/bitclust/template.lillia/rd_file +6 -0
  22. data/data/bitclust/template.offline/class +67 -0
  23. data/data/bitclust/template.offline/class-index +28 -0
  24. data/data/bitclust/template.offline/doc +13 -0
  25. data/data/bitclust/template.offline/function +22 -0
  26. data/data/bitclust/template.offline/function-index +24 -0
  27. data/data/bitclust/template.offline/layout +18 -0
  28. data/data/bitclust/template.offline/library +87 -0
  29. data/data/bitclust/template.offline/library-index +32 -0
  30. data/data/bitclust/template.offline/method +21 -0
  31. data/data/bitclust/template.offline/rd_file +6 -0
  32. data/data/bitclust/template/class +133 -0
  33. data/data/bitclust/template/class-index +30 -0
  34. data/data/bitclust/template/doc +14 -0
  35. data/data/bitclust/template/function +21 -0
  36. data/data/bitclust/template/function-index +25 -0
  37. data/data/bitclust/template/layout +19 -0
  38. data/data/bitclust/template/library +89 -0
  39. data/data/bitclust/template/library-index +35 -0
  40. data/data/bitclust/template/method +24 -0
  41. data/data/bitclust/template/opensearchdescription +10 -0
  42. data/data/bitclust/template/search +57 -0
  43. data/lib/bitclust.rb +9 -0
  44. data/lib/bitclust/app.rb +129 -0
  45. data/lib/bitclust/classentry.rb +425 -0
  46. data/lib/bitclust/compat.rb +39 -0
  47. data/lib/bitclust/completion.rb +531 -0
  48. data/lib/bitclust/crossrubyutils.rb +91 -0
  49. data/lib/bitclust/database.rb +181 -0
  50. data/lib/bitclust/docentry.rb +83 -0
  51. data/lib/bitclust/entry.rb +223 -0
  52. data/lib/bitclust/exception.rb +38 -0
  53. data/lib/bitclust/functiondatabase.rb +115 -0
  54. data/lib/bitclust/functionentry.rb +81 -0
  55. data/lib/bitclust/functionreferenceparser.rb +76 -0
  56. data/lib/bitclust/htmlutils.rb +80 -0
  57. data/lib/bitclust/interface.rb +87 -0
  58. data/lib/bitclust/libraryentry.rb +211 -0
  59. data/lib/bitclust/lineinput.rb +165 -0
  60. data/lib/bitclust/messagecatalog.rb +95 -0
  61. data/lib/bitclust/methoddatabase.rb +401 -0
  62. data/lib/bitclust/methodentry.rb +202 -0
  63. data/lib/bitclust/methodid.rb +209 -0
  64. data/lib/bitclust/methodsignature.rb +82 -0
  65. data/lib/bitclust/nameutils.rb +236 -0
  66. data/lib/bitclust/parseutils.rb +60 -0
  67. data/lib/bitclust/preprocessor.rb +273 -0
  68. data/lib/bitclust/rdcompiler.rb +507 -0
  69. data/lib/bitclust/refsdatabase.rb +66 -0
  70. data/lib/bitclust/requesthandler.rb +330 -0
  71. data/lib/bitclust/ridatabase.rb +349 -0
  72. data/lib/bitclust/rrdparser.rb +522 -0
  73. data/lib/bitclust/runner.rb +143 -0
  74. data/lib/bitclust/screen.rb +554 -0
  75. data/lib/bitclust/searcher.rb +518 -0
  76. data/lib/bitclust/server.rb +59 -0
  77. data/lib/bitclust/simplesearcher.rb +84 -0
  78. data/lib/bitclust/subcommand.rb +746 -0
  79. data/lib/bitclust/textutils.rb +51 -0
  80. data/lib/bitclust/version.rb +3 -0
  81. data/packer.rb +224 -0
  82. data/refe2.gemspec +29 -0
  83. data/server.exe +0 -0
  84. data/server.exy +159 -0
  85. data/server.rb +10 -0
  86. data/setup.rb +1596 -0
  87. data/standalone.rb +193 -0
  88. data/test/run_test.rb +15 -0
  89. data/test/test_bitclust.rb +81 -0
  90. data/test/test_entry.rb +39 -0
  91. data/test/test_functiondatabase.rb +55 -0
  92. data/test/test_libraryentry.rb +31 -0
  93. data/test/test_methoddatabase.rb +81 -0
  94. data/test/test_methodsignature.rb +14 -0
  95. data/test/test_nameutils.rb +324 -0
  96. data/test/test_preprocessor.rb +84 -0
  97. data/test/test_rdcompiler.rb +534 -0
  98. data/test/test_refsdatabase.rb +76 -0
  99. data/test/test_rrdparser.rb +26 -0
  100. data/test/test_runner.rb +102 -0
  101. data/test/test_simplesearcher.rb +48 -0
  102. data/theme/default/images/external.png +0 -0
  103. data/theme/default/rurema.png +0 -0
  104. data/theme/default/style.css +288 -0
  105. data/theme/default/test.css +254 -0
  106. data/theme/lillia/rurema.png +0 -0
  107. data/theme/lillia/style.css +331 -0
  108. data/theme/lillia/test.css +254 -0
  109. data/tools/bc-ancestors.rb +153 -0
  110. data/tools/bc-checkparams.rb +246 -0
  111. data/tools/bc-classes.rb +80 -0
  112. data/tools/bc-convert.rb +165 -0
  113. data/tools/bc-list.rb +63 -0
  114. data/tools/bc-methods.rb +171 -0
  115. data/tools/bc-preproc.rb +42 -0
  116. data/tools/bc-rdoc.rb +343 -0
  117. data/tools/bc-tochm.rb +301 -0
  118. data/tools/bc-tohtml.rb +125 -0
  119. data/tools/bc-tohtmlpackage.rb +241 -0
  120. data/tools/check-signature.rb +19 -0
  121. data/tools/forall-ruby.rb +20 -0
  122. data/tools/gencatalog.rb +69 -0
  123. data/tools/statrefm.rb +98 -0
  124. data/tools/stattodo.rb +150 -0
  125. data/tools/update-database.rb +146 -0
  126. data/view.cgi +6 -0
  127. metadata +222 -0
@@ -0,0 +1,254 @@
1
+ @charset "UTF-8";
2
+
3
+ /*
4
+ default.css
5
+ */
6
+
7
+ body {
8
+ margin-top: 20px;
9
+ margin-left: 2%;
10
+ margin-right: 2%;
11
+ line-height: 1.3;
12
+ text-align: left;
13
+ color: black;
14
+ font-family: osaka,'MS PGothic',sans-serif;
15
+ background-color: white;
16
+ }
17
+
18
+ /*
19
+ span.menuitem {
20
+ width: 3.9em;
21
+ text-align: center;
22
+ padding: 0px 2px;
23
+ margin: 0px;
24
+ color: white;
25
+ background-color: #ddd;
26
+ margin-right: 2px;
27
+ }
28
+ div.menu a:link,
29
+ div.menu a:visited {
30
+ width: 3.9em;
31
+ padding: 0px 2px;
32
+ margin: 0px;
33
+ color: #33a;
34
+ background-color: #ddd;
35
+ text-decoration: none;
36
+ }
37
+ div.menu a:active,
38
+ div.menu a:focus,
39
+ div.menu a:hover {
40
+ width: 3.9em;
41
+ padding: 0px 2px;
42
+ margin: 0px;
43
+ color: #fff;
44
+ background-color: #33a;
45
+ text-decoration: none;
46
+ }
47
+ span.menuseparator {
48
+ width: 1em;
49
+ padding: 0px;
50
+ margin: 0px;
51
+ }
52
+ */
53
+
54
+ address {
55
+ text-align: right;
56
+ font-size: x-small;
57
+ }
58
+
59
+ h1 {
60
+ font-size: 200%;
61
+ text-align: left;
62
+ color: white;
63
+ background-color: #33a;
64
+ padding: 0.4em;
65
+ margin: 0.2em 0em 0.5em 0em;
66
+ }
67
+
68
+ img.sitelogo {
69
+ vertical-align: middle;
70
+ }
71
+
72
+ h2 {
73
+ font-size: 150%;
74
+ text-align: left;
75
+ border-left: 10px solid #33a;
76
+ padding-left: 0.5em;
77
+ margin-top: 1.5em;
78
+ margin-bottom: 0.5em;
79
+ }
80
+
81
+ h3 {
82
+ font-size: 150%;
83
+ text-align: left;
84
+ margin-top: 0.5em;
85
+ margin-bottom: 0.5em;
86
+ }
87
+
88
+ /* tmp */
89
+ h4 {
90
+ font-size: 150%;
91
+ text-align: left;
92
+ margin-top: 0.5em;
93
+ margin-bottom: 0.5em;
94
+ }
95
+
96
+ /* never use */
97
+ h5, h6 {
98
+ background-color: red;
99
+ }
100
+
101
+ p {
102
+ line-height: 1.4;
103
+ margin-top: 0.5em;
104
+ margin-bottom: 0.5em;
105
+ margin-left: 0px;
106
+ }
107
+
108
+ span.kindinfo {
109
+ text-align: right;
110
+ margin-left: 8em;
111
+ }
112
+
113
+ span.compileerror {
114
+ color: red;
115
+ font-weight: bold;
116
+ }
117
+
118
+ pre {
119
+ line-height: 1.1;
120
+ background-color: #eee;
121
+ padding: 10px;
122
+ font-weight: normal;
123
+ }
124
+
125
+ blockquote {
126
+ background-color: transparent;
127
+ padding: 4px;
128
+ margin-left: 3em;
129
+ font-weight: normal;
130
+ }
131
+
132
+ ul {
133
+ margin-left: 0px;
134
+ padding-left: 2em;
135
+ }
136
+
137
+ li {
138
+ margin-left: 0px;
139
+ padding-left: 0px;
140
+ }
141
+
142
+ dl {
143
+ margin-left: 0em;
144
+ }
145
+
146
+ dt {
147
+ font-weight: bold;
148
+ }
149
+
150
+ dl.methodlist dt {
151
+ font-family: sans-serif;
152
+ }
153
+
154
+ dd {
155
+ margin: 0.3em 0em 1em 4em;
156
+ }
157
+
158
+ table {
159
+ border-collapse: collapse;
160
+ }
161
+
162
+ th {
163
+ align: left;
164
+ valign: top;
165
+ text-align: left;
166
+ vertical-align: top;
167
+ }
168
+
169
+ td {
170
+ align: left;
171
+ valign: top;
172
+ text-align: left;
173
+ vertical-align: top;
174
+ }
175
+
176
+ table.entries tr {
177
+ /* border: 1px solid gray; */
178
+ align: left;
179
+ valign: top;
180
+ text-align: left;
181
+ vertical-align: top;
182
+ }
183
+
184
+ td.signature {
185
+ padding: 0.5em;
186
+ background-color: #DDD;
187
+ border: 3px solid white;
188
+ width: 20em;
189
+ }
190
+
191
+ td.description {
192
+ padding: 0.5em;
193
+ background-color: #EEE;
194
+ border: 3px solid white;
195
+ }
196
+
197
+ td.library {
198
+ width: 6em;
199
+ padding: 0.5em;
200
+ background-color: #DDD;
201
+ border: 3px solid white;
202
+ }
203
+
204
+
205
+ a {
206
+ font-weight: bold;
207
+ text-decoration: none;
208
+ }
209
+ a:link {
210
+ color: #33a;
211
+ background-color: transparent;
212
+ }
213
+ a:visited {
214
+ /* color: #666666; */
215
+ color: #33a;
216
+ background-color: transparent;
217
+ }
218
+ a:hover, a:focus, a:active {
219
+ color: #fff;
220
+ background-color: #33a;
221
+ }
222
+
223
+ form {
224
+ padding: 0px;
225
+ margin: 0px;
226
+ }
227
+
228
+ hr {
229
+ color: #33a;
230
+ height: 1px;
231
+ }
232
+
233
+ @media print {
234
+ body {
235
+ font-family: osaka,'MS Mincho',serif;
236
+ line-height: 1.5;
237
+ }
238
+ div.menu {
239
+ display: none;
240
+ }
241
+ div.footer {
242
+ display: none;
243
+ }
244
+ h1 {
245
+ color: black;
246
+ background-color: white;
247
+ border-bottom: 2px solid #33a;
248
+ padding-bottom: 0em;
249
+ }
250
+ a, a:link, a:visited {
251
+ color: #33a;
252
+ font-weight: normal;
253
+ }
254
+ }
Binary file
@@ -0,0 +1,331 @@
1
+ /*
2
+ default.css
3
+ */
4
+
5
+ body {
6
+ background-color: white;
7
+ color: black;
8
+ font-family: Meiryo, "Hiragino Kaku Gothic Pro", "MS Gothic", Osaka, sans-serif;
9
+ text-align: left;
10
+ margin-top: 20px;
11
+ margin-left: 2%;
12
+ margin-right: 2%;
13
+ line-height: 1.3;
14
+ }
15
+
16
+ address {
17
+ text-align: right;
18
+ font-size: x-small;
19
+ }
20
+
21
+ h1 {
22
+ font-size: 200%;
23
+ text-align: left;
24
+ color: white;
25
+ background-color: #33a;
26
+ padding: 0.4em;
27
+ margin: 0.2em 0em 0.5em 0em;
28
+ }
29
+
30
+ img.sitelogo {
31
+ vertical-align: middle;
32
+ }
33
+
34
+ h2 {
35
+ font-size: 150%;
36
+ text-align: left;
37
+ border-left: 10px solid #33a;
38
+ padding-left: 0.5em;
39
+ margin-top: 1.5em;
40
+ margin-bottom: 0.5em;
41
+ }
42
+
43
+ h3 {
44
+ font-size: 150%;
45
+ text-align: left;
46
+ margin-top: 1.5em;
47
+ margin-bottom: 0.5em;
48
+ }
49
+
50
+ /* tmp */
51
+ h4 {
52
+ font-size: 120%;
53
+ text-align: left;
54
+ margin-top: 0.5em;
55
+ margin-bottom: 0.5em;
56
+ }
57
+
58
+ /* never use */
59
+ h5, h6 {
60
+ background-color: red;
61
+ }
62
+
63
+ p {
64
+ line-height: 1.4;
65
+ margin-top: 0.5em;
66
+ margin-bottom: 0.5em;
67
+ margin-left: 0px;
68
+ }
69
+
70
+ span.compileerror {
71
+ color: red;
72
+ font-weight: bold;
73
+ }
74
+
75
+ pre {
76
+ line-height: 1.1;
77
+ background-color: #eee;
78
+ padding: 10px;
79
+ font-weight: normal;
80
+ }
81
+
82
+ blockquote {
83
+ background-color: transparent;
84
+ padding: 4px;
85
+ margin-left: 3em;
86
+ font-weight: normal;
87
+ }
88
+
89
+ ul {
90
+ margin-left: 0px;
91
+ padding-left: 2em;
92
+ }
93
+
94
+ li {
95
+ margin-left: 0px;
96
+ padding-left: 0px;
97
+ }
98
+
99
+ ol li {
100
+ margin-bottom: 10px;
101
+ }
102
+
103
+ dl {
104
+ margin-left: 0em;
105
+ }
106
+
107
+ dt {
108
+ font-weight: bold;
109
+ }
110
+
111
+
112
+ dl.methodlist dt {
113
+ font-family: sans-serif;
114
+ }
115
+
116
+ dd {
117
+ margin: 0.3em 0em 1em 4em;
118
+ }
119
+
120
+ table {
121
+ border-collapse: collapse;
122
+ }
123
+
124
+ th {
125
+ text-align: left;
126
+ vertical-align: top;
127
+ background-color: #AAC;
128
+ border: 3px solid white;
129
+ padding: 0.3em;
130
+ }
131
+
132
+ td {
133
+ text-align: left;
134
+ vertical-align: top;
135
+ }
136
+
137
+ table.entries {
138
+ width: 100%;
139
+ }
140
+
141
+ table.entries tr {
142
+ /* border: 1px solid gray; */
143
+ text-align: left;
144
+ vertical-align: top;
145
+ }
146
+
147
+ td.signature {
148
+ padding: 0;
149
+ margin: 0;
150
+ background-color: #DDD;
151
+ border: 3px solid white;
152
+ width: 30%;
153
+ height: 100%;
154
+ }
155
+
156
+ td.signature a {
157
+ display: block;
158
+ padding: 0.3em;
159
+ width: 95%;
160
+ height: 100%;
161
+ }
162
+
163
+ td.description {
164
+ padding: 0.3em;
165
+ background-color: #EEE;
166
+ border: 3px solid white;
167
+ }
168
+
169
+ td.library {
170
+ width: 6em;
171
+ padding: 0.5em;
172
+ background-color: #DDD;
173
+ border: 3px solid white;
174
+ }
175
+
176
+ code {
177
+ font-family: monospace;
178
+ }
179
+
180
+ a {
181
+ font-weight: bold;
182
+ text-decoration: none;
183
+ }
184
+ a:link {
185
+ color: #33a;
186
+ background-color: transparent;
187
+ }
188
+ a:visited {
189
+ /* color: #666666; */
190
+ color: #33a;
191
+ background-color: transparent;
192
+ }
193
+ a:hover, a:focus, a:active {
194
+ color: #fff;
195
+ background-color: #33a;
196
+ }
197
+
198
+ form {
199
+ padding: 0px;
200
+ margin: 0px;
201
+ }
202
+
203
+ hr {
204
+ color: #33a;
205
+ height: 1px;
206
+ }
207
+
208
+ @media print {
209
+ body {
210
+ font-family: osaka,'MS Mincho',serif;
211
+ line-height: 1.5;
212
+ }
213
+ div.menu {
214
+ display: none;
215
+ }
216
+ div.footer {
217
+ display: none;
218
+ }
219
+ h1 {
220
+ color: black;
221
+ background-color: white;
222
+ border-bottom: 2px solid #33a;
223
+ padding-bottom: 0em;
224
+ }
225
+ a, a:link, a:visited {
226
+ color: #33a;
227
+ font-weight: normal;
228
+ }
229
+ }
230
+
231
+ #top_search {
232
+ position: absolute;
233
+ top: 15px;
234
+ right: 10px;
235
+ }
236
+
237
+ #main{
238
+ margin : 0 0 0 20% ;
239
+ padding : 0 ;
240
+ height : 100% ;
241
+ overflow: inherit;
242
+ }
243
+
244
+ .rightlist {
245
+ padding-bottom : 10px;
246
+ }
247
+
248
+ #leftbox {
249
+ position : fixed ;
250
+ left : 0px ;
251
+ top : 0px ;
252
+ width : 20% ;
253
+ height : 100%;
254
+ margin : 0 ;
255
+ }
256
+
257
+ .method-heading {
258
+ width: 99%;
259
+ color: black;
260
+ background-color: #eee;
261
+ border-left: 5px solid #666;
262
+ padding: 0.2em 0.5em 0.2em 0.5em;
263
+ display: block;
264
+ overflow: hidden;
265
+ }
266
+
267
+ .method-heading code{
268
+ float: left;
269
+ }
270
+
271
+
272
+ .kindinfo {
273
+ float: right;
274
+ }
275
+
276
+ .method-description{
277
+ padding-bottom: 10px;
278
+ margin-bottom: 90px ;
279
+ border-bottom: 1px solid #666;
280
+ }
281
+
282
+ #leftlist-bottom {
283
+ height : 35%;
284
+ }
285
+
286
+ #leftlist-up {
287
+ height : 65%;
288
+ }
289
+
290
+ .leftlist {
291
+ font: 85%/1.2 Arial, Helvetica, sans-serif;
292
+ overflow: auto;
293
+ top : 0px ;
294
+ margin : 0 ;
295
+ padding : 0 ;
296
+ }
297
+
298
+ .leftlist h2 {
299
+ border: 0;
300
+ margin: 0;
301
+ padding: .2em .5em .1em;
302
+ background-color: #33a;
303
+ font: small-caps 1.2em Georgia, serif;
304
+ color: white;
305
+ border-bottom: 1px solid gray;
306
+ }
307
+
308
+ .leftlist form input {
309
+ margin: .4em;
310
+ margin-bottom: 0;
311
+ width: 90%;
312
+ }
313
+
314
+
315
+ .leftlist ul {
316
+ margin: 0;
317
+ padding-left: 4px;
318
+ }
319
+
320
+ .leftlist li {
321
+ white-space: nowrap;
322
+ list-style-type: none;
323
+ }
324
+
325
+ .abstract p,
326
+ .abstract ul,
327
+ .abstract pre,
328
+ .abstract dl,
329
+ .abstract ol{
330
+ margin-left: 2em;
331
+ }