rake 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rake might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/Rakefile +2 -2
  2. data/doc/jamis.rb +564 -0
  3. data/lib/rake.rb +1 -1
  4. metadata +17 -16
data/Rakefile CHANGED
@@ -87,6 +87,7 @@ rd = Rake::RDocTask.new("rdoc") { |rdoc|
87
87
  rdoc.rdoc_dir = 'html'
88
88
  # rdoc.template = 'kilmer'
89
89
  # rdoc.template = 'css2'
90
+ rdoc.template = 'jamis'
90
91
  rdoc.title = "Rake -- Ruby Make"
91
92
  rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
92
93
  rdoc.rdoc_files.include('README', 'MIT-LICENSE', 'TODO', 'CHANGES')
@@ -140,7 +141,6 @@ else
140
141
  #### Load-time details: library and application (you will need one or both).
141
142
 
142
143
  s.require_path = 'lib' # Use these for libraries.
143
- s.autorequire = 'rake'
144
144
 
145
145
  s.bindir = "bin" # Use these for applications.
146
146
  s.executables = ["rake"]
@@ -164,7 +164,7 @@ else
164
164
  end
165
165
 
166
166
  Rake::GemPackageTask.new(spec) do |pkg|
167
- #pkg.need_zip = true
167
+ pkg.need_zip = true
168
168
  pkg.need_tar = true
169
169
  end
170
170
  end
@@ -0,0 +1,564 @@
1
+ module RDoc
2
+ module Page
3
+
4
+ FONTS = "\"Bitstream Vera Sans\", Verdana, Arial, Helvetica, sans-serif"
5
+
6
+ STYLE = <<CSS
7
+ a {
8
+ color: #00F;
9
+ text-decoration: none;
10
+ }
11
+
12
+ a:hover {
13
+ color: #77F;
14
+ text-decoration: underline;
15
+ }
16
+
17
+ body, td, p {
18
+ font-family: %fonts%;
19
+ background: #FFF;
20
+ color: #000;
21
+ margin: 0px;
22
+ font-size: small;
23
+ }
24
+
25
+ #content {
26
+ margin: 2em;
27
+ }
28
+
29
+ #description p {
30
+ margin-bottom: 0.5em;
31
+ }
32
+
33
+ .sectiontitle {
34
+ margin-top: 1em;
35
+ margin-bottom: 1em;
36
+ padding: 0.5em;
37
+ padding-left: 2em;
38
+ background: #005;
39
+ color: #FFF;
40
+ font-weight: bold;
41
+ border: 1px dotted black;
42
+ }
43
+
44
+ .attr-rw {
45
+ padding-left: 1em;
46
+ padding-right: 1em;
47
+ text-align: center;
48
+ color: #055;
49
+ }
50
+
51
+ .attr-name {
52
+ font-weight: bold;
53
+ }
54
+
55
+ .attr-desc {
56
+ }
57
+
58
+ .attr-value {
59
+ font-family: monospace;
60
+ }
61
+
62
+ .file-title-prefix {
63
+ font-size: large;
64
+ }
65
+
66
+ .file-title {
67
+ font-size: large;
68
+ font-weight: bold;
69
+ background: #005;
70
+ color: #FFF;
71
+ }
72
+
73
+ .banner {
74
+ background: #005;
75
+ color: #FFF;
76
+ border: 1px solid black;
77
+ padding: 1em;
78
+ }
79
+
80
+ .banner td {
81
+ background: transparent;
82
+ color: #FFF;
83
+ }
84
+
85
+ h1 a, h2 a, .sectiontitle a, .banner a {
86
+ color: #FF0;
87
+ }
88
+
89
+ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
90
+ color: #FF7;
91
+ }
92
+
93
+ .dyn-source {
94
+ display: none;
95
+ background: #FFE;
96
+ color: #000;
97
+ border: 1px dotted black;
98
+ margin: 0.5em 2em 0.5em 2em;
99
+ padding: 0.5em;
100
+ }
101
+
102
+ .dyn-source .cmt {
103
+ color: #00F;
104
+ font-style: italic;
105
+ }
106
+
107
+ .dyn-source .kw {
108
+ color: #070;
109
+ font-weight: bold;
110
+ }
111
+
112
+ .method {
113
+ margin-left: 1em;
114
+ margin-right: 1em;
115
+ margin-bottom: 1em;
116
+ }
117
+
118
+ .description pre {
119
+ padding: 0.5em;
120
+ border: 1px dotted black;
121
+ background: #FFE;
122
+ }
123
+
124
+ .method .title {
125
+ font-family: monospace;
126
+ font-size: large;
127
+ border-bottom: 1px dashed black;
128
+ margin-bottom: 0.3em;
129
+ padding-bottom: 0.1em;
130
+ }
131
+
132
+ .method .description, .method .sourcecode {
133
+ margin-left: 1em;
134
+ }
135
+
136
+ .description p, .sourcecode p {
137
+ margin-bottom: 0.5em;
138
+ }
139
+
140
+ .method .sourcecode p.source-link {
141
+ text-indent: 0em;
142
+ margin-top: 0.5em;
143
+ }
144
+
145
+ .method .aka {
146
+ margin-top: 0.3em;
147
+ margin-left: 1em;
148
+ font-style: italic;
149
+ text-indent: 2em;
150
+ }
151
+
152
+ h1 {
153
+ padding: 1em;
154
+ border: 1px solid black;
155
+ font-size: x-large;
156
+ font-weight: bold;
157
+ color: #FFF;
158
+ background: #007;
159
+ }
160
+
161
+ h2 {
162
+ padding: 0.5em 1em 0.5em 1em;
163
+ border: 1px solid black;
164
+ font-size: large;
165
+ font-weight: bold;
166
+ color: #FFF;
167
+ background: #009;
168
+ }
169
+
170
+ h3, h4, h5, h6 {
171
+ padding: 0.2em 1em 0.2em 1em;
172
+ border: 1px dashed black;
173
+ color: #000;
174
+ background: #AAF;
175
+ }
176
+
177
+ .sourcecode > pre {
178
+ padding: 0.5em;
179
+ border: 1px dotted black;
180
+ background: #FFE;
181
+ }
182
+
183
+ CSS
184
+
185
+ BODY = <<HTML
186
+ <html>
187
+ <head>
188
+ <title>%title%</title>
189
+ <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
190
+ <link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
191
+
192
+ <script type="text/javascript" language="JavaScript">
193
+ <!--
194
+ function toggleSource( id )
195
+ {
196
+ var elem
197
+ var link
198
+
199
+ if( document.all )
200
+ {
201
+ elem = eval( "document.all." + id )
202
+ link = eval( "document.all.l_" + id )
203
+ }
204
+ else
205
+ {
206
+ elem = document.getElementById( id )
207
+ link = document.getElementById( "l_" + id )
208
+ }
209
+
210
+ if( elem.style.display == "block" )
211
+ {
212
+ elem.style.display = "none"
213
+ link.innerHTML = "show source"
214
+ }
215
+ else
216
+ {
217
+ elem.style.display = "block"
218
+ link.innerHTML = "hide source"
219
+ }
220
+ }
221
+
222
+ function openCode( url )
223
+ {
224
+ window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
225
+ }
226
+ //-->
227
+ </script>
228
+ </head>
229
+
230
+ <body>
231
+ !INCLUDE! <!-- banner header -->
232
+
233
+ <div id="content">
234
+ IF:diagram
235
+ <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center">
236
+ %diagram%
237
+ </td></tr></table>
238
+ ENDIF:diagram
239
+
240
+ IF:description
241
+ <div class="description">%description%</div>
242
+ ENDIF:description
243
+
244
+ IF:requires
245
+ <div class="sectiontitle">Required Files</div>
246
+ <ul>
247
+ START:requires
248
+ <li>HREF:aref:name:</li>
249
+ END:requires
250
+ </ul>
251
+ ENDIF:requires
252
+
253
+ IF:methods
254
+ <div class="sectiontitle">Methods</div>
255
+ <ul>
256
+ START:methods
257
+ <li>HREF:aref:name:</li>
258
+ END:methods
259
+ </ul>
260
+ ENDIF:methods
261
+
262
+ IF:constants
263
+ <div class="sectiontitle">Constants</div>
264
+ <table border='0' cellpadding='5'>
265
+ START:constants
266
+ <tr valign='top'>
267
+ <td class="attr-name">%name%</td>
268
+ <td>=</td>
269
+ <td class="attr-value">%value%</td>
270
+ </tr>
271
+ IF:desc
272
+ <tr valign='top'>
273
+ <td>&nbsp;</td>
274
+ <td colspan="2" class="attr-desc">%desc%</td>
275
+ </tr>
276
+ ENDIF:desc
277
+ END:constants
278
+ </table>
279
+ ENDIF:constants
280
+
281
+ IF:attributes
282
+ <div class="sectiontitle">Attributes</div>
283
+ <table border='0' cellpadding='5'>
284
+ START:attributes
285
+ <tr valign='top'>
286
+ <td class='attr-rw'>
287
+ IF:rw
288
+ [%rw%]
289
+ ENDIF:rw
290
+ </td>
291
+ <td class='attr-name'>%name%</td>
292
+ <td class='attr-desc'>%a_desc%</td>
293
+ </tr>
294
+ END:attributes
295
+ </table>
296
+ ENDIF:attributes
297
+
298
+ IF:classlist
299
+ <div class="sectiontitle">Classes and Modules</div>
300
+ %classlist%
301
+ ENDIF:classlist
302
+
303
+ !INCLUDE! <!-- method descriptions -->
304
+
305
+ </div>
306
+ </body>
307
+ </html>
308
+ HTML
309
+
310
+ FILE_PAGE = <<HTML
311
+ <table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
312
+ <tr><td>
313
+ <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
314
+ <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />%short_name%</td>
315
+ <td align="right">
316
+ <table border='0' cellspacing="0" cellpadding="2">
317
+ <tr>
318
+ <td>Path:</td>
319
+ <td>%full_path%
320
+ IF:cvsurl
321
+ &nbsp;(<a href="%cvsurl%">CVS</a>)
322
+ ENDIF:cvsurl
323
+ </td>
324
+ </tr>
325
+ <tr>
326
+ <td>Modified:</td>
327
+ <td>%dtm_modified%</td>
328
+ </tr>
329
+ </table>
330
+ </td></tr>
331
+ </table>
332
+ </td></tr>
333
+ </table><br>
334
+ HTML
335
+
336
+ ###################################################################
337
+
338
+ CLASS_PAGE = <<HTML
339
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
340
+ <td class="file-title"><span class="file-title-prefix">%classmod%</span><br />%full_name%</td>
341
+ <td align="right">
342
+ <table cellspacing=0 cellpadding=2>
343
+ <tr valign="top">
344
+ <td>In:</td>
345
+ <td>
346
+ START:infiles
347
+ HREF:full_path_url:full_path:
348
+ IF:cvsurl
349
+ &nbsp;(<a href="%cvsurl%">CVS</a>)
350
+ ENDIF:cvsurl
351
+ END:infiles
352
+ </td>
353
+ </tr>
354
+ IF:parent
355
+ <tr>
356
+ <td>Parent:</td>
357
+ <td>
358
+ IF:par_url
359
+ <a href="%par_url%">
360
+ ENDIF:par_url
361
+ %parent%
362
+ IF:par_url
363
+ </a>
364
+ ENDIF:par_url
365
+ </td>
366
+ </tr>
367
+ ENDIF:parent
368
+ </table>
369
+ </td>
370
+ </tr>
371
+ </table>
372
+ HTML
373
+
374
+ ###################################################################
375
+
376
+ METHOD_LIST = <<HTML
377
+ IF:includes
378
+ <div class="sectiontitle">Included Modules</div>
379
+ <ul>
380
+ START:includes
381
+ <li>HREF:aref:name:</li>
382
+ END:includes
383
+ </ul>
384
+ ENDIF:includes
385
+
386
+ IF:method_list
387
+ START:method_list
388
+ IF:methods
389
+ <div class="sectiontitle">%type% %category% methods</div>
390
+ START:methods
391
+ <div class="method">
392
+ <div class="title">
393
+ IF:callseq
394
+ <a name="%aref%"></a><b>%callseq%</b>
395
+ ENDIF:callseq
396
+ IFNOT:callseq
397
+ <a name="%aref%"></a><b>%name%</b>%params%
398
+ ENDIF:callseq
399
+ IF:codeurl
400
+ [ <a href="javascript:openCode('%codeurl%')">source</a> ]
401
+ ENDIF:codeurl
402
+ </div>
403
+ IF:m_desc
404
+ <div class="description">
405
+ %m_desc%
406
+ </div>
407
+ ENDIF:m_desc
408
+ IF:aka
409
+ <div class="aka">
410
+ This method is also aliased as
411
+ START:aka
412
+ <a href="%aref%">%name%</a>
413
+ END:aka
414
+ </div>
415
+ ENDIF:aka
416
+ IF:sourcecode
417
+ <div class="sourcecode">
418
+ <p class="source-link">[ <a href="javascript:toggleSource('%aref%-source')" id="l_%aref%-source">show source</a> ]</p>
419
+ <div id="%aref%-source" class="dyn-source">
420
+ <pre>
421
+ %sourcecode%
422
+ </pre>
423
+ </div>
424
+ </div>
425
+ ENDIF:sourcecode
426
+ </div>
427
+ END:methods
428
+ ENDIF:methods
429
+ END:method_list
430
+ ENDIF:method_list
431
+ HTML
432
+
433
+ =begin
434
+ =end
435
+
436
+ ########################## Source code ##########################
437
+
438
+ SRC_PAGE = <<HTML
439
+ <html>
440
+ <head><title>%title%</title>
441
+ <meta http-equiv="Content-Type" content="text/html; charset=%charset%">
442
+ <style>
443
+ .ruby-comment { color: green; font-style: italic }
444
+ .ruby-constant { color: #4433aa; font-weight: bold; }
445
+ .ruby-identifier { color: #222222; }
446
+ .ruby-ivar { color: #2233dd; }
447
+ .ruby-keyword { color: #3333FF; font-weight: bold }
448
+ .ruby-node { color: #777777; }
449
+ .ruby-operator { color: #111111; }
450
+ .ruby-regexp { color: #662222; }
451
+ .ruby-value { color: #662222; font-style: italic }
452
+ .kw { color: #3333FF; font-weight: bold }
453
+ .cmt { color: green; font-style: italic }
454
+ .str { color: #662222; font-style: italic }
455
+ .re { color: #662222; }
456
+ </style>
457
+ </head>
458
+ <body bgcolor="white">
459
+ <pre>%code%</pre>
460
+ </body>
461
+ </html>
462
+ HTML
463
+
464
+ ########################## Index ################################
465
+
466
+ FR_INDEX_BODY = <<HTML
467
+ !INCLUDE!
468
+ HTML
469
+
470
+ FILE_INDEX = <<HTML
471
+ <html>
472
+ <head>
473
+ <meta http-equiv="Content-Type" content="text/html; charset=%charset%">
474
+ <style>
475
+ <!--
476
+ body {
477
+ background-color: #EEE;
478
+ font-family: #{FONTS};
479
+ color: #000;
480
+ margin: 0px;
481
+ }
482
+ .banner {
483
+ background: #005;
484
+ color: #FFF;
485
+ padding: 0.2em;
486
+ font-size: small;
487
+ font-weight: bold;
488
+ text-align: center;
489
+ }
490
+ .entries {
491
+ margin: 0.25em 1em 0 1em;
492
+ font-size: x-small;
493
+ }
494
+ a {
495
+ color: #00F;
496
+ text-decoration: none;
497
+ }
498
+ a:hover {
499
+ color: #77F;
500
+ text-decoration: underline;
501
+ }
502
+ -->
503
+ </style>
504
+ <base target="docwin">
505
+ </head>
506
+ <body>
507
+ <div class="banner">%list_title%</div>
508
+ <div class="entries">
509
+ START:entries
510
+ <a href="%href%">%name%</a><br>
511
+ END:entries
512
+ </div>
513
+ </body></html>
514
+ HTML
515
+
516
+ CLASS_INDEX = FILE_INDEX
517
+ METHOD_INDEX = FILE_INDEX
518
+
519
+ INDEX = <<HTML
520
+ <html>
521
+ <head>
522
+ <title>%title%</title>
523
+ <meta http-equiv="Content-Type" content="text/html; charset=%charset%">
524
+ </head>
525
+
526
+ <frameset cols="20%,*">
527
+ <frameset rows="15%,35%,50%">
528
+ <frame src="fr_file_index.html" title="Files" name="Files" />
529
+ <frame src="fr_class_index.html" name="Classes" />
530
+ <frame src="fr_method_index.html" name="Methods" />
531
+ </frameset>
532
+ IF:inline_source
533
+ <frame src="%initial_page%" name="docwin">
534
+ ENDIF:inline_source
535
+ IFNOT:inline_source
536
+ <frameset rows="80%,20%">
537
+ <frame src="%initial_page%" name="docwin">
538
+ <frame src="blank.html" name="source">
539
+ </frameset>
540
+ ENDIF:inline_source
541
+ <noframes>
542
+ <body bgcolor="white">
543
+ Click <a href="html/index.html">here</a> for a non-frames
544
+ version of this page.
545
+ </body>
546
+ </noframes>
547
+ </frameset>
548
+
549
+ </html>
550
+ HTML
551
+
552
+ # and a blank page to use as a target
553
+ BLANK = %{
554
+ <html><body bgcolor="white"></body></html>
555
+ }
556
+
557
+ def write_extra_pages
558
+ template = TemplatePage.new(BLANK)
559
+ File.open("blank.html", "w") { |f| template.write_html_on(f, {}) }
560
+ end
561
+
562
+ end
563
+ end
564
+
@@ -29,7 +29,7 @@
29
29
  # referenced as a library via a require statement, but it can be
30
30
  # distributed independently as an application.
31
31
 
32
- RAKEVERSION = '0.4.8'
32
+ RAKEVERSION = '0.4.9'
33
33
 
34
34
  require 'rbconfig'
35
35
  require 'ftools'
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: "0.8"
2
+ rubygems_version: 0.8.1
3
3
  specification_version: 1
4
4
  name: rake
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.8
7
- date: 2004-09-15
6
+ version: 0.4.9
7
+ date: 2004-10-30
8
8
  summary: Ruby based make-like utility.
9
9
  require_paths:
10
10
  - lib
@@ -13,7 +13,7 @@ email: jim@weirichhouse.org
13
13
  homepage: http://onestepback.org
14
14
  rubyforge_project: rake
15
15
  description: Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax.
16
- autorequire: rake
16
+ autorequire:
17
17
  default_executable: rake
18
18
  bindir: bin
19
19
  has_rdoc: true
@@ -28,46 +28,47 @@ platform: ruby
28
28
  files:
29
29
  - install.rb
30
30
  - CHANGES
31
- - MIT-LICENSE
32
31
  - Rakefile
33
32
  - README
34
33
  - TODO
34
+ - MIT-LICENSE
35
35
  - bin/rake
36
36
  - lib/rake.rb
37
37
  - lib/rake/clean.rb
38
- - lib/rake/gempackagetask.rb
38
+ - lib/rake/tasklib.rb
39
39
  - lib/rake/packagetask.rb
40
40
  - lib/rake/rdoctask.rb
41
41
  - lib/rake/runtest.rb
42
- - lib/rake/tasklib.rb
43
42
  - lib/rake/testtask.rb
44
- - lib/rake/contrib/compositepublisher.rb
43
+ - lib/rake/gempackagetask.rb
45
44
  - lib/rake/contrib/ftptools.rb
45
+ - lib/rake/contrib/sys.rb
46
+ - lib/rake/contrib/compositepublisher.rb
46
47
  - lib/rake/contrib/publisher.rb
47
48
  - lib/rake/contrib/rubyforgepublisher.rb
48
49
  - lib/rake/contrib/sshpublisher.rb
49
- - lib/rake/contrib/sys.rb
50
50
  - test/filecreation.rb
51
- - test/functional.rb
52
51
  - test/testclean.rb
53
52
  - test/testfilelist.rb
54
- - test/testfileutils.rb
53
+ - test/testtasks.rb
55
54
  - test/testftp.rb
55
+ - test/testfileutils.rb
56
56
  - test/testpackagetask.rb
57
- - test/testtasks.rb
57
+ - test/functional.rb
58
58
  - test/testtesttask.rb
59
59
  - test/contrib/testsys.rb
60
60
  - test/data/rbext/rakefile.rb
61
61
  - doc/example
62
62
  - doc/glossary.rdoc
63
63
  - doc/proto_rake.rdoc
64
- - doc/rakefile.rdoc
64
+ - doc/jamis.rb
65
65
  - doc/rational.rdoc
66
+ - doc/rakefile.rdoc
67
+ - doc/example/Rakefile1
68
+ - doc/example/Rakefile2
66
69
  - doc/example/a.c
67
70
  - doc/example/b.c
68
71
  - doc/example/main.c
69
- - doc/example/Rakefile1
70
- - doc/example/Rakefile2
71
72
  test_files: []
72
73
  rdoc_options:
73
74
  - "--title"
@@ -82,8 +83,8 @@ extra_rdoc_files:
82
83
  - CHANGES
83
84
  - doc/glossary.rdoc
84
85
  - doc/proto_rake.rdoc
85
- - doc/rakefile.rdoc
86
86
  - doc/rational.rdoc
87
+ - doc/rakefile.rdoc
87
88
  executables:
88
89
  - rake
89
90
  extensions: []