Skip to content
Newer
Older
100644 526 lines (390 sloc) 20.1 KB
6772b45 @lsegal Bump version to 0.1.7
authored
1 2009-08-14 Loren Segal <lsegal@soen.ca>
2
3 * ChangeLog, LICENSE, README.markdown, lib/tadpole.rb, tadpole.gemspec: Bump
4 version to 0.1.7
5
6 * lib/tadpole/template.rb, spec/examples/yield/1/setup.rb,
7 spec/examples/yield/2/2_1/b.erb, spec/examples/yield/2/2_1/setup.rb,
8 spec/examples/yield/2/2_2/c.erb, spec/examples/yield/2/2_2/setup.rb,
9 spec/examples/yield/2/a.erb, spec/examples/yield/2/setup.rb,
10 spec/examples/yield/setup.rb, spec/yield_spec.rb: Add specs for yielding
11 extra options
12
13 * lib/tadpole/template.rb, spec/examples/yield/setup.rb, spec/yield_spec.rb:
14 Allow yield() to update options
15
16 * lib/tadpole/template.rb: Improve error reporting for invalid templates.
17
15b50ee @lsegal Add ChangeLog
authored
18 2009-07-20 Loren Segal <lsegal@soen.ca>
19
6772b45 @lsegal Bump version to 0.1.7
authored
20 * ChangeLog: Add ChangeLog
21
15b50ee @lsegal Add ChangeLog
authored
22 * lib/tadpole.rb, tadpole.gemspec: Bump to 0.1.6
23
24 * spec/filters_spec.rb: Fix test not removing LocalTemplate before_section
25 filters
26
27 2009-07-16 Loren Segal <lsegal@soen.ca>
28
29 * lib/tadpole.rb, tadpole.gemspec: Bump to version 0.1.5
30
31 * lib/tadpole/filters.rb, spec/filters_spec.rb: Run before filters in context
32 of instance object
33
34 2009-07-12 Loren Segal <lsegal@soen.ca>
35
36 * lib/tadpole.rb, tadpole.gemspec: Bump to version 0.1.4
37
38 * spec/erb_spec.rb, spec/examples/erb/a.erb, spec/examples/erb/setup.rb,
39 spec/examples/erb2/_a.erb, spec/examples/erb2/setup.rb: Spec ERBProvider
40
41 2009-07-11 Loren Segal <lsegal@soen.ca>
42
43 * lib/tadpole/local_template.rb, lib/tadpole/main.rb,
44 spec/examples/T/derived2/setup.rb, spec/examples/T/derived2/test/setup.rb,
45 spec/local_template_spec.rb: Add more specs, allow T() to use template within
46 subclass if available
47
48 * lib/tadpole/local_template.rb, spec/examples/T/derived/setup.rb,
49 spec/examples/T/setup.rb, spec/examples/T/test/setup.rb,
50 spec/inherits_spec.rb, spec/local_template_spec.rb: Spec T() method and make
51 sure it refers to the template path it's defined in
52
53 * lib/tadpole/template.rb: Better exception messages
54
55 * lib/tadpole/providers/section_provider.rb, lib/tadpole/template.rb: Add
56 section object param to SectionProvider.provides?
57
58 * lib/tadpole/local_template.rb, lib/tadpole/main.rb,
59 spec/examples/inherits/inherits_a/setup.rb,
60 .../inherits/inherits_b/inherits_c/setup.rb,
61 spec/examples/inherits/inherits_b/setup.rb,
62 spec/examples/inherits/inherits_d/setup.rb,
63 spec/examples/inherits/inherits_e/setup.rb, spec/inherits_spec.rb: Spec
64 command and fix inheritance order
65
66 * .gitignore: Update gitignore
67
68 * lib/tadpole/main.rb, lib/tadpole/providers/erb.rb: Better stacktraces with
69 eval's
70
71 2009-07-10 Loren Segal <lsegal@soen.ca>
72
73 * lib/tadpole.rb, tadpole.gemspec: Bump version to 0.1.3
74
75 * lib/tadpole/main.rb, spec/basic_spec.rb: Virtual templates should get
76 constants defined as well (refactor + spec)
77
78 * lib/tadpole/main.rb, spec/basic_spec.rb: Make Tadpole.create_template
79 public and refactor/spec code. Users can now create templates without
80 requiring files on disk. Simply use
81 Tadpole.create_template('path/to/template'). Inheritance will still be
82 checked for the path name provided.
83
84 * lib/tadpole.rb, tadpole.gemspec: Bump version to 0.1.2
85
86 * lib/tadpole/template.rb: Make backtraces a little more informative
87
88 * lib/tadpole/providers/section_provider.rb,
89 lib/tadpole/providers/template.rb: Add #full_path accessor to
90 SectionProviders
91
92 * lib/tadpole/providers/erb.rb: Fix line number for backtraces
93
94 2009-07-09 Loren Segal <lsegal@soen.ca>
95
96 * lib/tadpole/template.rb: Fix 1.8.x regression (implement Ruby1.9's
97 Hash#key)
98
99 * Rakefile, lib/tadpole.rb, tadpole.gemspec: Bump version to 0.1.1
100
101 * .gitignore: Update gitignore
102
103 * lib/tadpole/filters.rb, spec/examples/filters/setup.rb,
104 spec/filters_spec.rb: Allow before_section and before_run filters to take
105 blocks, add before alias for sections
106
107 * lib/tadpole/main.rb, spec/array_spec.rb: Add specs for Insertion and allow
108 insertion to ignore subsections
109
110 * spec/basic_spec.rb: Refactor specs
111
112 2009-02-03 Loren Segal <lsegal@soen.ca>
113
114 * lib/tadpole/template.rb, spec/basic_spec.rb: Add compatibility for Ruby1.9
115 (constants are symbolized and Hash#index is obsoleted by Hash#key)
116
117 * README.markdown: Fix typo
118
119 2008-06-15 Loren Segal <lsegal@soen.ca>
120
121 * lib/tadpole/local_template.rb, lib/tadpole/main.rb: Fix inheritance order
122 of inherited paths
123
124 * lib/tadpole/main.rb, lib/tadpole/template.rb, spec/basic_spec.rb: Something
125 broke??
126
127 * lib/tadpole/main.rb, lib/tadpole/template.rb,
128 spec/examples/render/6/setup.rb, spec/render_spec.rb: Fix yield rendering
129 behaviour
130
131 * lib/tadpole/local_template.rb, lib/tadpole/main.rb,
132 spec/examples/filters/setup.rb, spec/filters_spec.rb: Allow base filters set
133 on LocalTemplate
134
135 2008-06-14 Loren Segal <lsegal@soen.ca>
136
137 * lib/tadpole.rb, lib/tadpole/local_template.rb, lib/tadpole/main.rb,
138 lib/tadpole/template_path.rb, spec/basic_spec.rb: Rename TemplatePath to
139 LocalTemplate
140
141 * lib/tadpole/template_path.rb: inherited mod copies before_filters over
142
143 * lib/tadpole/providers/erb.rb, lib/tadpole/template.rb,
144 spec/examples/render/5/setup.rb, spec/render_spec.rb: Fix erb handling of
145 locals (again)
146
147 * lib/tadpole/providers/erb.rb, lib/tadpole/template.rb,
148 spec/examples/render/4/a.erb, spec/examples/render/4/setup.rb,
149 spec/render_spec.rb: Remove method definition
150
151 * lib/tadpole/template.rb: yieldall should accept block
152
153 * lib/tadpole/providers/erb.rb, spec/basic_spec.rb,
154 spec/examples/render/1/a.txt, spec/examples/render/1/b.txt,
155 spec/examples/render/1/d.erb, spec/examples/render/1/setup.rb,
156 spec/examples/render/2/setup.rb, spec/examples/render/3/setup.rb,
157 spec/render_spec.rb: Specs for rendering order
158
159 * lib/tadpole/providers/erb.rb: Fix local variable assignment in ERB provider
160
161 * lib/tadpole/template.rb: Add locals to yieldall
162
163 * lib/tadpole/template.rb: Re-yield blocks if theyre called again
164
165 * Rakefile: Don't automatically do rcov
166
167 * lib/tadpole/template.rb: Make sure section is string
168
169 * lib/tadpole/template.rb: Avoid recursive rendering
170
171 * lib/tadpole/template.rb, lib/tadpole/template_path.rb: Add T() shorthand
172
173 * benchmarks/eval-vs-non-eval.rb, lib/tadpole/providers/erb.rb: Switch to
174 instance_eval because it is faster.
175
176 * lib/tadpole/providers/erb.rb: Hack support for ERB and locals (FIXME: make
177 more efficient)
178
179 * benchmarks/require-vs-none.rb: Add benchmark for require
180
181 * lib/tadpole/providers/erb.rb, lib/tadpole/providers/haml.rb: Move require's
182 outside of code body (require calls are slow!)
183
184 * lib/tadpole/main.rb: Use setup file as module_eval file
185
186 * lib/tadpole/template.rb: Fix filter handling
187
188 2008-06-13 Loren Segal <lsegal@soen.ca>
189
190 * lib/tadpole/providers/section_provider.rb: Fix handling of options
191 variables
192
193 * lib/tadpole/providers/erb.rb: Offset line number to start src code from 1
194
195 * lib/tadpole/main.rb, lib/tadpole/providers/erb.rb: eval from file
196
197 * lib/tadpole/template.rb: Allow yielding of section or options hash
198
199 * lib/tadpole/filters.rb, lib/tadpole/main.rb, lib/tadpole/template.rb,
200 lib/tadpole/template_path.rb, spec/basic_spec.rb,
201 spec/examples/filters/setup.rb, spec/filters_spec.rb: Updates for filters
202
203 * lib/tadpole.rb, lib/tadpole/filters.rb, lib/tadpole/template.rb,
204 spec/basic_spec.rb: Add before filters
205
206 * lib/tadpole/template.rb: Fix subsection handling
207
208 * lib/tadpole/template.rb: Fix options handling
209
210 * lib/tadpole/template.rb: String == Symbol
211
212 * lib/tadpole/template.rb: Use openstruct for options
213
214 * tadpole.gemspec: Use LICENSE not LICENSE.txt in gemspec
215
216 * benchmarks/run-caching.rb: Fairer benchmark test
217
218 * LICENSE, README.html, README.markdown,
219 examples/example2/tadpole/html/main.haml,
220 examples/example2/tadpole/markdown/title.md, tadpole.gemspec: Update
221 documentation, add LICENSE
222
223 * Rakefile, examples/example2/tadpole/html/readme/setup.rb,
224 lib/tadpole/main.rb, tadpole.gemspec: Fix inheritance bug, add gemspec
225
226 2008-06-12 Loren Segal <lsegal@soen.ca>
227
228 * README.html, README.markdown,
229 examples/example2/tadpole/markdown/quick/create.md,
230 .../example2/tadpole/markdown/quick/override.md: Templates
231
232 * README.html, README.markdown,
233 examples/example2/tadpole/html/readme/setup.rb,
234 examples/example2/tadpole/markdown/examples.md,
235 examples/example2/tadpole/markdown/quick/create.md,
236 .../tadpole/markdown/quick/heirarchical.md,
237 .../example2/tadpole/markdown/quick/override.md,
238 examples/example2/tadpole/markdown/quick/quick.erb,
239 examples/example2/tadpole/markdown/quick/setup.rb,
240 examples/example2/tadpole/markdown/setup.rb: Update templates
241
242 * benchmarks/run-caching.rb: Update benchmark to use example1 (example2
243 changes too much)
244
245 * lib/tadpole/main.rb, lib/tadpole/providers/erb.rb: Cache on, show file and
246 line when eval'ing ERB
247
248 * lib/tadpole/main.rb, lib/tadpole/providers/template.rb,
249 lib/tadpole/template.rb: Update inheritance behaviour
250
251 * README.html, README.markdown: Templates
252
253 * README.html, README.markdown: Templates
254
255 * README.html, README.markdown: Templates
256
257 * README.html, README.markdown, examples/example2/tadpole/markdown/setup.rb:
258 Templates
259
260 * README.markdown: Templates
261
262 * README.html, README.markdown,
263 examples/example2/tadpole/markdown/scenarios.md,
264 examples/example2/tadpole/markdown/setup.rb,
265 examples/example2/tadpole/markdown/what.md: Templates
266
267 * README.html, README.markdown, examples/example2/tadpole/markdown/what.md:
268 Templates
269
270 * README.html, README.markdown, examples/example2/tadpole/markdown/what.md:
271 Templates
272
273 * README.html, README.markdown, examples/example2/tadpole/markdown/title.md:
274 Templates
275
276 * README.html, README.markdown, examples/example2/tadpole/markdown/title.md:
277 Templates
278
279 * README.html, README.markdown,
280 examples/example2/tadpole/markdown/but_i_have.md,
281 examples/example2/tadpole/markdown/copyright.md,
282 .../tadpole/markdown/readme/readme_notice.txt,
283 examples/example2/tadpole/markdown/scenarios.md,
284 examples/example2/tadpole/markdown/setup.rb,
285 examples/example2/tadpole/markdown/title.md,
286 examples/example2/tadpole/markdown/what.md,
287 examples/example2/tadpole/markdown/what_is.md,
288 examples/example2/tadpole/markdown/why.md, lib/tadpole/template.rb: Update
289 templates
290
291 * README.html, README.markdown: Update readmes
292
293 * README.markdown, benchmarks/run-caching.rb, examples/example1/run.rb,
294 examples/example2/run.rb, examples/example2/tadpole/html/content.haml,
295 examples/example2/tadpole/html/main.haml,
296 examples/example2/tadpole/html/readme/setup.rb,
297 examples/example2/tadpole/html/setup.rb,
298 examples/example2/tadpole/markdown/but_i_have.md,
299 examples/example2/tadpole/markdown/copyright.md,
300 .../tadpole/markdown/readme/readme_notice.txt,
301 examples/example2/tadpole/markdown/readme/setup.rb,
302 examples/example2/tadpole/markdown/setup.rb,
303 examples/example2/tadpole/markdown/title.md,
304 examples/example2/tadpole/markdown/what_is.md,
305 examples/example2/treate/html/content.haml,
306 examples/example2/treate/html/main.haml,
307 examples/example2/treate/html/readme/setup.rb,
308 examples/example2/treate/html/setup.rb,
309 examples/example2/treate/markdown/but_i_have.txt,
310 examples/example2/treate/markdown/copyright.erb,
311 .../treate/markdown/readme/readme_notice.txt,
312 examples/example2/treate/markdown/readme/setup.rb,
313 examples/example2/treate/markdown/setup.rb,
314 examples/example2/treate/markdown/title.txt,
315 examples/example2/treate/markdown/what_is.txt, lib/tadpole.rb,
316 lib/tadpole/main.rb, lib/tadpole/providers/erb.rb,
317 lib/tadpole/providers/file.rb, lib/tadpole/providers/haml.rb,
318 lib/tadpole/providers/markaby.rb, lib/tadpole/providers/section_provider.rb,
319 lib/tadpole/providers/template.rb, lib/tadpole/template.rb,
320 lib/tadpole/template_path.rb, lib/templater.rb, lib/templater/main.rb,
321 lib/templater/providers/erb.rb, lib/templater/providers/file.rb,
322 lib/templater/providers/haml.rb, lib/templater/providers/markaby.rb,
323 lib/templater/providers/section_provider.rb,
324 lib/templater/providers/template.rb, lib/templater/template.rb,
325 lib/templater/template_path.rb, spec/basic_spec.rb: Rename to tadpole
326
327 2008-06-11 Loren Segal <lsegal@soen.ca>
328
329 * lib/templater/template.rb: Cache providers on section.to_s
330
331 * lib/templater/template.rb: Don't replace sections. create
332 @compiled_sections
333
334 * examples/example2/treate/html/readme/setup.rb,
335 examples/example2/treate/markdown/readme/setup.rb, lib/templater/main.rb,
336 lib/templater/template.rb, spec/basic_spec.rb: Update specs and automatically
337 inherit ..
338
339 * benchmarks/run-caching.rb, examples/example2/run.rb, lib/templater.rb,
340 lib/templater/main.rb, lib/templater/providers/erb.rb,
341 lib/templater/providers/file.rb, lib/templater/providers/haml.rb,
342 lib/templater/providers/markaby.rb,
343 lib/templater/providers/section_provider.rb,
344 lib/templater/providers/template.rb, lib/templater/template.rb: Change
345 provider api to do extension lookup on its own. Add benchmarks for provider
346 caching vs. compile_at_init caching
347
348 * spec/basic_spec.rb: Try the 'path' format too
349
350 * examples/example1/custom/html/body/setup.rb,
351 examples/example1/custom/html/setup.rb, examples/example1/run.rb,
352 examples/example2/treate/html/readme/setup.rb,
353 examples/example2/treate/html/setup.rb,
354 examples/example2/treate/markdown/readme/setup.rb, lib/templater/main.rb,
355 lib/templater/template_path.rb: Various changes for relative path support
356
357 * README.html, README.markdown, examples/example2/treate/markdown/title.txt:
358 Stuff
359
360 * README.markdown: Add markdown file
361
362 * README.html, .../treate/markdown/readme/readme_notice.txt: Stuff
363
364 * oldREADME.markdown: Stuff
365
366 * README.html, README.markdown, .../treate/markdown/readme/readme_notice.txt,
367 oldREADME.markdown: Stuff
368
369 * README.html, README.markdown, examples/example2/treate/markdown/title.txt:
370 link updates
371
372 * README.html, README.markdown, examples/example2/treate/markdown/title.txt:
373 Author
374
375 * README.html, README.markdown,
376 examples/example2/treate/markdown/copyright.erb: Update copyright info
377 section
378
379 * README.html, examples/example2/run.rb,
380 examples/example2/treate/html/readme/setup.rb,
381 .../treate/markdown/readme/readme_notice.txt,
382 examples/example2/treate/markdown/readme/setup.rb,
383 examples/example2/treate/readme/readme_notice.txt,
384 examples/example2/treate/readme/setup.rb, lib/templater/main.rb,
385 lib/templater/template.rb, lib/templater/template_path.rb,
386 spec/basic_spec.rb: Fix various template_paths issues
387
388 2008-06-10 Loren Segal <lsegal@soen.ca>
389
390 * spec/basic_spec.rb: Update specs
391
392 * README.markdown: Update readme
393
394 * examples/example2/treate/readme/readme_notice.txt: Update code block
395
396 * README.markdown, examples/example2/treate/markdown/what_is.txt,
397 examples/example2/treate/readme/readme_notice.txt: Update templates
398
399 * README.textile: Remove textile readme
400
401 * README.markdown, examples/example2/treate/html/content.haml,
402 examples/example2/treate/html/copyright.haml,
403 examples/example2/treate/html/main.haml,
404 examples/example2/treate/html/setup.rb,
405 examples/example2/treate/markdown/but_i_have.txt,
406 examples/example2/treate/markdown/copyright.erb,
407 examples/example2/treate/markdown/setup.rb,
408 examples/example2/treate/markdown/title.txt,
409 examples/example2/treate/markdown/what_is.txt,
410 examples/example2/treate/readme/readme_notice.txt,
411 examples/example2/treate/readme/setup.rb,
412 examples/example2/treate/textile/but_i_have.txt,
413 examples/example2/treate/textile/copyright.erb,
414 examples/example2/treate/textile/setup.rb,
415 examples/example2/treate/textile/title.txt,
416 examples/example2/treate/textile/what_is.txt: Update templates
417
418 * README, README.textile: rename README
419
420 * README: Update README
421
422 * examples/example2/treate/html/content.haml,
423 examples/example2/treate/html/main.haml,
424 examples/example2/treate/html/setup.rb,
425 examples/example2/treate/markdown/but_i_have.txt,
426 examples/example2/treate/markdown/copyright.erb,
427 examples/example2/treate/markdown/setup.rb,
428 examples/example2/treate/markdown/title.txt,
429 examples/example2/treate/markdown/what_is.txt,
430 examples/example2/treate/readme/readme_notice.txt,
431 examples/example2/treate/readme/setup.rb,
432 examples/example2/treate/textile/but_i_have.txt,
433 examples/example2/treate/textile/copyright.erb,
434 examples/example2/treate/textile/setup.rb,
435 examples/example2/treate/textile/title.txt,
436 examples/example2/treate/textile/what_is.txt: Update examples (back to
437 textile)
438
439 * README, lib/templater/main.rb, lib/templater/providers/section_provider.rb,
440 lib/templater/template.rb: Various fixes, generate readme
441
442 * examples/example2/treate/html/but_i_have.haml,
443 examples/example2/treate/html/content.haml,
444 examples/example2/treate/html/header.haml,
445 examples/example2/treate/html/main.haml,
446 examples/example2/treate/html/setup.rb,
447 examples/example2/treate/html/what_is.haml,
448 examples/example2/treate/markdown/but_i_have.txt,
449 examples/example2/treate/markdown/copyright.erb,
450 examples/example2/treate/markdown/setup.rb,
451 examples/example2/treate/markdown/title.txt,
452 examples/example2/treate/markdown/what_is.txt,
453 examples/example2/treate/readme/readme_notice.txt,
454 examples/example2/treate/readme/setup.rb, examples/example2/treate/setup.rb,
455 examples/example2/treate/textile/content/setup.rb,
456 examples/example2/treate/textile/copyright.erb,
457 examples/example2/treate/textile/header.erb,
458 examples/example2/treate/textile/main.erb: Update examples
459
460 * examples/example2/treate/html/but_i_have.haml,
461 examples/example2/treate/html/copyright.erb,
462 examples/example2/treate/html/copyright.haml,
463 examples/example2/treate/html/header.erb,
464 examples/example2/treate/html/header.haml,
465 examples/example2/treate/html/main.erb,
466 examples/example2/treate/html/main.haml,
467 examples/example2/treate/html/what_is.erb,
468 examples/example2/treate/html/what_is.haml,
469 examples/example2/treate/setup.rb,
470 examples/example2/treate/text/copyright.erb,
471 examples/example2/treate/text/main.erb,
472 examples/example2/treate/textile/content/setup.rb,
473 examples/example2/treate/textile/copyright.erb,
474 examples/example2/treate/textile/header.erb,
475 examples/example2/treate/textile/main.erb: Update templates
476
477 * lib/templater/template.rb: yield yields only one section in the list at a
478 time.
479
480 * examples/example2/treate/setup.rb, lib/templater/template.rb: Fix block
481 error
482
483 * examples/example1/custom/html/body/setup.rb,
484 examples/example1/custom/html/setup.rb,
485 examples/example1/default/html/body/setup.rb,
486 examples/example1/default/html/setup.rb, examples/example1/run.rb,
487 lib/templater/main.rb, lib/templater/providers/erb.rb,
488 lib/templater/template.rb, lib/templater/template_path.rb: Fix errors
489
490 * examples/example1/custom/html/body/setup.rb,
491 examples/example1/default/html/body/setup.rb,
492 examples/example1/default/html/main.haml,
493 examples/example1/default/html/setup.rb, examples/example1/default/setup.rb,
494 examples/example1/run.rb, examples/example2/run.rb,
495 examples/example2/treate/html/copyright.erb,
496 examples/example2/treate/html/header.erb,
497 examples/example2/treate/html/main.erb,
498 examples/example2/treate/html/main.haml,
499 examples/example2/treate/html/what_is.erb, examples/example2/treate/setup.rb,
500 examples/example2/treate/text/copyright.erb,
501 examples/example2/treate/text/main.erb, lib/templater.rb,
502 lib/templater/main.rb, lib/templater/providers/erb.rb,
503 lib/templater/providers/file.rb, lib/templater/providers/haml.rb,
504 lib/templater/providers/markaby.rb,
505 lib/templater/providers/section_provider.rb, lib/templater/template.rb,
506 lib/templater/template_path.rb, spec/basic_spec.rb: Add examples, separate
507 files. Add SectionProvider api
508
509 2008-06-09 Loren Segal <lsegal@soen.ca>
510
511 * examples/example1/custom/html/body/important.html,
512 examples/example1/custom/html/body/setup.rb,
513 examples/example1/default/html/body/setup.rb,
514 examples/example1/default/html/setup.rb, examples/example1/run.rb,
515 lib/templater/template.rb: Working example
516
517 * .gitignore, Rakefile, examples/example1/custom/html/body/important.html,
518 examples/example1/custom/html/body/setup.rb,
519 examples/example1/custom/html/setup.rb,
520 examples/example1/default/html/body/info.erb,
521 examples/example1/default/html/body/setup.rb,
522 examples/example1/default/html/main.haml,
523 examples/example1/default/html/setup.rb, examples/example1/default/setup.rb,
524 examples/example1/run.rb, lib/templater.rb, lib/templater/template.rb,
525 spec/basic_spec.rb: Initial import
Something went wrong with that request. Please try again.