pandocomatic 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pandocomatic +1 -1
- data/lib/pandocomatic/fileinfo_preprocessor.rb +1 -0
- data/lib/pandocomatic/pandoc_metadata.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2789cfe2c555b46519a2bdacc5c149072ee968fa
|
4
|
+
data.tar.gz: b6bb2f9fcd18377be26faa63f40cdedd51c6806d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 734ed488a938cced2e73405b729ce2874a935ee93917fe4a28a2130f66634ae3e26f7804a7d7381e43b318b1dff0d6ca34822ea217279ab1520f1e0906728359
|
7
|
+
data.tar.gz: 833dcc225450ee3c849d2d1d097d71d581d1581665141a576154813b1e1c6b9f19c4b5068803ad0ad0566a2c7341509ff1de844c76ce9df251c1c886dcd2725f
|
data/bin/pandocomatic
CHANGED
@@ -8,7 +8,7 @@ require_relative '../lib/pandocomatic/file_converter.rb'
|
|
8
8
|
require_relative '../lib/pandocomatic/configuration.rb'
|
9
9
|
|
10
10
|
opts = Trollop::options do
|
11
|
-
version "pandocomatic 0.0.
|
11
|
+
version "pandocomatic 0.0.13"
|
12
12
|
banner <<-EOB
|
13
13
|
|
14
14
|
Pandocomatic automates the use of pandoc (<http://www.pandoc.org>). It can be
|
@@ -26,7 +26,7 @@ module Pandocomatic
|
|
26
26
|
# Collect the metadata embedded in the src file
|
27
27
|
def self.load_file src
|
28
28
|
begin
|
29
|
-
yaml_metadata = PandocMetadata.pandoc2yaml src
|
29
|
+
yaml_metadata = PandocMetadata.pandoc2yaml File.read(src)
|
30
30
|
if yaml_metadata.empty? then
|
31
31
|
return PandocMetadata.new
|
32
32
|
else
|
@@ -37,8 +37,8 @@ module Pandocomatic
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def self.pandoc2yaml
|
41
|
-
json = JSON.parse(PANDOC_2_JSON <<
|
40
|
+
def self.pandoc2yaml document
|
41
|
+
json = JSON.parse(PANDOC_2_JSON << document)
|
42
42
|
yaml = ""
|
43
43
|
|
44
44
|
version, metadata = json.values_at(VERSION, META)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandocomatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huub de Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paru
|