tilt 1.4.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile +33 -26
  4. data/README.md +21 -48
  5. data/Rakefile +21 -30
  6. data/{TEMPLATES.md → docs/TEMPLATES.md} +10 -4
  7. data/docs/common.css +14 -0
  8. data/lib/tilt.rb +85 -154
  9. data/lib/tilt/asciidoc.rb +1 -8
  10. data/lib/tilt/bluecloth.rb +24 -0
  11. data/lib/tilt/builder.rb +1 -8
  12. data/lib/tilt/coffee.rb +1 -8
  13. data/lib/tilt/creole.rb +25 -0
  14. data/lib/tilt/csv.rb +7 -13
  15. data/lib/tilt/erb.rb +2 -55
  16. data/lib/tilt/erubis.rb +43 -0
  17. data/lib/tilt/haml.rb +1 -8
  18. data/lib/tilt/kramdown.rb +33 -0
  19. data/lib/tilt/less.rb +38 -0
  20. data/lib/tilt/liquid.rb +1 -8
  21. data/lib/tilt/mapping.rb +247 -0
  22. data/lib/tilt/markaby.rb +1 -8
  23. data/lib/tilt/maruku.rb +22 -0
  24. data/lib/tilt/nokogiri.rb +1 -8
  25. data/lib/tilt/radius.rb +1 -8
  26. data/lib/tilt/rdiscount.rb +39 -0
  27. data/lib/tilt/rdoc.rb +3 -10
  28. data/lib/tilt/redcarpet.rb +104 -0
  29. data/lib/tilt/{textile.rb → redcloth.rb} +1 -8
  30. data/lib/tilt/sass.rb +41 -0
  31. data/lib/tilt/template.rb +85 -92
  32. data/lib/tilt/wikicloth.rb +22 -0
  33. data/lib/tilt/yajl.rb +1 -8
  34. data/test/{contest.rb → test_helper.rb} +5 -11
  35. data/test/tilt_asciidoctor_test.rb +6 -6
  36. data/test/tilt_blueclothtemplate_test.rb +3 -15
  37. data/test/tilt_buildertemplate_test.rb +3 -3
  38. data/test/tilt_cache_test.rb +2 -2
  39. data/test/tilt_coffeescripttemplate_test.rb +8 -18
  40. data/test/tilt_compilesite_test.rb +2 -2
  41. data/test/tilt_creoletemplate_test.rb +3 -7
  42. data/test/tilt_csv_test.rb +5 -9
  43. data/test/tilt_erbtemplate_test.rb +7 -7
  44. data/test/tilt_erubistemplate_test.rb +7 -7
  45. data/test/tilt_etannitemplate_test.rb +4 -3
  46. data/test/tilt_hamltemplate_test.rb +4 -4
  47. data/test/tilt_kramdown_test.rb +5 -27
  48. data/test/tilt_lesstemplate_test.rb +3 -3
  49. data/test/tilt_liquidtemplate_test.rb +3 -3
  50. data/test/tilt_mapping.rb +215 -0
  51. data/test/tilt_markaby_test.rb +4 -4
  52. data/test/tilt_markdown_test.rb +13 -14
  53. data/test/tilt_marukutemplate_test.rb +6 -18
  54. data/test/tilt_metadata_test.rb +42 -0
  55. data/test/tilt_nokogiritemplate_test.rb +3 -3
  56. data/test/tilt_radiustemplate_test.rb +3 -3
  57. data/test/tilt_rdiscounttemplate_test.rb +6 -18
  58. data/test/tilt_rdoctemplate_test.rb +3 -5
  59. data/test/tilt_redcarpettemplate_test.rb +11 -23
  60. data/test/tilt_redclothtemplate_test.rb +3 -3
  61. data/test/tilt_sasstemplate_test.rb +4 -4
  62. data/test/tilt_stringtemplate_test.rb +4 -3
  63. data/test/tilt_template_test.rb +35 -49
  64. data/test/tilt_test.rb +10 -15
  65. data/test/tilt_wikiclothtemplate_test.rb +3 -3
  66. data/test/tilt_yajltemplate_test.rb +3 -3
  67. data/tilt.gemspec +19 -32
  68. metadata +26 -386
  69. data/lib/tilt/css.rb +0 -80
  70. data/lib/tilt/markdown.rb +0 -214
  71. data/lib/tilt/wiki.rb +0 -58
  72. data/test/tilt_fallback_test.rb +0 -122
metadata CHANGED
@@ -1,384 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
5
- prerelease:
4
+ version: 2.0.0.beta1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Tomayko
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-08 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: asciidoctor
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.1.0
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 0.1.0
30
- - !ruby/object:Gem::Dependency
31
- name: RedCloth
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: bluecloth
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: builder
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: coffee-script
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: contest
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: creole
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: erubis
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
143
- name: haml
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: 2.2.11
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: 2.2.11
158
- - !ruby/object:Gem::Dependency
159
- name: kramdown
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: less
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- - !ruby/object:Gem::Dependency
191
- name: liquid
192
- requirement: !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: '0'
198
- type: :development
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
203
- - - ! '>='
204
- - !ruby/object:Gem::Version
205
- version: '0'
206
- - !ruby/object:Gem::Dependency
207
- name: markaby
208
- requirement: !ruby/object:Gem::Requirement
209
- none: false
210
- requirements:
211
- - - ! '>='
212
- - !ruby/object:Gem::Version
213
- version: '0'
214
- type: :development
215
- prerelease: false
216
- version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
219
- - - ! '>='
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- - !ruby/object:Gem::Dependency
223
- name: maruku
224
- requirement: !ruby/object:Gem::Requirement
225
- none: false
226
- requirements:
227
- - - ! '>='
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
- requirements:
235
- - - ! '>='
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
- - !ruby/object:Gem::Dependency
239
- name: nokogiri
240
- requirement: !ruby/object:Gem::Requirement
241
- none: false
242
- requirements:
243
- - - ! '>='
244
- - !ruby/object:Gem::Version
245
- version: '0'
246
- type: :development
247
- prerelease: false
248
- version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ! '>='
252
- - !ruby/object:Gem::Version
253
- version: '0'
254
- - !ruby/object:Gem::Dependency
255
- name: radius
256
- requirement: !ruby/object:Gem::Requirement
257
- none: false
258
- requirements:
259
- - - ! '>='
260
- - !ruby/object:Gem::Version
261
- version: '0'
262
- type: :development
263
- prerelease: false
264
- version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
- requirements:
267
- - - ! '>='
268
- - !ruby/object:Gem::Version
269
- version: '0'
270
- - !ruby/object:Gem::Dependency
271
- name: rdiscount
272
- requirement: !ruby/object:Gem::Requirement
273
- none: false
274
- requirements:
275
- - - ! '>='
276
- - !ruby/object:Gem::Version
277
- version: '0'
278
- type: :development
279
- prerelease: false
280
- version_requirements: !ruby/object:Gem::Requirement
281
- none: false
282
- requirements:
283
- - - ! '>='
284
- - !ruby/object:Gem::Version
285
- version: '0'
286
- - !ruby/object:Gem::Dependency
287
- name: rdoc
288
- requirement: !ruby/object:Gem::Requirement
289
- none: false
290
- requirements:
291
- - - ! '>='
292
- - !ruby/object:Gem::Version
293
- version: '0'
294
- type: :development
295
- prerelease: false
296
- version_requirements: !ruby/object:Gem::Requirement
297
- none: false
298
- requirements:
299
- - - ! '>='
300
- - !ruby/object:Gem::Version
301
- version: '0'
302
- - !ruby/object:Gem::Dependency
303
- name: redcarpet
304
- requirement: !ruby/object:Gem::Requirement
305
- none: false
306
- requirements:
307
- - - ! '>='
308
- - !ruby/object:Gem::Version
309
- version: '0'
310
- type: :development
311
- prerelease: false
312
- version_requirements: !ruby/object:Gem::Requirement
313
- none: false
314
- requirements:
315
- - - ! '>='
316
- - !ruby/object:Gem::Version
317
- version: '0'
318
- - !ruby/object:Gem::Dependency
319
- name: sass
320
- requirement: !ruby/object:Gem::Requirement
321
- none: false
322
- requirements:
323
- - - ! '>='
324
- - !ruby/object:Gem::Version
325
- version: '0'
326
- type: :development
327
- prerelease: false
328
- version_requirements: !ruby/object:Gem::Requirement
329
- none: false
330
- requirements:
331
- - - ! '>='
332
- - !ruby/object:Gem::Version
333
- version: '0'
334
- - !ruby/object:Gem::Dependency
335
- name: wikicloth
336
- requirement: !ruby/object:Gem::Requirement
337
- none: false
338
- requirements:
339
- - - ! '>='
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
- type: :development
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- none: false
346
- requirements:
347
- - - ! '>='
348
- - !ruby/object:Gem::Version
349
- version: '0'
350
- - !ruby/object:Gem::Dependency
351
- name: yajl-ruby
352
- requirement: !ruby/object:Gem::Requirement
353
- none: false
354
- requirements:
355
- - - ! '>='
356
- - !ruby/object:Gem::Version
357
- version: '0'
358
- type: :development
359
- prerelease: false
360
- version_requirements: !ruby/object:Gem::Requirement
361
- none: false
362
- requirements:
363
- - - ! '>='
364
- - !ruby/object:Gem::Version
365
- version: '0'
366
- - !ruby/object:Gem::Dependency
367
- name: rdoc
368
- requirement: !ruby/object:Gem::Requirement
369
- none: false
370
- requirements:
371
- - - ! '>='
372
- - !ruby/object:Gem::Version
373
- version: '0'
374
- type: :development
375
- prerelease: false
376
- version_requirements: !ruby/object:Gem::Requirement
377
- none: false
378
- requirements:
379
- - - ! '>='
380
- - !ruby/object:Gem::Version
381
- version: '0'
11
+ date: 2013-07-16 00:00:00.000000000 Z
12
+ dependencies: []
382
13
  description: Generic interface to multiple Ruby template engines
383
14
  email: r@tomayko.com
384
15
  executables:
@@ -392,36 +23,45 @@ files:
392
23
  - HACKING
393
24
  - README.md
394
25
  - Rakefile
395
- - TEMPLATES.md
396
26
  - bin/tilt
27
+ - docs/TEMPLATES.md
28
+ - docs/common.css
397
29
  - lib/tilt.rb
398
30
  - lib/tilt/asciidoc.rb
31
+ - lib/tilt/bluecloth.rb
399
32
  - lib/tilt/builder.rb
400
33
  - lib/tilt/coffee.rb
401
- - lib/tilt/css.rb
34
+ - lib/tilt/creole.rb
402
35
  - lib/tilt/csv.rb
403
36
  - lib/tilt/erb.rb
37
+ - lib/tilt/erubis.rb
404
38
  - lib/tilt/etanni.rb
405
39
  - lib/tilt/haml.rb
40
+ - lib/tilt/kramdown.rb
41
+ - lib/tilt/less.rb
406
42
  - lib/tilt/liquid.rb
43
+ - lib/tilt/mapping.rb
407
44
  - lib/tilt/markaby.rb
408
- - lib/tilt/markdown.rb
45
+ - lib/tilt/maruku.rb
409
46
  - lib/tilt/nokogiri.rb
410
47
  - lib/tilt/plain.rb
411
48
  - lib/tilt/radius.rb
49
+ - lib/tilt/rdiscount.rb
412
50
  - lib/tilt/rdoc.rb
51
+ - lib/tilt/redcarpet.rb
52
+ - lib/tilt/redcloth.rb
53
+ - lib/tilt/sass.rb
413
54
  - lib/tilt/string.rb
414
55
  - lib/tilt/template.rb
415
- - lib/tilt/textile.rb
416
- - lib/tilt/wiki.rb
56
+ - lib/tilt/wikicloth.rb
417
57
  - lib/tilt/yajl.rb
418
- - test/contest.rb
419
58
  - test/markaby/locals.mab
420
59
  - test/markaby/markaby.mab
421
60
  - test/markaby/markaby_other_static.mab
422
61
  - test/markaby/render_twice.mab
423
62
  - test/markaby/scope.mab
424
63
  - test/markaby/yielding.mab
64
+ - test/test_helper.rb
425
65
  - test/tilt_asciidoctor_test.rb
426
66
  - test/tilt_blueclothtemplate_test.rb
427
67
  - test/tilt_buildertemplate_test.rb
@@ -433,15 +73,16 @@ files:
433
73
  - test/tilt_erbtemplate_test.rb
434
74
  - test/tilt_erubistemplate_test.rb
435
75
  - test/tilt_etannitemplate_test.rb
436
- - test/tilt_fallback_test.rb
437
76
  - test/tilt_hamltemplate_test.rb
438
77
  - test/tilt_kramdown_test.rb
439
78
  - test/tilt_lesstemplate_test.less
440
79
  - test/tilt_lesstemplate_test.rb
441
80
  - test/tilt_liquidtemplate_test.rb
81
+ - test/tilt_mapping.rb
442
82
  - test/tilt_markaby_test.rb
443
83
  - test/tilt_markdown_test.rb
444
84
  - test/tilt_marukutemplate_test.rb
85
+ - test/tilt_metadata_test.rb
445
86
  - test/tilt_nokogiritemplate_test.rb
446
87
  - test/tilt_radiustemplate_test.rb
447
88
  - test/tilt_rdiscounttemplate_test.rb
@@ -458,6 +99,7 @@ files:
458
99
  homepage: http://github.com/rtomayko/tilt/
459
100
  licenses:
460
101
  - MIT
102
+ metadata: {}
461
103
  post_install_message:
462
104
  rdoc_options:
463
105
  - --line-numbers
@@ -469,20 +111,18 @@ rdoc_options:
469
111
  require_paths:
470
112
  - lib
471
113
  required_ruby_version: !ruby/object:Gem::Requirement
472
- none: false
473
114
  requirements:
474
- - - ! '>='
115
+ - - '>='
475
116
  - !ruby/object:Gem::Version
476
117
  version: '0'
477
118
  required_rubygems_version: !ruby/object:Gem::Requirement
478
- none: false
479
119
  requirements:
480
- - - ! '>='
120
+ - - '>'
481
121
  - !ruby/object:Gem::Version
482
- version: '0'
122
+ version: 1.3.1
483
123
  requirements: []
484
124
  rubyforge_project:
485
- rubygems_version: 1.8.25
125
+ rubygems_version: 2.0.2
486
126
  signing_key:
487
127
  specification_version: 2
488
128
  summary: Generic interface to multiple Ruby template engines
@@ -498,7 +138,6 @@ test_files:
498
138
  - test/tilt_erbtemplate_test.rb
499
139
  - test/tilt_erubistemplate_test.rb
500
140
  - test/tilt_etannitemplate_test.rb
501
- - test/tilt_fallback_test.rb
502
141
  - test/tilt_hamltemplate_test.rb
503
142
  - test/tilt_kramdown_test.rb
504
143
  - test/tilt_lesstemplate_test.rb
@@ -506,6 +145,7 @@ test_files:
506
145
  - test/tilt_markaby_test.rb
507
146
  - test/tilt_markdown_test.rb
508
147
  - test/tilt_marukutemplate_test.rb
148
+ - test/tilt_metadata_test.rb
509
149
  - test/tilt_nokogiritemplate_test.rb
510
150
  - test/tilt_radiustemplate_test.rb
511
151
  - test/tilt_rdiscounttemplate_test.rb