PageTemplate 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. data/Changes +24 -0
  2. data/MANIFEST +0 -1
  3. data/README.txt +10 -8
  4. data/Rakefile +30 -9
  5. data/lib/PageTemplate/case.rb +72 -0
  6. data/lib/PageTemplate/commands.rb +500 -0
  7. data/lib/PageTemplate/parser.rb +373 -0
  8. data/lib/PageTemplate.rb +47 -991
  9. data/setup-usage.txt +129 -0
  10. data/setup.rb +1360 -0
  11. data/tdata/dummy.txt +2 -0
  12. data/test.rb +616 -0
  13. metadata +13 -169
  14. data/CVS/Entries +0 -10
  15. data/CVS/Repository +0 -1
  16. data/CVS/Root +0 -1
  17. data/Changes~ +0 -7
  18. data/InstalledFiles +0 -7
  19. data/Rakefile~ +0 -54
  20. data/TC_PageTemplate.rb +0 -974
  21. data/TC_PageTemplate.rb~ +0 -965
  22. data/config.save +0 -12
  23. data/doc/classes/BlockCommand.html +0 -229
  24. data/doc/classes/BlockCommand.src/M000004.html +0 -18
  25. data/doc/classes/BlockCommand.src/M000005.html +0 -25
  26. data/doc/classes/BlockCommand.src/M000006.html +0 -18
  27. data/doc/classes/BlockCommand.src/M000007.html +0 -23
  28. data/doc/classes/BlockCommand.src/M000008.html +0 -24
  29. data/doc/classes/Command.html +0 -167
  30. data/doc/classes/Command.src/M000032.html +0 -19
  31. data/doc/classes/Command.src/M000033.html +0 -18
  32. data/doc/classes/CommentCommand.html +0 -146
  33. data/doc/classes/CommentCommand.src/M000009.html +0 -18
  34. data/doc/classes/IfCommand.html +0 -193
  35. data/doc/classes/IfCommand.src/M000042.html +0 -19
  36. data/doc/classes/IfCommand.src/M000043.html +0 -20
  37. data/doc/classes/IfCommand.src/M000044.html +0 -20
  38. data/doc/classes/IfElseCommand.html +0 -189
  39. data/doc/classes/IfElseCommand.src/M000025.html +0 -19
  40. data/doc/classes/IfElseCommand.src/M000026.html +0 -23
  41. data/doc/classes/IfElseCommand.src/M000027.html +0 -20
  42. data/doc/classes/IncludeCommand.html +0 -171
  43. data/doc/classes/IncludeCommand.src/M000019.html +0 -26
  44. data/doc/classes/IncludeCommand.src/M000020.html +0 -28
  45. data/doc/classes/IncludeCommand.src/M000021.html +0 -18
  46. data/doc/classes/IncludeCommandError.html +0 -118
  47. data/doc/classes/LoopCommand.html +0 -197
  48. data/doc/classes/LoopCommand.src/M000001.html +0 -19
  49. data/doc/classes/LoopCommand.src/M000002.html +0 -42
  50. data/doc/classes/LoopCommand.src/M000003.html +0 -20
  51. data/doc/classes/LoopElseCommand.html +0 -190
  52. data/doc/classes/LoopElseCommand.src/M000022.html +0 -19
  53. data/doc/classes/LoopElseCommand.src/M000023.html +0 -23
  54. data/doc/classes/LoopElseCommand.src/M000024.html +0 -20
  55. data/doc/classes/Namespace.html +0 -297
  56. data/doc/classes/Namespace.src/M000034.html +0 -19
  57. data/doc/classes/Namespace.src/M000035.html +0 -18
  58. data/doc/classes/Namespace.src/M000036.html +0 -18
  59. data/doc/classes/Namespace.src/M000037.html +0 -19
  60. data/doc/classes/Namespace.src/M000038.html +0 -36
  61. data/doc/classes/Namespace.src/M000039.html +0 -21
  62. data/doc/classes/Namespace.src/M000040.html +0 -18
  63. data/doc/classes/Namespace.src/M000041.html +0 -18
  64. data/doc/classes/PageTemplate.html +0 -380
  65. data/doc/classes/PageTemplate.src/M000010.html +0 -49
  66. data/doc/classes/PageTemplate.src/M000011.html +0 -18
  67. data/doc/classes/PageTemplate.src/M000012.html +0 -29
  68. data/doc/classes/PageTemplate.src/M000013.html +0 -18
  69. data/doc/classes/PageTemplate.src/M000014.html +0 -18
  70. data/doc/classes/PageTemplate.src/M000015.html +0 -18
  71. data/doc/classes/PageTemplate.src/M000016.html +0 -18
  72. data/doc/classes/PageTemplate.src/M000017.html +0 -18
  73. data/doc/classes/PageTemplate.src/M000018.html +0 -19
  74. data/doc/classes/Syntax/CachedParser.html +0 -163
  75. data/doc/classes/Syntax/CachedParser.src/M000048.html +0 -19
  76. data/doc/classes/Syntax/CachedParser.src/M000049.html +0 -53
  77. data/doc/classes/Syntax/Glossary.html +0 -251
  78. data/doc/classes/Syntax/Glossary.src/M000050.html +0 -20
  79. data/doc/classes/Syntax/Glossary.src/M000051.html +0 -29
  80. data/doc/classes/Syntax/Parser.html +0 -261
  81. data/doc/classes/Syntax/Parser.src/M000052.html +0 -22
  82. data/doc/classes/Syntax/Parser.src/M000053.html +0 -36
  83. data/doc/classes/Syntax/Parser.src/M000054.html +0 -18
  84. data/doc/classes/Syntax/Parser.src/M000055.html +0 -21
  85. data/doc/classes/Syntax/Parser.src/M000056.html +0 -53
  86. data/doc/classes/Syntax/Parser.src/M000057.html +0 -111
  87. data/doc/classes/Syntax.html +0 -139
  88. data/doc/classes/TextCommand.html +0 -185
  89. data/doc/classes/TextCommand.src/M000045.html +0 -18
  90. data/doc/classes/TextCommand.src/M000046.html +0 -18
  91. data/doc/classes/TextCommand.src/M000047.html +0 -18
  92. data/doc/classes/UnlessCommand.html +0 -151
  93. data/doc/classes/UnlessCommand.src/M000028.html +0 -20
  94. data/doc/classes/ValueCommand.html +0 -186
  95. data/doc/classes/ValueCommand.src/M000029.html +0 -18
  96. data/doc/classes/ValueCommand.src/M000030.html +0 -18
  97. data/doc/classes/ValueCommand.src/M000031.html +0 -20
  98. data/doc/created.rid +0 -1
  99. data/doc/files/README_txt.html +0 -224
  100. data/doc/files/lib/PageTemplate_rb.html +0 -119
  101. data/doc/fr_class_index.html +0 -44
  102. data/doc/fr_file_index.html +0 -28
  103. data/doc/fr_method_index.html +0 -83
  104. data/doc/index.html +0 -24
  105. data/doc/rdoc-style.css +0 -208
  106. data/install.rb +0 -1015
  107. data/lib/CVS/Entries +0 -2
  108. data/lib/CVS/Repository +0 -1
  109. data/lib/CVS/Root +0 -1
  110. data/lib/PageTemplate.rb~ +0 -1004
  111. data/pkg/PageTemplate-1.2.0.gem +0 -0
  112. data/tdata/CVS/Entries +0 -28
  113. data/tdata/CVS/Repository +0 -1
  114. data/tdata/CVS/Root +0 -1
  115. data/tdata/cm.txt +0 -3
  116. data/tdata/complex.txt +0 -116
  117. data/tdata/i1.txt +0 -1
  118. data/tdata/i2.txt +0 -7
  119. data/tdata/ib1.txt +0 -7
  120. data/tdata/ib2.txt +0 -13
  121. data/tdata/ie1.txt +0 -4
  122. data/tdata/ie2.txt +0 -15
  123. data/tdata/include.1.txt +0 -1
  124. data/tdata/include.2.txt +0 -1
  125. data/tdata/include.3.txt +0 -1
  126. data/tdata/include.4.nf.out.txt +0 -2
  127. data/tdata/include.4.out.txt +0 -3
  128. data/tdata/include.4.txt +0 -2
  129. data/tdata/include.4a.txt +0 -1
  130. data/tdata/include.4b.txt +0 -2
  131. data/tdata/include.5.txt +0 -2
  132. data/tdata/l1.txt +0 -5
  133. data/tdata/l2.txt +0 -7
  134. data/tdata/metadata.1.txt +0 -5
  135. data/tdata/metadata.2.txt +0 -5
  136. data/tdata/metadata.3.txt +0 -5
  137. data/tdata/metadata.4.txt +0 -5
  138. data/tdata/nm.txt +0 -4
  139. data/tdata/p/CVS/Entries +0 -5
  140. data/tdata/p/CVS/Repository +0 -1
  141. data/tdata/p/CVS/Root +0 -1
  142. data/tdata/p/CVS/b2.txt,t +0 -0
  143. data/tdata/p/_b1.txt +0 -0
  144. data/tdata/p/b1.txt +0 -4
  145. data/tdata/p/b2.txt +0 -4
  146. data/tdata/p/b2.txt~ +0 -4
  147. data/tdata/p/cb1.txt +0 -4
  148. data/tdata/t.txt +0 -2
  149. data/tdata/v1.txt +0 -11
  150. data/tdata/v2.txt +0 -11
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.6
2
+ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: PageTemplate
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.0
7
- date: 2005-03-11
6
+ version: 2.0.0
7
+ date: 2005-04-13
8
8
  summary: A simple templating system for Web sites.
9
9
  require_paths:
10
10
  - lib
11
- email: brian@coolnamehere.com
11
+ email: brianwisti@rubyforge.org
12
12
  homepage: http://coolnamehere.com/products/pagetemplate
13
13
  rubyforge_project:
14
14
  description:
@@ -28,179 +28,23 @@ authors:
28
28
  - Brian Wisti
29
29
  files:
30
30
  - README.txt
31
- - Changes~
32
- - TC_PageTemplate.rb~
31
+ - setup.rb
33
32
  - MANIFEST
34
- - install.rb
35
33
  - lib
36
- - doc
37
- - config.save
38
- - CVS
39
34
  - Changes
35
+ - setup-usage.txt
40
36
  - test-install.rb
41
37
  - Rakefile
42
- - InstalledFiles
43
38
  - tdata
44
- - TC_PageTemplate.rb
45
- - Rakefile~
46
- - pkg
39
+ - test.rb
47
40
  - lib/PageTemplate.rb
48
- - lib/PageTemplate.rb~
49
- - lib/CVS
50
- - lib/CVS/Repository
51
- - lib/CVS/Root
52
- - lib/CVS/Entries
53
- - doc/fr_class_index.html
54
- - doc/index.html
55
- - doc/fr_file_index.html
56
- - doc/rdoc-style.css
57
- - doc/created.rid
58
- - doc/classes
59
- - doc/files
60
- - doc/fr_method_index.html
61
- - doc/classes/LoopCommand.html
62
- - doc/classes/LoopCommand.src
63
- - doc/classes/UnlessCommand.src
64
- - doc/classes/Syntax
65
- - doc/classes/LoopElseCommand.src
66
- - doc/classes/UnlessCommand.html
67
- - doc/classes/LoopElseCommand.html
68
- - doc/classes/IfCommand.src
69
- - doc/classes/ValueCommand.src
70
- - doc/classes/IfElseCommand.html
71
- - doc/classes/ValueCommand.html
72
- - doc/classes/IncludeCommand.html
73
- - doc/classes/Namespace.html
74
- - doc/classes/Command.html
75
- - doc/classes/BlockCommand.html
76
- - doc/classes/IncludeCommandError.html
77
- - doc/classes/Command.src
78
- - doc/classes/PageTemplate.src
79
- - doc/classes/BlockCommand.src
80
- - doc/classes/TextCommand.html
81
- - doc/classes/CommentCommand.src
82
- - doc/classes/TextCommand.src
83
- - doc/classes/CommentCommand.html
84
- - doc/classes/Syntax.html
85
- - doc/classes/IfCommand.html
86
- - doc/classes/IfElseCommand.src
87
- - doc/classes/IncludeCommand.src
88
- - doc/classes/Namespace.src
89
- - doc/classes/PageTemplate.html
90
- - doc/classes/LoopCommand.src/M000002.html
91
- - doc/classes/LoopCommand.src/M000003.html
92
- - doc/classes/LoopCommand.src/M000001.html
93
- - doc/classes/UnlessCommand.src/M000028.html
94
- - doc/classes/Syntax/CachedParser.src
95
- - doc/classes/Syntax/Parser.html
96
- - doc/classes/Syntax/Glossary.html
97
- - doc/classes/Syntax/CachedParser.html
98
- - doc/classes/Syntax/Parser.src
99
- - doc/classes/Syntax/Glossary.src
100
- - doc/classes/Syntax/CachedParser.src/M000048.html
101
- - doc/classes/Syntax/CachedParser.src/M000049.html
102
- - doc/classes/Syntax/Parser.src/M000052.html
103
- - doc/classes/Syntax/Parser.src/M000054.html
104
- - doc/classes/Syntax/Parser.src/M000056.html
105
- - doc/classes/Syntax/Parser.src/M000055.html
106
- - doc/classes/Syntax/Parser.src/M000057.html
107
- - doc/classes/Syntax/Parser.src/M000053.html
108
- - doc/classes/Syntax/Glossary.src/M000050.html
109
- - doc/classes/Syntax/Glossary.src/M000051.html
110
- - doc/classes/LoopElseCommand.src/M000023.html
111
- - doc/classes/LoopElseCommand.src/M000024.html
112
- - doc/classes/LoopElseCommand.src/M000022.html
113
- - doc/classes/IfCommand.src/M000042.html
114
- - doc/classes/IfCommand.src/M000044.html
115
- - doc/classes/IfCommand.src/M000043.html
116
- - doc/classes/ValueCommand.src/M000031.html
117
- - doc/classes/ValueCommand.src/M000029.html
118
- - doc/classes/ValueCommand.src/M000030.html
119
- - doc/classes/Command.src/M000033.html
120
- - doc/classes/Command.src/M000032.html
121
- - doc/classes/PageTemplate.src/M000013.html
122
- - doc/classes/PageTemplate.src/M000014.html
123
- - doc/classes/PageTemplate.src/M000018.html
124
- - doc/classes/PageTemplate.src/M000010.html
125
- - doc/classes/PageTemplate.src/M000015.html
126
- - doc/classes/PageTemplate.src/M000012.html
127
- - doc/classes/PageTemplate.src/M000017.html
128
- - doc/classes/PageTemplate.src/M000016.html
129
- - doc/classes/PageTemplate.src/M000011.html
130
- - doc/classes/BlockCommand.src/M000007.html
131
- - doc/classes/BlockCommand.src/M000005.html
132
- - doc/classes/BlockCommand.src/M000006.html
133
- - doc/classes/BlockCommand.src/M000004.html
134
- - doc/classes/BlockCommand.src/M000008.html
135
- - doc/classes/CommentCommand.src/M000009.html
136
- - doc/classes/TextCommand.src/M000047.html
137
- - doc/classes/TextCommand.src/M000046.html
138
- - doc/classes/TextCommand.src/M000045.html
139
- - doc/classes/IfElseCommand.src/M000025.html
140
- - doc/classes/IfElseCommand.src/M000026.html
141
- - doc/classes/IfElseCommand.src/M000027.html
142
- - doc/classes/IncludeCommand.src/M000021.html
143
- - doc/classes/IncludeCommand.src/M000020.html
144
- - doc/classes/IncludeCommand.src/M000019.html
145
- - doc/classes/Namespace.src/M000036.html
146
- - doc/classes/Namespace.src/M000041.html
147
- - doc/classes/Namespace.src/M000035.html
148
- - doc/classes/Namespace.src/M000039.html
149
- - doc/classes/Namespace.src/M000037.html
150
- - doc/classes/Namespace.src/M000040.html
151
- - doc/classes/Namespace.src/M000034.html
152
- - doc/classes/Namespace.src/M000038.html
153
- - doc/files/lib
154
- - doc/files/README_txt.html
155
- - doc/files/lib/PageTemplate_rb.html
156
- - CVS/Repository
157
- - CVS/Root
158
- - CVS/Entries
159
- - tdata/include.3.txt
160
- - tdata/include.2.txt
161
- - tdata/ib2.txt
162
- - tdata/include.4b.txt
163
- - tdata/cm.txt
164
- - tdata/t.txt
165
- - tdata/p
166
- - tdata/v2.txt
167
- - tdata/l2.txt
168
- - tdata/metadata.2.txt
169
- - tdata/ib1.txt
170
- - tdata/v1.txt
171
- - tdata/complex.txt
172
- - tdata/metadata.1.txt
173
- - tdata/i2.txt
174
- - tdata/CVS
175
- - tdata/include.4.out.txt
176
- - tdata/nm.txt
177
- - tdata/include.4.nf.out.txt
178
- - tdata/metadata.3.txt
179
- - tdata/include.4a.txt
180
- - tdata/ie1.txt
181
- - tdata/metadata.4.txt
182
- - tdata/include.4.txt
183
- - tdata/l1.txt
184
- - tdata/include.5.txt
185
- - tdata/i1.txt
186
- - tdata/ie2.txt
187
- - tdata/include.1.txt
188
- - tdata/p/b1.txt
189
- - tdata/p/b2.txt~
190
- - tdata/p/CVS
191
- - tdata/p/b2.txt
192
- - tdata/p/cb1.txt
193
- - tdata/p/_b1.txt
194
- - tdata/p/CVS/Repository
195
- - tdata/p/CVS/Root
196
- - tdata/p/CVS/Entries
197
- - tdata/p/CVS/b2.txt,t
198
- - tdata/CVS/Repository
199
- - tdata/CVS/Root
200
- - tdata/CVS/Entries
201
- - pkg/PageTemplate-1.2.0.gem
41
+ - lib/PageTemplate
42
+ - lib/PageTemplate/parser.rb
43
+ - lib/PageTemplate/case.rb
44
+ - lib/PageTemplate/commands.rb
45
+ - tdata/dummy.txt
202
46
  test_files:
203
- - TC_PageTemplate.rb
47
+ - test.rb
204
48
  rdoc_options: []
205
49
  extra_rdoc_files:
206
50
  - README.txt
data/CVS/Entries DELETED
@@ -1,10 +0,0 @@
1
- /MANIFEST/1.1.1.1/Wed Mar 9 01:30:10 2005//
2
- /config.save/1.1.1.1/Wed Mar 9 01:30:10 2005//
3
- /install.rb/1.1.1.1/Wed Mar 9 01:30:10 2005//
4
- /test-install.rb/1.1.1.1/Wed Mar 9 01:30:10 2005//
5
- D/lib////
6
- D/tdata////
7
- /Changes/1.1/Fri Mar 11 08:56:02 2005//
8
- /README.txt/1.2/Fri Mar 11 01:48:29 2005//
9
- /Rakefile/1.2/Fri Mar 11 09:01:10 2005//
10
- /TC_PageTemplate.rb/1.12/Fri Mar 11 19:04:51 2005//
data/CVS/Repository DELETED
@@ -1 +0,0 @@
1
- PageTemplate
data/CVS/Root DELETED
@@ -1 +0,0 @@
1
- /home/wisti/CVS
data/Changes~ DELETED
@@ -1,7 +0,0 @@
1
- 1.2
2
- - Added: UnlessCommand
3
- - Fixed:
4
- 1.1
5
- - Added: IncludeCommand
6
- 1.0
7
- - Moved to Rubyforge
data/InstalledFiles DELETED
@@ -1,7 +0,0 @@
1
- /usr/local/lib/ruby/site_ruby/1.8/
2
- /usr/local/lib/ruby/site_ruby/1.8/
3
- /usr/local/lib/ruby/site_ruby/1.8/CVS
4
- /usr/local/lib/ruby/site_ruby/1.8/CVS
5
- /usr/local/lib/ruby/site_ruby/1.8/CVS
6
- /usr/local/lib/ruby/site_ruby/1.8/
7
- /usr/local/lib/ruby/site_ruby/1.8/
data/Rakefile~ DELETED
@@ -1,54 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'rubygems'
4
- Gem::manage_gems
5
- require 'rake/gempackagetask'
6
-
7
- task :default => [:all, :test]
8
-
9
- task :all do
10
- ruby %{-c lib/PageTemplate.rb}
11
- ruby %{-c TC_PageTemplate.rb}
12
- end
13
-
14
- task :test do
15
- ruby %{-w TC_PageTemplate.rb}
16
- end
17
-
18
- task :install do
19
- ruby %{install.rb config}
20
- ruby %{install.rb setup}
21
- ruby %{install.rb install}
22
- end
23
-
24
- task :doc do
25
- sh %{rdoc lib/PageTemplate.rb README.txt}
26
- end
27
-
28
- task :cnh_doc do
29
- sh %{cp -R --remove-destination doc /home/wisti/Sites/coolnamehere/extras/doc/PageTemplate}
30
- end
31
-
32
- spec = Gem::Specification.new do |s|
33
- s.name = "PageTemplate"
34
- s.version = "1.1.2"
35
- s.author = "Brian Wisti"
36
- s.email = "brian@coolnamehere.com"
37
- s.homepage = "http://coolnamehere.com/products/pagetemplate"
38
- s.platform = Gem::Platform::RUBY
39
- s.summary = "A simple templating system for Web sites."
40
- s.files = Dir.glob("**/*")
41
- s.require_path = "lib"
42
- s.autorequire = "PageTemplate.rb"
43
- s.test_file = "TC_PageTemplate.rb"
44
- s.has_rdoc = true
45
- s.extra_rdoc_files = ["README.txt"]
46
- end
47
-
48
- Rake::GemPackageTask.new(spec) do |pkg|
49
- pkg.need_tar = true
50
- end
51
-
52
- task :gem do
53
- sh %{rake pkg/PageTemplate-#{spec.version}.gem}
54
- end