pandoc-ruby 2.0.1 → 2.1.10
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 +5 -5
- data/Gemfile +3 -2
- data/Gemfile.lock +40 -11
- data/README.md +71 -45
- data/Rakefile +33 -4
- data/lib/pandoc-ruby.rb +171 -85
- data/pandoc-ruby.gemspec +8 -31
- data/test/benchmark.rb +4 -4
- data/test/files/Test File 2.md +1 -0
- data/test/helper.rb +3 -3
- data/test/test_conversions.rb +52 -1
- data/test/test_pandoc_ruby.rb +328 -70
- metadata +12 -93
- /data/test/files/{test.md → Test File 1.md} +0 -0
data/test/test_pandoc_ruby.rb
CHANGED
@@ -2,10 +2,10 @@ require 'helper'
|
|
2
2
|
|
3
3
|
describe PandocRuby do
|
4
4
|
before do
|
5
|
-
@file
|
6
|
-
@file2
|
7
|
-
@string
|
8
|
-
@converter
|
5
|
+
@file = File.join(File.dirname(__FILE__), 'files', 'Test File 1.md')
|
6
|
+
@file2 = File.join(File.dirname(__FILE__), 'files', 'Test File 2.md')
|
7
|
+
@string = '# Test String'
|
8
|
+
@converter = PandocRuby.new(@string, :t => :rst)
|
9
9
|
end
|
10
10
|
|
11
11
|
after do
|
@@ -14,15 +14,20 @@ describe PandocRuby do
|
|
14
14
|
|
15
15
|
it 'calls bare pandoc when passed no options' do
|
16
16
|
converter = PandocRuby.new(@string)
|
17
|
+
|
17
18
|
converter.expects(:execute).with('pandoc').returns(true)
|
19
|
+
|
18
20
|
assert converter.convert
|
19
21
|
end
|
20
22
|
|
21
23
|
it 'converts with altered pandoc_path' do
|
22
24
|
path = '/usr/bin/env pandoc'
|
23
25
|
PandocRuby.pandoc_path = path
|
26
|
+
|
24
27
|
converter = PandocRuby.new(@string)
|
28
|
+
|
25
29
|
converter.expects(:execute).with(path).returns(true)
|
30
|
+
|
26
31
|
assert converter.convert
|
27
32
|
end
|
28
33
|
|
@@ -45,53 +50,205 @@ describe PandocRuby do
|
|
45
50
|
end
|
46
51
|
|
47
52
|
it 'accepts short options' do
|
48
|
-
@converter.expects(:execute).with('pandoc -t rst').returns(true)
|
53
|
+
@converter.expects(:execute).with('pandoc -t "rst"').returns(true)
|
54
|
+
|
49
55
|
assert @converter.convert
|
50
56
|
end
|
51
57
|
|
52
58
|
it 'accepts long options' do
|
53
59
|
converter = PandocRuby.new(@string, :to => :rst)
|
54
|
-
|
60
|
+
|
61
|
+
converter.expects(:execute).with('pandoc --to "rst"').returns(true)
|
62
|
+
|
55
63
|
assert converter.convert
|
56
64
|
end
|
57
65
|
|
58
66
|
it 'accepts a variety of options in initializer' do
|
59
|
-
converter = PandocRuby.new(
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
67
|
+
converter = PandocRuby.new(
|
68
|
+
@string,
|
69
|
+
:s,
|
70
|
+
{ :f => :markdown, :to => :rst },
|
71
|
+
'no-wrap'
|
72
|
+
)
|
73
|
+
|
74
|
+
converter \
|
75
|
+
.expects(:execute) \
|
76
|
+
.with('pandoc -s -f "markdown" --to "rst" --no-wrap') \
|
65
77
|
.returns(true)
|
78
|
+
|
66
79
|
assert converter.convert
|
67
80
|
end
|
68
81
|
|
69
82
|
it 'accepts a variety of options in convert' do
|
70
83
|
converter = PandocRuby.new(@string)
|
71
|
-
|
72
|
-
|
73
|
-
.
|
84
|
+
|
85
|
+
converter \
|
86
|
+
.expects(:execute) \
|
87
|
+
.with('pandoc -s -f "markdown" --to "rst" --no-wrap') \
|
74
88
|
.returns(true)
|
89
|
+
|
75
90
|
assert converter.convert(:s, { :f => :markdown, :to => :rst }, 'no-wrap')
|
76
91
|
end
|
77
92
|
|
78
|
-
it 'converts underscore symbol
|
79
|
-
converter = PandocRuby.new(
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
93
|
+
it 'converts underscore symbol args to hyphenated long options' do
|
94
|
+
converter = PandocRuby.new(
|
95
|
+
@string,
|
96
|
+
{ :email_obfuscation => :javascript },
|
97
|
+
:table_of_contents
|
98
|
+
)
|
99
|
+
|
100
|
+
converter \
|
101
|
+
.expects(:execute) \
|
102
|
+
.with('pandoc --email-obfuscation "javascript" --table-of-contents') \
|
85
103
|
.returns(true)
|
104
|
+
|
86
105
|
assert converter.convert
|
87
106
|
end
|
88
107
|
|
89
108
|
it 'uses second arg as option' do
|
90
109
|
converter = PandocRuby.new(@string, 'toc')
|
110
|
+
|
91
111
|
converter.expects(:execute).with('pandoc --toc').returns(true)
|
112
|
+
|
92
113
|
assert converter.convert
|
93
114
|
end
|
94
115
|
|
116
|
+
it 'passes command line options without modification' do
|
117
|
+
converter = PandocRuby.new(
|
118
|
+
@string,
|
119
|
+
'+RTS', '-M512M', '-RTS', '--to=markdown', '--no-wrap'
|
120
|
+
)
|
121
|
+
|
122
|
+
converter.expects(:execute).with(
|
123
|
+
'pandoc +RTS -M512M -RTS --to=markdown --no-wrap'
|
124
|
+
).returns(true)
|
125
|
+
|
126
|
+
assert converter.convert
|
127
|
+
end
|
128
|
+
|
129
|
+
it 'supports reader extensions' do
|
130
|
+
assert_equal(
|
131
|
+
PandocRuby.convert(
|
132
|
+
"Line 1\n# Heading",
|
133
|
+
:from => 'markdown_strict',
|
134
|
+
:to => 'html'
|
135
|
+
),
|
136
|
+
"<p>Line 1</p>\n<h1>Heading</h1>\n"
|
137
|
+
)
|
138
|
+
|
139
|
+
assert_equal(
|
140
|
+
PandocRuby.convert(
|
141
|
+
"Line 1\n# Heading",
|
142
|
+
:from => 'markdown_strict+blank_before_header',
|
143
|
+
:to => 'html'
|
144
|
+
),
|
145
|
+
"<p>Line 1 # Heading</p>\n"
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
it 'supports writer extensions' do
|
150
|
+
assert_equal(
|
151
|
+
PandocRuby.convert(
|
152
|
+
"<sub>example</sub>\n",
|
153
|
+
:from => 'html',
|
154
|
+
:to => 'markdown'
|
155
|
+
),
|
156
|
+
"~example~\n"
|
157
|
+
)
|
158
|
+
|
159
|
+
assert_equal(
|
160
|
+
PandocRuby.convert(
|
161
|
+
"<sub>example</sub>\n",
|
162
|
+
:from => 'html',
|
163
|
+
:to => 'markdown-subscript'
|
164
|
+
),
|
165
|
+
"<sub>example</sub>\n"
|
166
|
+
)
|
167
|
+
end
|
168
|
+
|
169
|
+
it 'supports output filenames without spaces' do
|
170
|
+
Tempfile.create('example') do |file|
|
171
|
+
PandocRuby.convert(
|
172
|
+
'# Example',
|
173
|
+
:from => 'markdown',
|
174
|
+
:to => 'html',
|
175
|
+
:output => file.path
|
176
|
+
)
|
177
|
+
|
178
|
+
file.rewind
|
179
|
+
|
180
|
+
assert_equal("<h1 id=\"example\">Example</h1>\n", file.read)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
it 'quotes output filenames with spaces' do
|
185
|
+
Tempfile.create('example with spaces') do |file|
|
186
|
+
converter = PandocRuby.new(
|
187
|
+
'# Example',
|
188
|
+
:from => 'markdown',
|
189
|
+
:to => 'html',
|
190
|
+
:output => file.path
|
191
|
+
)
|
192
|
+
|
193
|
+
converter \
|
194
|
+
.expects(:execute) \
|
195
|
+
.with(
|
196
|
+
"pandoc --from \"markdown\" --to \"html\" --output \"#{file.path}\""
|
197
|
+
).returns(true)
|
198
|
+
|
199
|
+
assert converter.convert
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
it 'outputs to filenames with spaces' do
|
204
|
+
Tempfile.create('example with spaces') do |file|
|
205
|
+
PandocRuby.convert(
|
206
|
+
'# Example',
|
207
|
+
:from => 'markdown',
|
208
|
+
:to => 'html',
|
209
|
+
:output => file.path
|
210
|
+
)
|
211
|
+
|
212
|
+
file.rewind
|
213
|
+
|
214
|
+
assert_equal("<h1 id=\"example\">Example</h1>\n", file.read)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
it 'quotes output filenames as Pathname objects' do
|
219
|
+
Tempfile.create('example with spaces') do |file|
|
220
|
+
converter = PandocRuby.new(
|
221
|
+
'# Example',
|
222
|
+
:from => 'markdown',
|
223
|
+
:to => 'html',
|
224
|
+
:output => Pathname.new(file.path)
|
225
|
+
)
|
226
|
+
|
227
|
+
converter \
|
228
|
+
.expects(:execute) \
|
229
|
+
.with(
|
230
|
+
"pandoc --from \"markdown\" --to \"html\" --output \"#{file.path}\""
|
231
|
+
).returns(true)
|
232
|
+
|
233
|
+
assert converter.convert
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
it 'outputs to filenames as Pathname objects' do
|
238
|
+
Tempfile.create('example with spaces') do |file|
|
239
|
+
PandocRuby.convert(
|
240
|
+
'# Example',
|
241
|
+
:from => 'markdown',
|
242
|
+
:to => 'html',
|
243
|
+
:output => Pathname.new(file.path)
|
244
|
+
)
|
245
|
+
|
246
|
+
file.rewind
|
247
|
+
|
248
|
+
assert_equal("<h1 id=\"example\">Example</h1>\n", file.read)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
95
252
|
it 'raises RuntimeError from pandoc executable error' do
|
96
253
|
assert_raises(RuntimeError) do
|
97
254
|
PandocRuby.new('# hello', 'badopt').to_html5
|
@@ -101,7 +258,9 @@ describe PandocRuby do
|
|
101
258
|
PandocRuby::READERS.each_key do |r|
|
102
259
|
it "converts from #{r} with PandocRuby.#{r}" do
|
103
260
|
converter = PandocRuby.send(r, @string)
|
104
|
-
|
261
|
+
|
262
|
+
converter.expects(:execute).with("pandoc --from \"#{r}\"").returns(true)
|
263
|
+
|
105
264
|
assert converter.convert
|
106
265
|
end
|
107
266
|
end
|
@@ -109,10 +268,12 @@ describe PandocRuby do
|
|
109
268
|
PandocRuby::STRING_WRITERS.each_key do |w|
|
110
269
|
it "converts to #{w} with to_#{w}" do
|
111
270
|
converter = PandocRuby.new(@string)
|
112
|
-
|
113
|
-
|
114
|
-
.
|
271
|
+
|
272
|
+
converter \
|
273
|
+
.expects(:execute) \
|
274
|
+
.with("pandoc --no-wrap --to \"#{w}\"") \
|
115
275
|
.returns(true)
|
276
|
+
|
116
277
|
assert converter.send("to_#{w}", :no_wrap)
|
117
278
|
end
|
118
279
|
end
|
@@ -120,19 +281,34 @@ describe PandocRuby do
|
|
120
281
|
PandocRuby::BINARY_WRITERS.each_key do |w|
|
121
282
|
it "converts to #{w} with to_#{w}" do
|
122
283
|
converter = PandocRuby.new(@string)
|
123
|
-
|
124
|
-
|
125
|
-
.
|
284
|
+
|
285
|
+
converter \
|
286
|
+
.expects(:execute) \
|
287
|
+
.with(regexp_matches(/^pandoc --no-wrap --to "#{w}" --output /)) \
|
126
288
|
.returns(true)
|
289
|
+
|
127
290
|
assert converter.send("to_#{w}", :no_wrap)
|
128
291
|
end
|
129
292
|
end
|
130
293
|
|
131
294
|
it 'works with strings' do
|
132
295
|
converter = PandocRuby.new('## this is a title')
|
296
|
+
|
133
297
|
assert_match(/h2/, converter.convert)
|
134
298
|
end
|
135
299
|
|
300
|
+
it 'accepts blank strings' do
|
301
|
+
converter = PandocRuby.new('')
|
302
|
+
|
303
|
+
assert_match("\n", converter.convert)
|
304
|
+
end
|
305
|
+
|
306
|
+
it 'accepts nil and treats like a blank string' do
|
307
|
+
converter = PandocRuby.new(nil)
|
308
|
+
|
309
|
+
assert_match("\n", converter.convert)
|
310
|
+
end
|
311
|
+
|
136
312
|
it 'aliases to_s' do
|
137
313
|
assert_equal @converter.convert, @converter.to_s
|
138
314
|
end
|
@@ -146,6 +322,7 @@ describe PandocRuby do
|
|
146
322
|
400.times do
|
147
323
|
PandocRuby.convert(@string)
|
148
324
|
end
|
325
|
+
|
149
326
|
assert true
|
150
327
|
rescue Errno::EMFILE, Errno::EAGAIN => e
|
151
328
|
flunk e
|
@@ -153,7 +330,10 @@ describe PandocRuby do
|
|
153
330
|
end
|
154
331
|
|
155
332
|
it 'gracefully times out when pandoc hangs due to malformed input' do
|
333
|
+
skip('Pandoc no longer times out with test file. Determine how to test.')
|
334
|
+
|
156
335
|
file = File.join(File.dirname(__FILE__), 'files', 'bomb.tex')
|
336
|
+
|
157
337
|
contents = File.read(file)
|
158
338
|
|
159
339
|
assert_raises(RuntimeError) do
|
@@ -164,46 +344,124 @@ describe PandocRuby do
|
|
164
344
|
end
|
165
345
|
|
166
346
|
it 'has reader and writer constants' do
|
167
|
-
assert_equal
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
347
|
+
assert_equal(
|
348
|
+
PandocRuby::READERS,
|
349
|
+
'biblatex' => 'BibLaTeX bibliography',
|
350
|
+
'bibtex' => 'BibTeX bibliography',
|
351
|
+
'commonmark' => 'CommonMark Markdown',
|
352
|
+
'commonmark_x' => 'CommonMark Markdown with extensions',
|
353
|
+
'creole' => 'Creole 1.0',
|
354
|
+
'csljson' => 'CSL JSON bibliography',
|
355
|
+
'csv' => 'CSV table',
|
356
|
+
'docbook' => 'DocBook',
|
357
|
+
'docx' => 'Word docx',
|
358
|
+
'dokuwiki' => 'DokuWiki markup',
|
359
|
+
'endnotexml' => 'EndNote XML bibliography',
|
360
|
+
'epub' => 'EPUB',
|
361
|
+
'fb2' => 'FictionBook2 e-book',
|
362
|
+
'gfm' => 'GitHub-Flavored Markdown',
|
363
|
+
'haddock' => 'Haddock markup',
|
364
|
+
'html' => 'HTML',
|
365
|
+
'ipynb' => 'Jupyter notebook',
|
366
|
+
'jats' => 'JATS XML',
|
367
|
+
'jira' => 'Jira wiki markup',
|
368
|
+
'json' => 'JSON version of native AST',
|
369
|
+
'latex' => 'LaTex',
|
370
|
+
'man' => 'roff man',
|
371
|
+
'markdown' => "Pandoc's Markdown",
|
372
|
+
'markdown_mmd' => 'MultiMarkdown',
|
373
|
+
'markdown_phpextra' => 'PHP Markdown Extra',
|
374
|
+
'markdown_strict' => 'original unextended Markdown',
|
375
|
+
'mediawiki' => 'MediaWiki markup',
|
376
|
+
'muse' => 'Muse',
|
377
|
+
'native' => 'native Haskell',
|
378
|
+
'odt' => 'ODT',
|
379
|
+
'opml' => 'OPML',
|
380
|
+
'org' => 'Emacs Org mode',
|
381
|
+
'ris' => 'RIS bibliography',
|
382
|
+
'rst' => 'reStructuredText',
|
383
|
+
'rtf' => 'Rich Text Format',
|
384
|
+
't2t' => 'txt2tags',
|
385
|
+
'textile' => 'Textile',
|
386
|
+
'tikiwiki' => 'TikiWiki markup',
|
387
|
+
'tsv' => 'TSV table',
|
388
|
+
'twiki' => 'TWiki markup',
|
389
|
+
'vimwiki' => 'Vimwiki'
|
390
|
+
)
|
391
|
+
|
392
|
+
assert_equal(
|
393
|
+
PandocRuby::STRING_WRITERS,
|
394
|
+
'asciidoc' => 'AsciiDoc',
|
395
|
+
'asciidoctor' => 'AsciiDoctor',
|
396
|
+
'beamer' => 'LaTeX beamer slide show',
|
397
|
+
'biblatex' => 'BibLaTeX bibliography',
|
398
|
+
'bibtex' => 'BibTeX bibliography',
|
399
|
+
'chunkedhtml' => 'zip archive of multiple linked HTML files',
|
400
|
+
'commonmark' => 'CommonMark Markdown',
|
401
|
+
'commonmark_x' => 'CommonMark Markdown with extensions',
|
402
|
+
'context' => 'ConTeXt',
|
403
|
+
'csljson' => 'CSL JSON bibliography',
|
404
|
+
'docbook' => 'DocBook 4',
|
405
|
+
'docbook4' => 'DocBook 4',
|
406
|
+
'docbook5' => 'DocBook 5',
|
407
|
+
'dokuwiki' => 'DokuWiki markup',
|
408
|
+
'fb2' => 'FictionBook2 e-book',
|
409
|
+
'gfm' => 'GitHub-Flavored Markdown',
|
410
|
+
'haddock' => 'Haddock markup',
|
411
|
+
'html' => 'HTML, i.e. HTML5/XHTML polyglot markup',
|
412
|
+
'html5' => 'HTML, i.e. HTML5/XHTML polyglot markup',
|
413
|
+
'html4' => 'XHTML 1.0 Transitional',
|
414
|
+
'icml' => 'InDesign ICML',
|
415
|
+
'ipynb' => 'Jupyter notebook',
|
416
|
+
'jats_archiving' => 'JATS XML, Archiving and Interchange Tag Set',
|
417
|
+
'jats_articleauthoring' => 'JATS XML, Article Authoring Tag Set',
|
418
|
+
'jats_publishing' => 'JATS XML, Journal Publishing Tag Set',
|
419
|
+
'jats' => 'alias for jats_archiving',
|
420
|
+
'jira' => 'Jira wiki markup',
|
421
|
+
'json' => 'JSON version of native AST',
|
422
|
+
'latex' => 'LaTex',
|
423
|
+
'man' => 'roff man',
|
424
|
+
'markdown' => "Pandoc's Markdown",
|
425
|
+
'markdown_mmd' => 'MultiMarkdown',
|
426
|
+
'markdown_phpextra' => 'PHP Markdown Extra',
|
427
|
+
'markdown_strict' => 'original unextended Markdown',
|
428
|
+
'markua' => 'Markua',
|
429
|
+
'mediawiki' => 'MediaWiki markup',
|
430
|
+
'ms' => 'roff ms',
|
431
|
+
'muse' => 'Muse',
|
432
|
+
'native' => 'native Haskell',
|
433
|
+
'opml' => 'OPML',
|
434
|
+
'opendocument' => 'OpenDocument',
|
435
|
+
'org' => 'Emacs Org mode',
|
436
|
+
'pdf' => 'PDF',
|
437
|
+
'plain' => 'plain text',
|
438
|
+
'pptx' => 'PowerPoint slide show',
|
439
|
+
'rst' => 'reStructuredText',
|
440
|
+
'rtf' => 'Rich Text Format',
|
441
|
+
'texinfo' => 'GNU Texinfo',
|
442
|
+
'textile' => 'Textile',
|
443
|
+
'slideous' => 'Slideous HTML and JavaScript slide show',
|
444
|
+
'slidy' => 'Slidy HTML and JavaScript slide show',
|
445
|
+
'dzslides' => 'DZSlides HTML5 + JavaScript slide show',
|
446
|
+
'revealjs' => 'reveal.js HTML5 + JavaScript slide show',
|
447
|
+
's5' => 'S5 HTML and JavaScript slide show',
|
448
|
+
'tei' => 'TEI Simple',
|
449
|
+
'xwiki' => 'XWiki markup',
|
450
|
+
'zimwiki' => 'ZimWiki markup'
|
451
|
+
)
|
452
|
+
|
453
|
+
assert_equal(
|
454
|
+
PandocRuby::BINARY_WRITERS,
|
455
|
+
'odt' => 'OpenOffice text document',
|
456
|
+
'docx' => 'Word docx',
|
457
|
+
'epub' => 'EPUB v3',
|
458
|
+
'epub2' => 'EPUB v2',
|
459
|
+
'epub3' => 'EPUB v3'
|
460
|
+
)
|
461
|
+
|
462
|
+
assert_equal(
|
463
|
+
PandocRuby::WRITERS,
|
464
|
+
PandocRuby::STRING_WRITERS.merge(PandocRuby::BINARY_WRITERS)
|
465
|
+
)
|
208
466
|
end
|
209
467
|
end
|
metadata
CHANGED
@@ -1,95 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandoc-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Melody
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: mocha
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.1'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.1.0
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.1'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.1.0
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rake
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '10.4'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 10.4.2
|
43
|
-
type: :development
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '10.4'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 10.4.2
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: rdoc
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '4.2'
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 4.2.0
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '4.2'
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 4.2.0
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: minitest
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 5.8.3
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 5.8.3
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 5.8.3
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 5.8.3
|
11
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
93
13
|
description: Ruby wrapper for Pandoc
|
94
14
|
email: hi@williammelody.com
|
95
15
|
executables: []
|
@@ -107,16 +27,17 @@ files:
|
|
107
27
|
- lib/pandoc-ruby.rb
|
108
28
|
- pandoc-ruby.gemspec
|
109
29
|
- test/benchmark.rb
|
30
|
+
- test/files/Test File 1.md
|
31
|
+
- test/files/Test File 2.md
|
110
32
|
- test/files/benchmark.txt
|
111
|
-
- test/files/test.md
|
112
33
|
- test/helper.rb
|
113
34
|
- test/test_conversions.rb
|
114
35
|
- test/test_pandoc_ruby.rb
|
115
|
-
homepage: http://github.com/
|
36
|
+
homepage: http://github.com/xwmx/pandoc-ruby
|
116
37
|
licenses:
|
117
38
|
- MIT
|
118
39
|
metadata: {}
|
119
|
-
post_install_message:
|
40
|
+
post_install_message:
|
120
41
|
rdoc_options: []
|
121
42
|
require_paths:
|
122
43
|
- lib
|
@@ -124,17 +45,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
45
|
requirements:
|
125
46
|
- - ">="
|
126
47
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
48
|
+
version: '2.2'
|
128
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
50
|
requirements:
|
130
51
|
- - ">="
|
131
52
|
- !ruby/object:Gem::Version
|
132
53
|
version: '0'
|
133
54
|
requirements: []
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
specification_version: 3
|
55
|
+
rubygems_version: 3.4.1
|
56
|
+
signing_key:
|
57
|
+
specification_version: 4
|
138
58
|
summary: PandocRuby
|
139
59
|
test_files: []
|
140
|
-
has_rdoc:
|
File without changes
|