markdownplus 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +137 -3
- data/lib/markdownplus.rb +5 -0
- data/lib/markdownplus/directive_parser.rb +17 -0
- data/lib/markdownplus/directives.treetop +33 -0
- data/lib/markdownplus/github_renderer.rb +19 -0
- data/lib/markdownplus/handler.rb +120 -0
- data/lib/markdownplus/handler_registry.rb +17 -0
- data/lib/markdownplus/literals.rb +101 -0
- data/lib/markdownplus/parser.rb +75 -125
- data/lib/markdownplus/version.rb +1 -1
- data/markdownplus.gemspec +1 -0
- data/spec/directive_parser_spec.rb +275 -0
- data/spec/fixtures/bad_json.json +1 -0
- data/spec/fixtures/directives.html +110 -0
- data/spec/fixtures/directives.mdp +28 -0
- data/spec/fixtures/fake.csv +21 -0
- data/spec/fixtures/fake.json +1 -0
- data/spec/fixtures/simple.mdp +2 -6
- data/spec/fixtures/variables.html +29 -0
- data/spec/fixtures/variables.mdp +14 -0
- data/spec/parser_spec.rb +124 -47
- metadata +38 -4
- data/spec/fixtures/include.mdp +0 -33
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdownplus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Petersen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: treetop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: Pre processors that allows the inclusion of external files and post processors
|
84
98
|
for csn and json data.
|
85
99
|
email:
|
@@ -94,11 +108,24 @@ files:
|
|
94
108
|
- README.md
|
95
109
|
- Rakefile
|
96
110
|
- lib/markdownplus.rb
|
111
|
+
- lib/markdownplus/directive_parser.rb
|
112
|
+
- lib/markdownplus/directives.treetop
|
113
|
+
- lib/markdownplus/github_renderer.rb
|
114
|
+
- lib/markdownplus/handler.rb
|
115
|
+
- lib/markdownplus/handler_registry.rb
|
116
|
+
- lib/markdownplus/literals.rb
|
97
117
|
- lib/markdownplus/parser.rb
|
98
118
|
- lib/markdownplus/version.rb
|
99
119
|
- markdownplus.gemspec
|
100
|
-
- spec/
|
120
|
+
- spec/directive_parser_spec.rb
|
121
|
+
- spec/fixtures/bad_json.json
|
122
|
+
- spec/fixtures/directives.html
|
123
|
+
- spec/fixtures/directives.mdp
|
124
|
+
- spec/fixtures/fake.csv
|
125
|
+
- spec/fixtures/fake.json
|
101
126
|
- spec/fixtures/simple.mdp
|
127
|
+
- spec/fixtures/variables.html
|
128
|
+
- spec/fixtures/variables.mdp
|
102
129
|
- spec/parser_spec.rb
|
103
130
|
- spec/spec_helper.rb
|
104
131
|
homepage: ''
|
@@ -126,8 +153,15 @@ signing_key:
|
|
126
153
|
specification_version: 4
|
127
154
|
summary: Pre and post processors for markdown
|
128
155
|
test_files:
|
129
|
-
- spec/
|
156
|
+
- spec/directive_parser_spec.rb
|
157
|
+
- spec/fixtures/bad_json.json
|
158
|
+
- spec/fixtures/directives.html
|
159
|
+
- spec/fixtures/directives.mdp
|
160
|
+
- spec/fixtures/fake.csv
|
161
|
+
- spec/fixtures/fake.json
|
130
162
|
- spec/fixtures/simple.mdp
|
163
|
+
- spec/fixtures/variables.html
|
164
|
+
- spec/fixtures/variables.mdp
|
131
165
|
- spec/parser_spec.rb
|
132
166
|
- spec/spec_helper.rb
|
133
167
|
has_rdoc:
|
data/spec/fixtures/include.mdp
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
This is a markdown plus document illustrating include conditions
|
2
|
-
|
3
|
-
```include
|
4
|
-
https://gist.githubusercontent.com/cpetersen/b5a473ddf0b796cd9502/raw/e140bdc32ff2f6a600e357c2575220c0312a88ee/fake.csv
|
5
|
-
```
|
6
|
-
|
7
|
-
```include|csv
|
8
|
-
https://gist.githubusercontent.com/cpetersen/b5a473ddf0b796cd9502/raw/e140bdc32ff2f6a600e357c2575220c0312a88ee/fake.csv
|
9
|
-
```
|
10
|
-
|
11
|
-
```include
|
12
|
-
```
|
13
|
-
|
14
|
-
```include|csv
|
15
|
-
https://gist.githubusercontent.com/cpetersen/b5a473ddf0b796cd9502/raw/e140bdc32ff2f6a600e357c2575220c0312a88ee/fake.csv
|
16
|
-
this
|
17
|
-
should
|
18
|
-
be
|
19
|
-
a
|
20
|
-
warning
|
21
|
-
```
|
22
|
-
|
23
|
-
```include|formatted_json
|
24
|
-
https://gist.githubusercontent.com/cpetersen/c6571117df132443ac81/raw/e5ac97e8e0665a0e4014ebc85ecef214763a7729/fake.json
|
25
|
-
```
|
26
|
-
|
27
|
-
```include|formatted_json
|
28
|
-
https://gist.githubusercontent.com/cpetersen/4ac0ab5fb4d1fda22322/raw/3856ed58d5cdfd07800067fc9fb8fcbcfc631d65/bad_json.json
|
29
|
-
```
|
30
|
-
|
31
|
-
```include
|
32
|
-
this should just be an error
|
33
|
-
```
|