tartan 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/History.txt +11 -0
  2. data/Manifest.txt +42 -0
  3. data/{README → README.txt} +12 -8
  4. data/Rakefile +78 -0
  5. data/lib/core_ext/array.rb +9 -10
  6. data/lib/core_ext/module.rb +2 -0
  7. data/lib/{symbolize.rb → core_ext/symbolize.rb} +0 -0
  8. data/lib/core_ext.rb +7 -0
  9. data/lib/{markdown.yml → tartan/markdown/markdown.yml} +67 -25
  10. data/lib/tartan/markdown/rules.rb +11 -0
  11. data/lib/tartan/markdown.rb +14 -0
  12. data/lib/tartan/table/rules.rb +11 -0
  13. data/lib/{table.yml → tartan/table/table.yml} +1 -1
  14. data/lib/tartan/test/base_rules.rb +9 -0
  15. data/lib/{test_base.yml → tartan/test/test_base.yml} +0 -0
  16. data/lib/{wiki-test.rb → tartan/test/wiki-test.rb} +15 -12
  17. data/lib/tartan/wiki_rule.rb +242 -0
  18. data/lib/tartan/wikilink/rules.rb +18 -0
  19. data/lib/{wikilink.yml → tartan/wikilink/wikilink.yml} +4 -2
  20. data/lib/tartan.rb +259 -270
  21. data/test/test-combo.rb +21 -14
  22. data/test/test-combo.yml +17 -0
  23. data/test/test-markdown-and-wikilink.rb +22 -0
  24. data/test/test-markdown-and-wikilink.yml +6 -0
  25. data/test/test-markdown.rb +4 -5
  26. data/test/test-markdown.yml +194 -1
  27. data/test/test-readme-example.rb +6 -5
  28. data/test/test-tables.rb +11 -7
  29. data/test/test-tartan.rb +8 -7
  30. data/test/test-wikilink.rb +13 -9
  31. data/test/test-wikilink.yml +3 -0
  32. metadata +47 -86
  33. data/lib/tartan_markdown.rb +0 -8
  34. data/lib/tartan_markdown_def.rb +0 -7
  35. data/lib/tartan_table_def.rb +0 -7
  36. data/lib/tartan_test_base_def.rb +0 -5
  37. data/lib/tartan_wikilink_def.rb +0 -14
  38. data/lib/wiki_rule.rb +0 -240
  39. data/test/MarkdownTest_1.0/Amps and angle encoding.html +0 -17
  40. data/test/MarkdownTest_1.0/Amps and angle encoding.text +0 -21
  41. data/test/MarkdownTest_1.0/Auto links.html +0 -18
  42. data/test/MarkdownTest_1.0/Auto links.text +0 -13
  43. data/test/MarkdownTest_1.0/Backslash codeescapes.html +0 -68
  44. data/test/MarkdownTest_1.0/Backslash codeescapes.text +0 -68
  45. data/test/MarkdownTest_1.0/Backslash simpleescapes.html +0 -33
  46. data/test/MarkdownTest_1.0/Backslash simpleescapes.text +0 -33
  47. data/test/MarkdownTest_1.0/Blockquotes with code blocks.html +0 -15
  48. data/test/MarkdownTest_1.0/Blockquotes with code blocks.text +0 -11
  49. data/test/MarkdownTest_1.0/Hard-wrapped paragraphs with list-like lines.html +0 -8
  50. data/test/MarkdownTest_1.0/Hard-wrapped paragraphs with list-like lines.text +0 -8
  51. data/test/MarkdownTest_1.0/Horizontal rules.html +0 -71
  52. data/test/MarkdownTest_1.0/Horizontal rules.text +0 -67
  53. data/test/MarkdownTest_1.0/Inline HTML (Advanced).html +0 -14
  54. data/test/MarkdownTest_1.0/Inline HTML (Advanced).text +0 -14
  55. data/test/MarkdownTest_1.0/Inline HTML (Simple).html +0 -72
  56. data/test/MarkdownTest_1.0/Inline HTML (Simple).text +0 -69
  57. data/test/MarkdownTest_1.0/Inline HTML comments.html +0 -13
  58. data/test/MarkdownTest_1.0/Inline HTML comments.text +0 -13
  59. data/test/MarkdownTest_1.0/Links, inline style.html +0 -9
  60. data/test/MarkdownTest_1.0/Links, inline style.text +0 -9
  61. data/test/MarkdownTest_1.0/Links, reference style.html +0 -18
  62. data/test/MarkdownTest_1.0/Links, reference style.text +0 -31
  63. data/test/MarkdownTest_1.0/Literal quotes in titles.html +0 -3
  64. data/test/MarkdownTest_1.0/Literal quotes in titles.text +0 -7
  65. data/test/MarkdownTest_1.0/Markdown Documentation - Basics.html +0 -314
  66. data/test/MarkdownTest_1.0/Markdown Documentation - Basics.out +0 -316
  67. data/test/MarkdownTest_1.0/Markdown Documentation - Basics.text +0 -306
  68. data/test/MarkdownTest_1.0/Markdown Documentation - Syntax.html +0 -942
  69. data/test/MarkdownTest_1.0/Markdown Documentation - Syntax.out +0 -947
  70. data/test/MarkdownTest_1.0/Markdown Documentation - Syntax.text +0 -888
  71. data/test/MarkdownTest_1.0/Nested blockquotes.html +0 -9
  72. data/test/MarkdownTest_1.0/Nested blockquotes.text +0 -5
  73. data/test/MarkdownTest_1.0/Ordered and unordered lists.html +0 -137
  74. data/test/MarkdownTest_1.0/Ordered and unordered lists.text +0 -122
  75. data/test/MarkdownTest_1.0/Strong and em together.html +0 -7
  76. data/test/MarkdownTest_1.0/Strong and em together.text +0 -7
  77. data/test/MarkdownTest_1.0/Tabs.html +0 -25
  78. data/test/MarkdownTest_1.0/Tabs.text +0 -21
  79. data/test/MarkdownTest_1.0/Tidyness.html +0 -8
  80. data/test/MarkdownTest_1.0/Tidyness.text +0 -5
  81. data/test/MarkdownTest_1.0/run-markdown.rb +0 -56
  82. data/test/MarkdownTest_1.0/test-fireball-markdown.rb +0 -177
  83. data/test/MarkdownTest_1.0/testdiff.rb +0 -42
  84. data/test/harder/test-markdown-harder.rb +0 -11
  85. data/test/harder/test-markdown-harder.yml +0 -111
  86. data/test/redcloth/redcloth-markdown-tests.rb +0 -29
  87. data/test/redcloth/redcloth-markdown-tests.yml +0 -218
  88. data/test/test-tartan-markdown.rb +0 -11
@@ -0,0 +1,6 @@
1
+ #$Id: test-larry-wikiparser.yml 116 2006-04-23 12:23:08Z larry $
2
+
3
+ title: BackquotedLink
4
+ in: "`[[my page]]`"
5
+ html: '<p><code>[[my page]]</code></p>'
6
+ ---
@@ -1,11 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
- #$Id: test-markdown.rb 148 2006-07-22 14:04:20Z larry $
2
+ #$Id: test-markdown.rb 181 2007-01-05 20:59:06Z bitherder $
3
3
 
4
4
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
5
5
 
6
- #require 'tartan'
7
- require 'tartan_markdown'
8
- require 'wiki-test'
6
+ require 'tartan/markdown'
7
+ require 'tartan/test/wiki-test'
9
8
 
10
- cases = WikiTestCases.new(TartanMarkdown, "test-markdown.yml")
9
+ cases = WikiTestCases.new(Tartan::Markdown::Parser, "test-markdown.yml")
11
10
 
@@ -1,4 +1,4 @@
1
- #$Id: test-markdown.yml 175 2006-08-21 14:52:09Z bitherder $
1
+ #$Id: test-markdown.yml 198 2007-05-15 16:06:13Z bitherder $
2
2
  ---
3
3
  title: OneParagraph
4
4
  in: "abc\ndef\nxyz"
@@ -1189,3 +1189,196 @@ html: |-
1189
1189
  title: DoubleCevrons
1190
1190
  in: Start with <<some text>> and some other text.
1191
1191
  html: <p>Start with &lt;&lt;some text&gt;&gt; and some other text.</p>
1192
+ ---
1193
+ title: ThreeLevelBullet
1194
+ in: |-
1195
+ * aaaa
1196
+ * bbbb
1197
+ * xxxx
1198
+ * yyyy
1199
+ * pppp
1200
+ * dddd
1201
+ * qqqq
1202
+ * zzzz
1203
+ * cccc
1204
+ html: |-
1205
+ <ul>
1206
+ <li>aaaa</li>
1207
+ <li>bbbb
1208
+ <ul>
1209
+ <li>xxxx</li>
1210
+ <li>yyyy
1211
+ <ul>
1212
+ <li>pppp</li>
1213
+ <li>dddd</li>
1214
+ <li>qqqq</li>
1215
+ </ul></li>
1216
+ <li>zzzz</li>
1217
+ </ul></li>
1218
+ <li>cccc</li>
1219
+ </ul>
1220
+ ---
1221
+ title: diget_starts_bullet
1222
+ in: |-
1223
+ * 1 Happy
1224
+ * 2 Days
1225
+ * 3 Again
1226
+ html: |-
1227
+ <ul>
1228
+ <li>1 Happy</li>
1229
+ <li>2 Days</li>
1230
+ <li>3 Again</li>
1231
+ </ul>
1232
+ ---
1233
+ title: BulletListWEmphasis
1234
+ in: |-
1235
+ * DabbleDB
1236
+ * OpenRecord
1237
+ * JotSpot
1238
+ * *etc*
1239
+ html: |-
1240
+ <ul>
1241
+ <li>DabbleDB</li>
1242
+ <li>OpenRecord</li>
1243
+ <li>JotSpot</li>
1244
+ <li><em>etc</em></li>
1245
+ </ul>
1246
+ ---
1247
+ title: BulletListInBulletList
1248
+ in: |-
1249
+ * A
1250
+
1251
+ * one
1252
+ * two
1253
+
1254
+ * B
1255
+ html: |-
1256
+ <ul>
1257
+ <li><p>A</p>
1258
+ <ul>
1259
+ <li>one</li>
1260
+ <li>two</li>
1261
+ </ul></li>
1262
+ <li><p>B</p></li>
1263
+ </ul>
1264
+ ---
1265
+ title: CompactBulletListWithLastLineSpaced
1266
+ in: |-
1267
+ * a
1268
+ * b
1269
+ * b 1
1270
+ * b 2
1271
+ * c
1272
+
1273
+ * d
1274
+ html: |-
1275
+ <ul>
1276
+ <li>a</li>
1277
+ <li>b
1278
+ <ul>
1279
+ <li>b 1</li>
1280
+ <li>b 2</li>
1281
+ </ul>
1282
+ <li><p>c</p></li>
1283
+ <li><p>d</p></li>
1284
+ </ul>
1285
+ ---
1286
+ title: SpaceBeforeCloseBulletList
1287
+ in: "Foo\n \n* a\n* b"
1288
+ html: |-
1289
+ <p>Foo</p>
1290
+
1291
+ <ul>
1292
+ <li>a</li>
1293
+ <li>b</li>
1294
+ </ul>
1295
+ ---
1296
+ title: SpaceBeforeSpacedBulletList
1297
+ in: "Foo\n \n* a\n\n* b"
1298
+ html: |-
1299
+ <p>Foo</p>
1300
+
1301
+ <ul>
1302
+ <li><p>a</p></li>
1303
+ <li><p>b</p></li>
1304
+ </ul>
1305
+ ---
1306
+ title: SpacesBeforeParagraphs
1307
+ in: |2
1308
+ xxx
1309
+
1310
+ xxx
1311
+
1312
+ xxx
1313
+
1314
+ xxx
1315
+
1316
+ xxx
1317
+ html: |2
1318
+ <p>xxx</p>
1319
+
1320
+ <p>xxx</p>
1321
+
1322
+ <p>xxx</p>
1323
+
1324
+ <p>xxx</p>
1325
+
1326
+ <pre><code>xxx
1327
+ </code></pre>
1328
+ ---
1329
+ title: paragraphsWithSpacesAfterFirstLine
1330
+ in: |2
1331
+ xxxxx
1332
+ xxxxx
1333
+ xxxxx
1334
+ xxxxx
1335
+
1336
+ xxxx
1337
+ xxxx
1338
+ xxxx
1339
+
1340
+ xxxx
1341
+ xxxx
1342
+
1343
+ xxxxx
1344
+ xxxx
1345
+ html: |2
1346
+ <p>xxxxx
1347
+ xxxxx
1348
+ xxxxx
1349
+ xxxxx</p>
1350
+
1351
+ <p>xxxx
1352
+ xxxx
1353
+ xxxx</p>
1354
+
1355
+ <p>xxxx
1356
+ xxxx</p>
1357
+
1358
+ <p>xxxxx
1359
+ xxxx</p>
1360
+ ---
1361
+ # GRUBER-EXCEPTION: there should be an extral new-line between lines 5 and 6.
1362
+ title: CodeBlocksAndParagraphs
1363
+ in: |2
1364
+ 1xxxx
1365
+
1366
+ 2xxxx
1367
+
1368
+ 3xxxx
1369
+ 4xxxx
1370
+
1371
+ 5xxxx
1372
+ 6xxxx
1373
+ html: |2
1374
+ <p>1xxxx</p>
1375
+
1376
+ <pre><code>2xxxx
1377
+
1378
+ 3xxxx
1379
+ 4xxxx
1380
+
1381
+ 5xxxx
1382
+ </code></pre>
1383
+ <p>6xxxx</p>
1384
+
@@ -1,9 +1,10 @@
1
- #$Id: test-readme-example.rb 173 2006-08-21 09:19:04Z bitherder $
1
+ #$Id: test-readme-example.rb 182 2007-01-28 21:32:51Z bitherder $
2
2
 
3
3
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
4
4
 
5
5
  require 'test/unit'
6
6
  require 'tartan'
7
+ require 'tracer'
7
8
 
8
9
  ParagraphAndCodeDef = %q~
9
10
  block:
@@ -101,7 +102,7 @@ EmbeddedEmphasisText =
101
102
  "Now listen to this **I want *you* to really hear me**."
102
103
 
103
104
  class ReadmeTestCase < Test::Unit::TestCase
104
- class ParagraphAndCode < Tartan
105
+ class ParagraphAndCode < Tartan::Parser
105
106
  set_defs(ParagraphAndCodeDef)
106
107
  end
107
108
 
@@ -128,7 +129,7 @@ their party.</p>
128
129
  assert_equal(html, parser.to_html)
129
130
  end
130
131
 
131
- class WithEmphasis < Tartan
132
+ class WithEmphasis < Tartan::Parser
132
133
  set_defs(WithEmphasisDef)
133
134
  end
134
135
 
@@ -153,7 +154,7 @@ their party.</p>
153
154
  assert_equal(html, parser.to_html)
154
155
  end
155
156
 
156
- class WithoutStrong < Tartan
157
+ class WithoutStrong < Tartan::Parser
157
158
  set_defs(WithoutStrongDef)
158
159
  end
159
160
 
@@ -164,7 +165,7 @@ their party.</p>
164
165
  assert_equal(html, parser.to_html)
165
166
  end
166
167
 
167
- class EntityMixin < Tartan
168
+ class EntityMixin < Tartan::Parser
168
169
  set_defs(WithEmphasisDef)
169
170
  add_defs(EntityDef)
170
171
  end
data/test/test-tables.rb CHANGED
@@ -4,13 +4,17 @@
4
4
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
5
5
 
6
6
  require 'tartan'
7
- require 'tartan_table_def'
8
- require 'wiki-test'
9
- require 'tartan_test_base_def'
7
+ require 'tartan/table/rules'
8
+ require 'tartan/test/wiki-test'
9
+ require 'tartan/test/base_rules'
10
10
 
11
- class TartanTestTable < Tartan
12
- include TartanTestBaseDef
13
- include TartanTableDef
11
+ module Tartan
12
+ module Table
13
+ class Parser < Tartan::Parser
14
+ include Tartan::Test::BaseRules
15
+ include Tartan::Table::Rules
16
+ end
17
+ end
14
18
  end
15
19
 
16
- cases = WikiTestCases.new(TartanTestTable, "test-tables.yml")
20
+ cases = WikiTestCases.new(Tartan::Table::Parser, "test-tables.yml")
data/test/test-tartan.rb CHANGED
@@ -1,4 +1,4 @@
1
- #$Id: test-tartan.rb 169 2006-08-16 22:16:12Z bitherder $
1
+ #$Id: test-tartan.rb 181 2007-01-05 20:59:06Z bitherder $
2
2
 
3
3
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
4
4
 
@@ -110,6 +110,7 @@ block:
110
110
  ~
111
111
 
112
112
  class WikiDefsTestCase < Test::Unit::TestCase
113
+ include Tartan
113
114
  def testInitWNoArg
114
115
  defs = WikiDefs.new
115
116
  assert(defs, "New def is not nil")
@@ -195,7 +196,7 @@ class WikiDefsTestCase < Test::Unit::TestCase
195
196
  end
196
197
 
197
198
  class TartanTestCase < Test::Unit::TestCase
198
- class TestTartan < Tartan
199
+ class TestTartan < Tartan::Parser
199
200
  set_defs({:block => [
200
201
  {:title => 'rule',
201
202
  :match => /:\)/,
@@ -218,7 +219,7 @@ class TartanTestCase < Test::Unit::TestCase
218
219
  assert_equal("Test.\n", parser.to_html)
219
220
  end
220
221
 
221
- class LastRuleTartan < Tartan
222
+ class LastRuleTartan < Tartan::Parser
222
223
  set_defs({:block => [
223
224
  {:title => 'rule',
224
225
  :position => :not_last,
@@ -238,7 +239,7 @@ class TartanTestCase < Test::Unit::TestCase
238
239
  assert_equal(":)\n:)-", parser.to_html)
239
240
  end
240
241
 
241
- class VarSetTartan < Tartan
242
+ class VarSetTartan < Tartan::Parser
242
243
  set_defs({:block => [
243
244
  {:title => 'var_rule',
244
245
  :match => /(:\))/,
@@ -253,7 +254,7 @@ class TartanTestCase < Test::Unit::TestCase
253
254
  assert_equal("-:)-", parser.to_html)
254
255
  end
255
256
 
256
- class SetVarMarkTartan < Tartan
257
+ class SetVarMarkTartan < Tartan::Parser
257
258
  set_defs({:block => [
258
259
  {:title => 'var_rule',
259
260
  :match => /(:\))/,
@@ -268,7 +269,7 @@ class TartanTestCase < Test::Unit::TestCase
268
269
  assert_equal("<-:)->:)<>", parser.to_html)
269
270
  end
270
271
 
271
- class TemplateTartan < Tartan
272
+ class TemplateTartan < Tartan::Parser
272
273
  set_defs Template_def
273
274
  end
274
275
 
@@ -281,7 +282,7 @@ class TartanTestCase < Test::Unit::TestCase
281
282
  assert_equal(":}", parser.to_html)
282
283
  end
283
284
 
284
- class DefaultTartan < Tartan
285
+ class DefaultTartan < Tartan::Parser
285
286
  set_defs Default_def
286
287
  end
287
288
 
@@ -1,18 +1,22 @@
1
1
  #!/usr/bin/env ruby
2
- #$Id: test-wikilink.rb 158 2006-07-23 23:47:12Z larry $
2
+ #$Id: test-wikilink.rb 181 2007-01-05 20:59:06Z bitherder $
3
3
 
4
4
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
5
5
 
6
6
  require 'tartan'
7
- require 'tartan_wikilink_def'
8
- require 'wiki-test'
7
+ require 'tartan/wikilink/rules'
8
+ require 'tartan/test/wiki-test'
9
+ require 'tartan/test/base_rules'
9
10
  require 'wikilink-test-helper'
10
- require 'tartan_test_base_def'
11
11
 
12
- class TartanTestWikilink < Tartan
13
- include TartanTestBaseDef
14
- include TartanWikilinkDef
15
- include WikilinkTestHelper
12
+ module Tartan
13
+ module Wikilink
14
+ class Parser < Tartan::Parser
15
+ include Tartan::Test::BaseRules
16
+ include Tartan::Wikilink::Rules
17
+ include WikilinkTestHelper
18
+ end
19
+ end
16
20
  end
17
21
 
18
- cases = WikiTestCases.new(TartanTestWikilink, "test-wikilink.yml")
22
+ cases = WikiTestCases.new(Tartan::Wikilink::Parser, "test-wikilink.yml")
@@ -20,3 +20,6 @@ title: ExistingWithNameAndLinkBodyWithStyle
20
20
  in: "[[Page Name|Link *Body*]]"
21
21
  html: '<p><a class="existing" href="/prefix/Page+Name">Link <em>Body</em></a></p>'
22
22
  ---
23
+ title: TwoLinksOnALineWLinkText
24
+ in: "[[Page one]] [[Page two|Second]] -- some other text"
25
+ html: '<p><a class="existing" href="/prefix/Page+one">Page one</a> <a class="existing" href="/prefix/Page+two">Second</a> -- some other text</p>'
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: tartan
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2006-08-21 00:00:00 +02:00
6
+ version: 0.2.0
7
+ date: 2007-05-16 00:00:00 +02:00
8
8
  summary: A library for building text parsers
9
9
  require_paths:
10
10
  - lib
11
- email:
12
- homepage:
13
- rubyforge_project:
11
+ email: tartan@folklogic.com
12
+ homepage: http://tartan.rubyforge.com/
13
+ rubyforge_project: tartan
14
14
  description: A text parsing engine. The syntax is defined outside the engine as regex-based rules, in YAML or Ruby. It supports layering and multiple output types. Rules for Markdown to HTML are included, with optional layered extensions for tables and wikilinks.
15
15
  autorequire:
16
16
  default_executable:
@@ -29,14 +29,37 @@ post_install_message:
29
29
  authors:
30
30
  - Larry Baltz and David B. Anderson
31
31
  files:
32
- - README
33
- - TODO
32
+ - History.txt
34
33
  - MIT-LICENSE
35
- - test/MarkdownTest_1.0
36
- - test/harder
37
- - test/redcloth
34
+ - Manifest.txt
35
+ - README.txt
36
+ - Rakefile
37
+ - TODO
38
+ - lib/core_ext.rb
39
+ - lib/core_ext/array.rb
40
+ - lib/core_ext/file.rb
41
+ - lib/core_ext/hash.rb
42
+ - lib/core_ext/match_data.rb
43
+ - lib/core_ext/module.rb
44
+ - lib/core_ext/regexp.rb
45
+ - lib/core_ext/symbolize.rb
46
+ - lib/tartan.rb
47
+ - lib/tartan/markdown.rb
48
+ - lib/tartan/markdown/markdown.yml
49
+ - lib/tartan/markdown/rules.rb
50
+ - lib/tartan/table/rules.rb
51
+ - lib/tartan/table/table.yml
52
+ - lib/tartan/test/base_rules.rb
53
+ - lib/tartan/test/test_base.yml
54
+ - lib/tartan/test/wiki-test.rb
55
+ - lib/tartan/wiki_rule.rb
56
+ - lib/tartan/wikilink/rules.rb
57
+ - lib/tartan/wikilink/wikilink.yml
38
58
  - test/test-combo.rb
59
+ - test/test-combo.yml
39
60
  - test/test-hash.rb
61
+ - test/test-markdown-and-wikilink.rb
62
+ - test/test-markdown-and-wikilink.yml
40
63
  - test/test-markdown.rb
41
64
  - test/test-markdown.yml
42
65
  - test/test-match-data.rb
@@ -44,100 +67,38 @@ files:
44
67
  - test/test-regexp.rb
45
68
  - test/test-tables.rb
46
69
  - test/test-tables.yml
47
- - test/test-tartan-markdown.rb
48
70
  - test/test-tartan.rb
49
71
  - test/test-wikilink.rb
50
72
  - test/test-wikilink.yml
51
73
  - test/wikilink-test-helper.rb
52
- - test/MarkdownTest_1.0/Amps and angle encoding.html
53
- - test/MarkdownTest_1.0/Amps and angle encoding.text
54
- - test/MarkdownTest_1.0/Auto links.html
55
- - test/MarkdownTest_1.0/Auto links.text
56
- - test/MarkdownTest_1.0/Backslash codeescapes.html
57
- - test/MarkdownTest_1.0/Backslash codeescapes.text
58
- - test/MarkdownTest_1.0/Backslash simpleescapes.html
59
- - test/MarkdownTest_1.0/Backslash simpleescapes.text
60
- - test/MarkdownTest_1.0/Blockquotes with code blocks.html
61
- - test/MarkdownTest_1.0/Blockquotes with code blocks.text
62
- - test/MarkdownTest_1.0/Hard-wrapped paragraphs with list-like lines.html
63
- - test/MarkdownTest_1.0/Hard-wrapped paragraphs with list-like lines.text
64
- - test/MarkdownTest_1.0/Horizontal rules.html
65
- - test/MarkdownTest_1.0/Horizontal rules.text
66
- - test/MarkdownTest_1.0/Inline HTML (Advanced).html
67
- - test/MarkdownTest_1.0/Inline HTML (Advanced).text
68
- - test/MarkdownTest_1.0/Inline HTML (Simple).html
69
- - test/MarkdownTest_1.0/Inline HTML (Simple).text
70
- - test/MarkdownTest_1.0/Inline HTML comments.html
71
- - test/MarkdownTest_1.0/Inline HTML comments.text
72
- - test/MarkdownTest_1.0/Links, inline style.html
73
- - test/MarkdownTest_1.0/Links, inline style.text
74
- - test/MarkdownTest_1.0/Links, reference style.html
75
- - test/MarkdownTest_1.0/Links, reference style.text
76
- - test/MarkdownTest_1.0/Literal quotes in titles.html
77
- - test/MarkdownTest_1.0/Literal quotes in titles.text
78
- - test/MarkdownTest_1.0/Markdown Documentation - Basics.html
79
- - test/MarkdownTest_1.0/Markdown Documentation - Basics.out
80
- - test/MarkdownTest_1.0/Markdown Documentation - Basics.text
81
- - test/MarkdownTest_1.0/Markdown Documentation - Syntax.html
82
- - test/MarkdownTest_1.0/Markdown Documentation - Syntax.out
83
- - test/MarkdownTest_1.0/Markdown Documentation - Syntax.text
84
- - test/MarkdownTest_1.0/Nested blockquotes.html
85
- - test/MarkdownTest_1.0/Nested blockquotes.text
86
- - test/MarkdownTest_1.0/Ordered and unordered lists.html
87
- - test/MarkdownTest_1.0/Ordered and unordered lists.text
88
- - test/MarkdownTest_1.0/Strong and em together.html
89
- - test/MarkdownTest_1.0/Strong and em together.text
90
- - test/MarkdownTest_1.0/Tabs.html
91
- - test/MarkdownTest_1.0/Tabs.text
92
- - test/MarkdownTest_1.0/Tidyness.html
93
- - test/MarkdownTest_1.0/Tidyness.text
94
- - test/MarkdownTest_1.0/run-markdown.rb
95
- - test/MarkdownTest_1.0/test-fireball-markdown.rb
96
- - test/MarkdownTest_1.0/testdiff.rb
97
- - test/harder/test-markdown-harder.rb
98
- - test/harder/test-markdown-harder.yml
99
- - test/redcloth/redcloth-markdown-tests.rb
100
- - test/redcloth/redcloth-markdown-tests.yml
101
- - lib/core_ext
102
- - lib/markdown.yml
103
- - lib/symbolize.rb
104
- - lib/table.yml
105
- - lib/tartan.rb
106
- - lib/tartan_markdown.rb
107
- - lib/tartan_markdown_def.rb
108
- - lib/tartan_table_def.rb
109
- - lib/tartan_test_base_def.rb
110
- - lib/tartan_wikilink_def.rb
111
- - lib/test_base.yml
112
- - lib/wiki-test.rb
113
- - lib/wiki_rule.rb
114
- - lib/wikilink.yml
115
- - lib/core_ext/array.rb
116
- - lib/core_ext/file.rb
117
- - lib/core_ext/hash.rb
118
- - lib/core_ext/match_data.rb
119
- - lib/core_ext/module.rb
120
- - lib/core_ext/regexp.rb
121
74
  test_files:
122
75
  - test/test-combo.rb
123
76
  - test/test-hash.rb
77
+ - test/test-markdown-and-wikilink.rb
124
78
  - test/test-markdown.rb
125
79
  - test/test-match-data.rb
126
80
  - test/test-readme-example.rb
127
81
  - test/test-regexp.rb
128
82
  - test/test-tables.rb
129
- - test/test-tartan-markdown.rb
130
83
  - test/test-tartan.rb
131
84
  - test/test-wikilink.rb
132
85
  rdoc_options: []
133
86
 
134
- extra_rdoc_files:
135
- - README
87
+ extra_rdoc_files: []
88
+
136
89
  executables: []
137
90
 
138
91
  extensions: []
139
92
 
140
93
  requirements: []
141
94
 
142
- dependencies: []
143
-
95
+ dependencies:
96
+ - !ruby/object:Gem::Dependency
97
+ name: hoe
98
+ version_requirement:
99
+ version_requirements: !ruby/object:Gem::Version::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 1.2.0
104
+ version:
@@ -1,8 +0,0 @@
1
- #$Id: tartan_markdown.rb 148 2006-07-22 14:04:20Z larry $
2
-
3
- require 'tartan'
4
- require 'tartan_markdown_def'
5
-
6
- class TartanMarkdown < Tartan
7
- include TartanMarkdownDef
8
- end
@@ -1,7 +0,0 @@
1
- #$Id: tartan_markdown_def.rb 153 2006-07-22 20:39:45Z larry $
2
-
3
- require 'tartan'
4
-
5
- module TartanMarkdownDef
6
- yaml 'markdown.yml'
7
- end
@@ -1,7 +0,0 @@
1
- require 'tartan'
2
-
3
- # This module should be included into a Tartan subclass to add table mark-up.
4
-
5
- module TartanTableDef
6
- yaml "table.yml"
7
- end
@@ -1,5 +0,0 @@
1
- require 'tartan'
2
-
3
- module TartanTestBaseDef
4
- yaml "test_base.yml"
5
- end
@@ -1,14 +0,0 @@
1
- require 'tartan'
2
-
3
- module TartanWikilinkDef
4
- def wiki_link_body(page_name, link_body)
5
- link_body = page_name if "" == link_body
6
- link_body
7
- end
8
-
9
- def wiki_link_tag(page_name)
10
- raise "wiki_link_tag not properly defined in WikiHelper class"
11
- end
12
-
13
- yaml "wikilink.yml"
14
- end