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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4600c3368664b2a5cdb1356aac08d11c9b9513e7
4
- data.tar.gz: 7aa206c59dfd84bb03a6e259a1e34cc3e9a9ba88
3
+ metadata.gz: f407c39ec47d26ed9e8bdbb5452983aba4778824
4
+ data.tar.gz: beea9f4b103e36896a83be1cf57be5d279d09cf3
5
5
  SHA512:
6
- metadata.gz: b75780060c77556416ff5cf9b510e1e49e303faa934d4600642a88107dbc1999e2d1dc5b59b1b48aba20a5cf7f38c8978a8e91b17167dabb31d41f519c3512b2
7
- data.tar.gz: 760ea4f55f3b0b3b575b613f8454c7a62a741bde85615356d1ad2138dfb67adff1ff21cab2c4d97b66b8a962c8ca832169b84dfdd658af0ce1ebb84b04f81cb3
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.0
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: '0.2'
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: '0.2'
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 tree of files.'
82
+ convert one file or a directory with files and sub directories.'
83
83
  email: Huub@heerdebeer.org
84
84
  executables:
85
85
  - pandocomatic