legal_markdown 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/legal_markdown/legal_to_markdown/json_builder.rb +14 -8
- data/lib/legal_markdown/legal_to_markdown/leaders.rb +6 -5
- data/lib/legal_markdown/legal_to_markdown/load_source.rb +5 -2
- data/lib/legal_markdown/legal_to_markdown/writer.rb +5 -3
- data/lib/legal_markdown/legal_to_markdown.rb +6 -8
- data/lib/legal_markdown/version.rb +1 -1
- data/lib/legal_markdown.rb +4 -5
- data/test/test_legal_markdown_to_markdown.rb +26 -2
- data/test/tests/00.load_write_no_action.json +1 -0
- data/test/tests/00.load_write_no_action.lmd +3 -18
- data/test/tests/00.load_write_no_action.md +3 -18
- data/test/tests/01.load_partial_no_action.json +1 -0
- data/test/tests/02.load_partials_no_action.json +1 -0
- data/test/tests/10.mixins_in_headers_and_text.json +1 -0
- data/test/tests/12.opt_clauses_no_subs.json +1 -0
- data/test/tests/13.opt_clauses_subs.json +1 -0
- data/test/tests/14.opt_clauses_with_mixins.json +1 -0
- data/test/tests/20.block_no_addons.json +1 -0
- data/test/tests/21.block_no_indents.json +1 -0
- data/test/tests/22.block_all_indents.json +1 -0
- data/test/tests/23.block_part_indents.json +1 -0
- data/test/tests/24.block_no_closing_ticks.json +1 -0
- data/test/tests/25.block_no_resets.json +1 -0
- data/test/tests/26.block_all_resets.json +1 -0
- data/test/tests/27.block_part_resets.json +1 -0
- data/test/tests/28.block_provs_multi_line_no_indent.json +1 -0
- data/test/tests/29.block_provs_multi_line_indents.json +1 -0
- data/test/tests/30.block_all_leader_types.json +1 -0
- data/test/tests/31.block_complex_leader_types.json +1 -0
- data/test/tests/32.block_new_leader_style.json +1 -0
- data/test/tests/33.block_with_pre_simple.json +1 -0
- data/test/tests/34.block_with_pre_complex.json +1 -0
- data/test/tests/35.block_with_preval.json +1 -0
- data/test/tests/36.block_with_crossrefs.json +1 -0
- data/test/tests/37.block_with_diff_start_pt.json +1 -0
- data/test/tests/40.block_with_mixins.json +1 -0
- data/test/tests/41.block_with_opt_clauses.json +1 -0
- data/test/tests/42.block_with_opt_clauses_and_mixins.json +1 -0
- metadata +60 -4
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legal_markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! ' This gem will parse YAML Front Matter of Markdown Documents. Typically,
|
15
15
|
this gem would be called with a md renderer, such as Pandoc, that would turn the
|
@@ -45,60 +45,88 @@ files:
|
|
45
45
|
- lib/legal_markdown/roman_numerals.rb
|
46
46
|
- lib/legal_markdown/version.rb
|
47
47
|
- test/test_legal_markdown_to_markdown.rb
|
48
|
+
- test/tests/00.load_write_no_action.json
|
48
49
|
- test/tests/00.load_write_no_action.lmd
|
49
50
|
- test/tests/00.load_write_no_action.md
|
51
|
+
- test/tests/01.load_partial_no_action.json
|
50
52
|
- test/tests/01.load_partial_no_action.lmd
|
51
53
|
- test/tests/01.load_partial_no_action.md
|
54
|
+
- test/tests/02.load_partials_no_action.json
|
52
55
|
- test/tests/02.load_partials_no_action.lmd
|
53
56
|
- test/tests/02.load_partials_no_action.md
|
57
|
+
- test/tests/10.mixins_in_headers_and_text.json
|
54
58
|
- test/tests/10.mixins_in_headers_and_text.lmd
|
55
59
|
- test/tests/10.mixins_in_headers_and_text.md
|
60
|
+
- test/tests/12.opt_clauses_no_subs.json
|
56
61
|
- test/tests/12.opt_clauses_no_subs.lmd
|
57
62
|
- test/tests/12.opt_clauses_no_subs.md
|
63
|
+
- test/tests/13.opt_clauses_subs.json
|
58
64
|
- test/tests/13.opt_clauses_subs.lmd
|
59
65
|
- test/tests/13.opt_clauses_subs.md
|
66
|
+
- test/tests/14.opt_clauses_with_mixins.json
|
60
67
|
- test/tests/14.opt_clauses_with_mixins.lmd
|
61
68
|
- test/tests/14.opt_clauses_with_mixins.md
|
69
|
+
- test/tests/20.block_no_addons.json
|
62
70
|
- test/tests/20.block_no_addons.lmd
|
63
71
|
- test/tests/20.block_no_addons.md
|
72
|
+
- test/tests/21.block_no_indents.json
|
64
73
|
- test/tests/21.block_no_indents.lmd
|
65
74
|
- test/tests/21.block_no_indents.md
|
75
|
+
- test/tests/22.block_all_indents.json
|
66
76
|
- test/tests/22.block_all_indents.lmd
|
67
77
|
- test/tests/22.block_all_indents.md
|
78
|
+
- test/tests/23.block_part_indents.json
|
68
79
|
- test/tests/23.block_part_indents.lmd
|
69
80
|
- test/tests/23.block_part_indents.md
|
81
|
+
- test/tests/24.block_no_closing_ticks.json
|
70
82
|
- test/tests/24.block_no_closing_ticks.lmd
|
71
83
|
- test/tests/24.block_no_closing_ticks.md
|
84
|
+
- test/tests/25.block_no_resets.json
|
72
85
|
- test/tests/25.block_no_resets.lmd
|
73
86
|
- test/tests/25.block_no_resets.md
|
87
|
+
- test/tests/26.block_all_resets.json
|
74
88
|
- test/tests/26.block_all_resets.lmd
|
75
89
|
- test/tests/26.block_all_resets.md
|
90
|
+
- test/tests/27.block_part_resets.json
|
76
91
|
- test/tests/27.block_part_resets.lmd
|
77
92
|
- test/tests/27.block_part_resets.md
|
93
|
+
- test/tests/28.block_provs_multi_line_no_indent.json
|
78
94
|
- test/tests/28.block_provs_multi_line_no_indent.lmd
|
79
95
|
- test/tests/28.block_provs_multi_line_no_indent.md
|
96
|
+
- test/tests/29.block_provs_multi_line_indents.json
|
80
97
|
- test/tests/29.block_provs_multi_line_indents.lmd
|
81
98
|
- test/tests/29.block_provs_multi_line_indents.md
|
99
|
+
- test/tests/30.block_all_leader_types.json
|
82
100
|
- test/tests/30.block_all_leader_types.lmd
|
83
101
|
- test/tests/30.block_all_leader_types.md
|
102
|
+
- test/tests/31.block_complex_leader_types.json
|
84
103
|
- test/tests/31.block_complex_leader_types.lmd
|
85
104
|
- test/tests/31.block_complex_leader_types.md
|
105
|
+
- test/tests/32.block_new_leader_style.json
|
86
106
|
- test/tests/32.block_new_leader_style.lmd
|
87
107
|
- test/tests/32.block_new_leader_style.md
|
108
|
+
- test/tests/33.block_with_pre_simple.json
|
88
109
|
- test/tests/33.block_with_pre_simple.lmd
|
89
110
|
- test/tests/33.block_with_pre_simple.md
|
111
|
+
- test/tests/34.block_with_pre_complex.json
|
90
112
|
- test/tests/34.block_with_pre_complex.lmd
|
91
113
|
- test/tests/34.block_with_pre_complex.md
|
114
|
+
- test/tests/35.block_with_preval.json
|
92
115
|
- test/tests/35.block_with_preval.lmd
|
93
116
|
- test/tests/35.block_with_preval.md
|
117
|
+
- test/tests/36.block_with_crossrefs.json
|
94
118
|
- test/tests/36.block_with_crossrefs.lmd
|
95
119
|
- test/tests/36.block_with_crossrefs.md
|
120
|
+
- test/tests/37.block_with_diff_start_pt.json
|
96
121
|
- test/tests/37.block_with_diff_start_pt.lmd
|
97
122
|
- test/tests/37.block_with_diff_start_pt.md
|
123
|
+
- test/tests/40.block_with_mixins.json
|
98
124
|
- test/tests/40.block_with_mixins.lmd
|
99
125
|
- test/tests/40.block_with_mixins.md
|
126
|
+
- test/tests/41.block_with_opt_clauses.json
|
100
127
|
- test/tests/41.block_with_opt_clauses.lmd
|
101
128
|
- test/tests/41.block_with_opt_clauses.md
|
129
|
+
- test/tests/42.block_with_opt_clauses_and_mixins.json
|
102
130
|
- test/tests/42.block_with_opt_clauses_and_mixins.lmd
|
103
131
|
- test/tests/42.block_with_opt_clauses_and_mixins.md
|
104
132
|
- test/tests/partials/z.partial1
|
@@ -118,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
146
|
version: '0'
|
119
147
|
segments:
|
120
148
|
- 0
|
121
|
-
hash:
|
149
|
+
hash: 591814662180735759
|
122
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
151
|
none: false
|
124
152
|
requirements:
|
@@ -127,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
155
|
version: '0'
|
128
156
|
segments:
|
129
157
|
- 0
|
130
|
-
hash:
|
158
|
+
hash: 591814662180735759
|
131
159
|
requirements: []
|
132
160
|
rubyforge_project:
|
133
161
|
rubygems_version: 1.8.25
|
@@ -137,60 +165,88 @@ summary: Gem for parsing legal documents written in markdown for processing with
|
|
137
165
|
specific requirements.
|
138
166
|
test_files:
|
139
167
|
- test/test_legal_markdown_to_markdown.rb
|
168
|
+
- test/tests/00.load_write_no_action.json
|
140
169
|
- test/tests/00.load_write_no_action.lmd
|
141
170
|
- test/tests/00.load_write_no_action.md
|
171
|
+
- test/tests/01.load_partial_no_action.json
|
142
172
|
- test/tests/01.load_partial_no_action.lmd
|
143
173
|
- test/tests/01.load_partial_no_action.md
|
174
|
+
- test/tests/02.load_partials_no_action.json
|
144
175
|
- test/tests/02.load_partials_no_action.lmd
|
145
176
|
- test/tests/02.load_partials_no_action.md
|
177
|
+
- test/tests/10.mixins_in_headers_and_text.json
|
146
178
|
- test/tests/10.mixins_in_headers_and_text.lmd
|
147
179
|
- test/tests/10.mixins_in_headers_and_text.md
|
180
|
+
- test/tests/12.opt_clauses_no_subs.json
|
148
181
|
- test/tests/12.opt_clauses_no_subs.lmd
|
149
182
|
- test/tests/12.opt_clauses_no_subs.md
|
183
|
+
- test/tests/13.opt_clauses_subs.json
|
150
184
|
- test/tests/13.opt_clauses_subs.lmd
|
151
185
|
- test/tests/13.opt_clauses_subs.md
|
186
|
+
- test/tests/14.opt_clauses_with_mixins.json
|
152
187
|
- test/tests/14.opt_clauses_with_mixins.lmd
|
153
188
|
- test/tests/14.opt_clauses_with_mixins.md
|
189
|
+
- test/tests/20.block_no_addons.json
|
154
190
|
- test/tests/20.block_no_addons.lmd
|
155
191
|
- test/tests/20.block_no_addons.md
|
192
|
+
- test/tests/21.block_no_indents.json
|
156
193
|
- test/tests/21.block_no_indents.lmd
|
157
194
|
- test/tests/21.block_no_indents.md
|
195
|
+
- test/tests/22.block_all_indents.json
|
158
196
|
- test/tests/22.block_all_indents.lmd
|
159
197
|
- test/tests/22.block_all_indents.md
|
198
|
+
- test/tests/23.block_part_indents.json
|
160
199
|
- test/tests/23.block_part_indents.lmd
|
161
200
|
- test/tests/23.block_part_indents.md
|
201
|
+
- test/tests/24.block_no_closing_ticks.json
|
162
202
|
- test/tests/24.block_no_closing_ticks.lmd
|
163
203
|
- test/tests/24.block_no_closing_ticks.md
|
204
|
+
- test/tests/25.block_no_resets.json
|
164
205
|
- test/tests/25.block_no_resets.lmd
|
165
206
|
- test/tests/25.block_no_resets.md
|
207
|
+
- test/tests/26.block_all_resets.json
|
166
208
|
- test/tests/26.block_all_resets.lmd
|
167
209
|
- test/tests/26.block_all_resets.md
|
210
|
+
- test/tests/27.block_part_resets.json
|
168
211
|
- test/tests/27.block_part_resets.lmd
|
169
212
|
- test/tests/27.block_part_resets.md
|
213
|
+
- test/tests/28.block_provs_multi_line_no_indent.json
|
170
214
|
- test/tests/28.block_provs_multi_line_no_indent.lmd
|
171
215
|
- test/tests/28.block_provs_multi_line_no_indent.md
|
216
|
+
- test/tests/29.block_provs_multi_line_indents.json
|
172
217
|
- test/tests/29.block_provs_multi_line_indents.lmd
|
173
218
|
- test/tests/29.block_provs_multi_line_indents.md
|
219
|
+
- test/tests/30.block_all_leader_types.json
|
174
220
|
- test/tests/30.block_all_leader_types.lmd
|
175
221
|
- test/tests/30.block_all_leader_types.md
|
222
|
+
- test/tests/31.block_complex_leader_types.json
|
176
223
|
- test/tests/31.block_complex_leader_types.lmd
|
177
224
|
- test/tests/31.block_complex_leader_types.md
|
225
|
+
- test/tests/32.block_new_leader_style.json
|
178
226
|
- test/tests/32.block_new_leader_style.lmd
|
179
227
|
- test/tests/32.block_new_leader_style.md
|
228
|
+
- test/tests/33.block_with_pre_simple.json
|
180
229
|
- test/tests/33.block_with_pre_simple.lmd
|
181
230
|
- test/tests/33.block_with_pre_simple.md
|
231
|
+
- test/tests/34.block_with_pre_complex.json
|
182
232
|
- test/tests/34.block_with_pre_complex.lmd
|
183
233
|
- test/tests/34.block_with_pre_complex.md
|
234
|
+
- test/tests/35.block_with_preval.json
|
184
235
|
- test/tests/35.block_with_preval.lmd
|
185
236
|
- test/tests/35.block_with_preval.md
|
237
|
+
- test/tests/36.block_with_crossrefs.json
|
186
238
|
- test/tests/36.block_with_crossrefs.lmd
|
187
239
|
- test/tests/36.block_with_crossrefs.md
|
240
|
+
- test/tests/37.block_with_diff_start_pt.json
|
188
241
|
- test/tests/37.block_with_diff_start_pt.lmd
|
189
242
|
- test/tests/37.block_with_diff_start_pt.md
|
243
|
+
- test/tests/40.block_with_mixins.json
|
190
244
|
- test/tests/40.block_with_mixins.lmd
|
191
245
|
- test/tests/40.block_with_mixins.md
|
246
|
+
- test/tests/41.block_with_opt_clauses.json
|
192
247
|
- test/tests/41.block_with_opt_clauses.lmd
|
193
248
|
- test/tests/41.block_with_opt_clauses.md
|
249
|
+
- test/tests/42.block_with_opt_clauses_and_mixins.json
|
194
250
|
- test/tests/42.block_with_opt_clauses_and_mixins.lmd
|
195
251
|
- test/tests/42.block_with_opt_clauses_and_mixins.md
|
196
252
|
- test/tests/partials/z.partial1
|