pandocomatic 0.0.12 → 0.0.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb7b5f8d314027e1992b652298a0b0a51a15c0f6
4
- data.tar.gz: dddff694243f9ef06a50bb96c58807f948c9d7bd
3
+ metadata.gz: 2789cfe2c555b46519a2bdacc5c149072ee968fa
4
+ data.tar.gz: b6bb2f9fcd18377be26faa63f40cdedd51c6806d
5
5
  SHA512:
6
- metadata.gz: fa659496dfb9041e85b0ecf536686f421b77dd2f4b7d8ff35c350a1a364f6b6cfb0b743adc31678d959565e1256846bf3165210580f613350ec49017f006f281
7
- data.tar.gz: fea66ce86d26b5ff986417813ab62b9f40590effdc3f26d854153bbab35b14f2c22216010f225050381b6f0d14799bbbfad84f1463e5d8d5c2ef725b4516f768
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.12"
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
@@ -10,6 +10,7 @@ module Pandocomatic
10
10
  output << " created: #{created_at.strftime '%Y-%m-%d'}\n"
11
11
  output << " modified: #{modified_at.strftime '%Y-%m-%d'}\n"
12
12
  output << "..."
13
+ output
13
14
  end
14
15
  end
15
16
  end
@@ -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 path
41
- json = JSON.parse(PANDOC_2_JSON << File.read(path))
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.12
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-28 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paru