rote 0.3.4 → 0.3.6
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/bin/rote +0 -0
- data/lib/rote.rb +2 -2
- data/lib/rote/cache.rb +2 -2
- data/lib/rote/filters/redcloth.rb +2 -2
- data/lib/rote/rotetasks.rb +2 -2
- metadata +118 -109
data/bin/rote
CHANGED
File without changes
|
data/lib/rote.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# rote.rb - main Rote module
|
2
2
|
# Copyright (c) 2005, 2006 Ross Bamford (and contributors)
|
3
|
-
# $Id: rote.rb
|
3
|
+
# $Id: rote.rb 192 2009-11-04 12:53:03Z roscopeco $
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
# this software and associated documentation files (the "Software"), to deal in
|
@@ -41,7 +41,7 @@ end
|
|
41
41
|
require 'rake'
|
42
42
|
|
43
43
|
# Master Rote version. Manage this from the Rake release support.
|
44
|
-
ROTEVERSION = '0.3.
|
44
|
+
ROTEVERSION = '0.3.6'
|
45
45
|
|
46
46
|
#####
|
47
47
|
## *Rote* is a Rake (http://rake.rubyforge.org) based build tool for static
|
data/lib/rote/cache.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# (c)2005, 2006 Ross Bamford (and contributors)
|
5
5
|
#
|
6
6
|
# See 'rote.rb' or LICENSE for licence information.
|
7
|
-
# $Id: cache.rb
|
7
|
+
# $Id: cache.rb 190 2009-11-04 12:52:05Z roscopeco $
|
8
8
|
#++
|
9
9
|
# This file adds dynamic dependency tracking and caching for
|
10
10
|
# incremental builds, by adding methods to the Rake module
|
@@ -78,7 +78,7 @@ module Rake
|
|
78
78
|
begin
|
79
79
|
Rake.task_stack << self
|
80
80
|
Rake.cached_dependencies[name] = [] if Rake.cached_dependencies[name]
|
81
|
-
old_execute.bind(self).call
|
81
|
+
old_execute.bind(self).call({ })
|
82
82
|
ensure
|
83
83
|
Rake.task_stack.pop
|
84
84
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# (c)2005, 2006 Ross Bamford (and contributors)
|
4
4
|
#
|
5
5
|
# See 'rote.rb' or LICENSE for licence information.
|
6
|
-
# $Id: redcloth.rb
|
6
|
+
# $Id: redcloth.rb 191 2009-11-04 12:52:38Z roscopeco $
|
7
7
|
#++
|
8
8
|
|
9
9
|
require 'redcloth'
|
@@ -51,7 +51,7 @@ module Rote
|
|
51
51
|
# determine structure of content and insert anchors where necessary
|
52
52
|
headings = []
|
53
53
|
|
54
|
-
text = text.gsub
|
54
|
+
text = text.gsub(/^(\s*h(\d))(.*?)(\.(.*))$/) do
|
55
55
|
target = $~.dup
|
56
56
|
|
57
57
|
if target[3] =~ /#([^#]+)\)/
|
data/lib/rote/rotetasks.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# (c)2005 Ross Bamford (and contributors)
|
4
4
|
#
|
5
5
|
# See 'rote.rb' or LICENSE for licence information.
|
6
|
-
# $Id: rotetasks.rb
|
6
|
+
# $Id: rotetasks.rb 190 2009-11-04 12:52:05Z roscopeco $
|
7
7
|
#++
|
8
8
|
require 'rake'
|
9
9
|
require 'rake/tasklib'
|
@@ -347,7 +347,7 @@ module Rake
|
|
347
347
|
alias :pre_rote_execute :execute
|
348
348
|
# Execute the task, setting the _executed_ flag.
|
349
349
|
# Used by the +monitor+ task.
|
350
|
-
def execute
|
350
|
+
def execute(args)
|
351
351
|
@executed = true
|
352
352
|
pre_rote_execute
|
353
353
|
end
|
metadata
CHANGED
@@ -1,132 +1,148 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.0
|
3
|
-
specification_version: 1
|
4
2
|
name: rote
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2006-10-26 00:00:00 +01:00
|
8
|
-
summary: Adds template-based doc support to Rake.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: ross@roscopeco.co.uk
|
12
|
-
homepage: http://rote.rubyforge.org
|
13
|
-
rubyforge_project: rote
|
14
|
-
description: Rote is a set of Rake task libraries and utilities that enable easy rendering of textual documentation formats (like HTML) for websites and offline documentation.
|
15
|
-
autorequire:
|
16
|
-
default_executable: rote
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.3.6
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Ross Bamford
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-11-04 00:00:00 +00:00
|
13
|
+
default_executable: rote
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: RedCloth
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "3.0"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0.6"
|
34
|
+
version:
|
35
|
+
description: Rote is a set of Rake task libraries and utilities that enable easy rendering of textual documentation formats (like HTML) for websites and offline documentation.
|
36
|
+
email: ross@roscopeco.co.uk
|
37
|
+
executables:
|
38
|
+
- rote
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README
|
43
|
+
- LICENSE
|
44
|
+
- TODO
|
45
|
+
- CONTRIBUTORS
|
31
46
|
files:
|
32
47
|
- install.rb
|
33
|
-
- Rakefile
|
34
48
|
- README
|
49
|
+
- Rakefile
|
50
|
+
- CONTRIBUTORS
|
35
51
|
- TODO
|
36
52
|
- DONE
|
37
53
|
- LICENSE
|
38
|
-
- CONTRIBUTORS
|
39
54
|
- bin/rote
|
40
|
-
- lib/rote.rb
|
55
|
+
- lib/rote/app.rb
|
41
56
|
- lib/rote/extratasks.rb
|
42
|
-
- lib/rote/rotetasks.rb
|
43
|
-
- lib/rote/page.rb
|
44
57
|
- lib/rote/cache.rb
|
45
|
-
- lib/rote/app.rb
|
46
|
-
- lib/rote/filters.rb
|
47
58
|
- lib/rote/format.rb
|
48
59
|
- lib/rote/project/doc/pages/COMMON.rb
|
49
60
|
- lib/rote/project/doc/pages/index.rb
|
50
|
-
- lib/rote/
|
61
|
+
- lib/rote/filters.rb
|
62
|
+
- lib/rote/page.rb
|
63
|
+
- lib/rote/filters/toc.rb
|
64
|
+
- lib/rote/filters/exec.rb
|
51
65
|
- lib/rote/filters/rdoc.rb
|
52
|
-
- lib/rote/filters/eval.rb
|
53
66
|
- lib/rote/filters/base.rb
|
54
67
|
- lib/rote/filters/syntax.rb
|
55
68
|
- lib/rote/filters/redcloth.rb
|
56
|
-
- lib/rote/filters/exec.rb
|
57
|
-
- lib/rote/filters/toc.rb
|
58
|
-
- lib/rote/filters/tidy.rb
|
59
69
|
- lib/rote/filters/bluecloth.rb
|
70
|
+
- lib/rote/filters/tidy.rb
|
71
|
+
- lib/rote/filters/eval.rb
|
72
|
+
- lib/rote/format/html.rb
|
73
|
+
- lib/rote/rotetasks.rb
|
74
|
+
- lib/rote.rb
|
60
75
|
- lib/rote/builtin.rf
|
61
|
-
- lib/rote/project/Rakefile
|
62
|
-
- lib/rote/project/doc
|
63
76
|
- lib/rote/project/README
|
64
|
-
- lib/rote/project/doc
|
65
|
-
- lib/rote/project/doc/pages
|
77
|
+
- lib/rote/project/doc
|
66
78
|
- lib/rote/project/doc/layouts
|
79
|
+
- lib/rote/project/doc/layouts/normal.thtml
|
80
|
+
- lib/rote/project/doc/res
|
67
81
|
- lib/rote/project/doc/res/images
|
68
82
|
- lib/rote/project/doc/res/images/rote-tiny.png
|
83
|
+
- lib/rote/project/doc/pages
|
69
84
|
- lib/rote/project/doc/pages/index.thtml
|
70
|
-
- lib/rote/project/
|
85
|
+
- lib/rote/project/Rakefile
|
71
86
|
- test/test_filters.rb
|
72
|
-
- test/test_cache.rb
|
73
|
-
- test/test_page.rb
|
74
|
-
- test/pages
|
75
87
|
- test/test_html_page.rb
|
76
|
-
- test/
|
88
|
+
- test/test_page.rb
|
77
89
|
- test/gem_tests.rb
|
78
|
-
- test/
|
90
|
+
- test/layouts
|
91
|
+
- test/layouts/simple.rb
|
92
|
+
- test/layouts/withext.ext
|
93
|
+
- test/layouts/simple.txt
|
94
|
+
- test/layouts/nestme.txt
|
95
|
+
- test/layouts/nestme.rb
|
96
|
+
- test/test_cache.rb
|
97
|
+
- test/pages
|
98
|
+
- test/pages/withcode.rb
|
99
|
+
- test/pages/justtext.txt
|
79
100
|
- test/pages/baselayout.txt
|
80
|
-
- test/pages/nestedlayout.rb
|
81
101
|
- test/pages/badlayout.rb
|
82
102
|
- test/pages/samedir.rb
|
83
|
-
- test/pages/COMMON.rb
|
84
|
-
- test/pages/nested
|
85
|
-
- test/pages/custext.txt
|
86
|
-
- test/pages/withcode.rb
|
87
|
-
- test/pages/justtext.txt
|
88
103
|
- test/pages/badlayout.txt
|
89
|
-
- test/pages/
|
90
|
-
- test/pages/withcode.txt
|
91
|
-
- test/pages/nested/COMMON.rb
|
104
|
+
- test/pages/nested
|
92
105
|
- test/pages/nested/inner
|
93
106
|
- test/pages/nested/inner/COMMON.rb
|
94
107
|
- test/pages/nested/inner/nested-override.txt
|
95
|
-
- test/
|
96
|
-
- test/
|
97
|
-
- test/
|
98
|
-
- test/
|
99
|
-
- test/
|
100
|
-
-
|
101
|
-
-
|
102
|
-
- doc/pages
|
103
|
-
- doc/man
|
108
|
+
- test/pages/nested/COMMON.rb
|
109
|
+
- test/pages/nestedlayout.txt
|
110
|
+
- test/pages/custext.txt
|
111
|
+
- test/pages/COMMON.rb
|
112
|
+
- test/pages/withcode.txt
|
113
|
+
- test/pages/samedir.txt
|
114
|
+
- test/pages/nestedlayout.rb
|
104
115
|
- doc/layouts
|
116
|
+
- doc/layouts/page.html
|
117
|
+
- doc/res
|
105
118
|
- doc/res/images
|
106
|
-
- doc/res/
|
107
|
-
- doc/res/images/
|
119
|
+
- doc/res/images/go-home-med.png
|
120
|
+
- doc/res/images/computer-med.png
|
108
121
|
- doc/res/images/rote-small.png
|
109
|
-
- doc/res/images/rpot-tiny.png
|
110
122
|
- doc/res/images/user-id-med.png
|
111
|
-
- doc/res/images/document-new-med.png
|
112
|
-
- doc/res/images/computer-med.png
|
113
|
-
- doc/res/images/go-home-med.png
|
114
|
-
- doc/res/images/rpot-sml.png
|
115
|
-
- doc/res/images/rote-med.png
|
116
123
|
- doc/res/images/dialog-information-med.png
|
124
|
+
- doc/res/images/rote-med.png
|
117
125
|
- doc/res/images/rpot-big.png
|
126
|
+
- doc/res/images/rote-big.png
|
127
|
+
- doc/res/images/document-new-med.png
|
128
|
+
- doc/res/images/rpot-sml.png
|
129
|
+
- doc/res/images/rpot-tiny.png
|
130
|
+
- doc/res/stylesheets
|
118
131
|
- doc/res/stylesheets/normal.css
|
119
|
-
- doc/
|
120
|
-
- doc/
|
121
|
-
- doc/
|
132
|
+
- doc/jamis.rb
|
133
|
+
- doc/man
|
134
|
+
- doc/man/rote.1.gz
|
135
|
+
- doc/pages
|
122
136
|
- doc/pages/license.html
|
123
|
-
- doc/pages/
|
124
|
-
- doc/pages/guide/COMMON.rb
|
137
|
+
- doc/pages/guide
|
125
138
|
- doc/pages/guide/index.html
|
126
|
-
- doc/
|
127
|
-
- doc/
|
128
|
-
|
129
|
-
-
|
139
|
+
- doc/pages/guide/COMMON.rb
|
140
|
+
- doc/pages/index.html
|
141
|
+
- doc/pages/COMMON.rb
|
142
|
+
- doc/pages/index.rb
|
143
|
+
has_rdoc: true
|
144
|
+
homepage: http://rote.rubyforge.org
|
145
|
+
post_install_message:
|
130
146
|
rdoc_options:
|
131
147
|
- --title
|
132
148
|
- Rote -- Template-based doc support for Rake
|
@@ -136,33 +152,26 @@ rdoc_options:
|
|
136
152
|
- --inline-source
|
137
153
|
- --template
|
138
154
|
- doc/jamis.rb
|
139
|
-
|
140
|
-
-
|
141
|
-
|
142
|
-
|
143
|
-
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: "0"
|
162
|
+
version:
|
163
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: "0"
|
168
|
+
version:
|
148
169
|
requirements: []
|
149
170
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: "3.0"
|
159
|
-
version:
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: rake
|
162
|
-
version_requirement:
|
163
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">"
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: "0.6"
|
168
|
-
version:
|
171
|
+
rubyforge_project: rote
|
172
|
+
rubygems_version: 1.3.1
|
173
|
+
signing_key:
|
174
|
+
specification_version: 2
|
175
|
+
summary: Adds template-based doc support to Rake.
|
176
|
+
test_files:
|
177
|
+
- test/gem_tests.rb
|