pandocomatic 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pandocomatic/command/convert_file_command.rb +10 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f407c39ec47d26ed9e8bdbb5452983aba4778824
|
4
|
+
data.tar.gz: beea9f4b103e36896a83be1cf57be5d279d09cf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b33aa1bbf4a007c30b9a270dbd78341d80f3830d5f18f8f4d00beb39f565ab99051f705d480d817aee2209fa7aaa2b47b797c6942ee7dc0918554ce4b96eab
|
7
|
+
data.tar.gz: f2a4c7b1b5869eafb6ed777b49070fefb1a970329da7f7b9ba26af56584cc90c87b82e9f43ad5201a2ba21f5825d511edb58446a82a14bc085ea1d726b2d45dc
|
@@ -72,7 +72,16 @@ module Pandocomatic
|
|
72
72
|
|
73
73
|
template = @config.get_template template_name
|
74
74
|
|
75
|
-
pandoc_options = (template['pandoc'] || {}).merge(pandoc_options)
|
75
|
+
pandoc_options = (template['pandoc'] || {}).merge(pandoc_options) do |key, oldval, newval|
|
76
|
+
# Options that can occur more than once, such as 'filter' or
|
77
|
+
# 'metadata' are merged, not replaced like options that can occur
|
78
|
+
# only once, such as 'toc' or 'from'
|
79
|
+
if oldval.is_a? Array
|
80
|
+
oldval + newval
|
81
|
+
else
|
82
|
+
newval
|
83
|
+
end
|
84
|
+
end
|
76
85
|
end
|
77
86
|
|
78
87
|
input = File.read @src
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandocomatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huub de Beer
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.2.4
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.2.4
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.2.4
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.2.4
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: 0.9.8
|
81
81
|
description: 'Automating the use of pandoc <http://pandoc.org>: use pandocomatic to
|
82
|
-
convert one file or a directory
|
82
|
+
convert one file or a directory with files and sub directories.'
|
83
83
|
email: Huub@heerdebeer.org
|
84
84
|
executables:
|
85
85
|
- pandocomatic
|