guard-mthaml 0.3.1 → 0.4.0

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.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/guard/mthaml/version.rb +1 -1
  4. data/vendor/autoload.php +1 -1
  5. data/vendor/composer/autoload_real.php +4 -4
  6. data/vendor/composer/installed.json +68 -60
  7. data/vendor/michelf/php-markdown/License.md +2 -2
  8. data/vendor/michelf/php-markdown/Michelf/Markdown.php +130 -1638
  9. data/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php +1592 -16
  10. data/vendor/michelf/php-markdown/Michelf/MarkdownInterface.php +2 -5
  11. data/vendor/michelf/php-markdown/Readme.md +32 -10
  12. data/vendor/michelf/php-markdown/composer.json +2 -2
  13. data/vendor/mthaml/mthaml/CHANGELOG +6 -0
  14. data/vendor/mthaml/mthaml/composer.json +11 -3
  15. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown.php +1 -52
  16. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/CommonMark.php +25 -0
  17. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/FluxBBMarkdown.php +25 -0
  18. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/OptimizableFilter.php +58 -0
  19. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/ReST.php +21 -0
  20. data/vendor/mthaml/mthaml/test/MtHaml/Tests/TestCase.php +1 -1
  21. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_commonmark.test +33 -0
  22. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_fluxbb.test +32 -0
  23. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/rest_filter.test +42 -0
  24. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/rest_optimization_filter.test +39 -0
  25. metadata +11 -2
@@ -0,0 +1,39 @@
1
+ --FILE--
2
+ <?php
3
+ $filter = new MtHaml\Filter\ReST(new Gregwar\RST\Parser(), true);
4
+ $env = new MtHaml\Environment('twig', array('enable_escaper' => false), array('rest' => $filter));
5
+ echo $env->compileString($parts['HAML'], "$file.haml");
6
+
7
+ --HAML--
8
+ :rest
9
+ Hello world
10
+ ===========
11
+
12
+ What is it?
13
+ ----------
14
+ This is a **RST** document!
15
+
16
+ * list
17
+ :rest
18
+ #{header}
19
+ =========
20
+
21
+ What is it?
22
+ ----------
23
+ This is a **RST** document!
24
+
25
+ * list
26
+ --EXPECT--
27
+ <a id="title.1"></a><h1>Hello world</h1>
28
+ <a id="title.1.1"></a><h2>What is it?</h2>
29
+ <p>This is a <strong>RST</strong> document!</p>
30
+ <ul><li>list</li>
31
+ </ul>
32
+
33
+ <a id="title.2"></a><h1>{% line 11 %}{{ header }}</h1>
34
+ <a id="title.2.1"></a><h2>What is it?</h2>
35
+ <p>This is a <strong>RST</strong> document!</p>
36
+ <ul><li>list</li>
37
+ </ul>
38
+
39
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-mthaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -181,12 +181,16 @@ files:
181
181
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Less.php
182
182
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/CebeMarkdown.php
183
183
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/Ciconia.php
184
+ - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/CommonMark.php
185
+ - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/FluxBBMarkdown.php
184
186
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
185
187
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/Parsedown.php
186
188
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown.php
189
+ - vendor/mthaml/mthaml/lib/MtHaml/Filter/OptimizableFilter.php
187
190
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Php.php
188
191
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Plain.php
189
192
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Preserve.php
193
+ - vendor/mthaml/mthaml/lib/MtHaml/Filter/ReST.php
190
194
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Scss.php
191
195
  - vendor/mthaml/mthaml/lib/MtHaml/Filter/Twig.php
192
196
  - vendor/mthaml/mthaml/lib/MtHaml/Indentation/Indentation.php
@@ -268,6 +272,8 @@ files:
268
272
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/less_filter_oyejorge.test
269
273
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
270
274
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_ciconia.test
275
+ - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_commonmark.test
276
+ - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_fluxbb.test
271
277
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_michelf.test
272
278
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_parsedown.test
273
279
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_optimization_filter_michelf.test
@@ -281,6 +287,8 @@ files:
281
287
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_autoescaping_once.test
282
288
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_blocks.test
283
289
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_filters.test
290
+ - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/rest_filter.test
291
+ - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/rest_optimization_filter.test
284
292
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test
285
293
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/strip_inline_comments_php.test
286
294
  - vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/test.test
@@ -397,3 +405,4 @@ signing_key:
397
405
  specification_version: 4
398
406
  summary: Guard gem for MtHaml
399
407
  test_files: []
408
+ has_rdoc: