pandocomatic 0.2.7.1 → 0.2.7.2

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
  SHA256:
3
- metadata.gz: e46ebcd9dc218f09d7555963b4b748f76cdac4e0227da78a6beacde2b944c51c
4
- data.tar.gz: ad48096c41b76d1a0369b8a378d573408a48638d68f47c4dcb5ce55c6a205462
3
+ metadata.gz: 8c5160563dbb3f82d9854f6c822e3e99ab25bd98518baa5628559b2e27b8e46f
4
+ data.tar.gz: 520905c9a5e69954fbf6f7f8b1217734463f5207e8d1566d2343b4efa40d2dac
5
5
  SHA512:
6
- metadata.gz: c771b7c25fc8611d1e22ede00920ad7090b246b09fe45db40871f979154523c2cf8e43d29dd68d0b8b8c539fffba22cc579568ead3a547ae4c623dde0e6bf2a9
7
- data.tar.gz: 010b7580a4d6dc0577c887e2a8a69b2634646ce584d07266a6c4cc5825c919a3f47acd5b4ad8777899802c35d920bab8728a7b5e407c9cf04642003a603a2c64
6
+ metadata.gz: 629402536265e66ba416bd93d8515086e1db45752d7bc0168489253350c2e789156eca213105177b8d76b657fa78efd54ee669e8524329099f552ecafa75acca
7
+ data.tar.gz: 83f696edff0469c550249b41c330b25214f324f349c4295ca43aba7a828cdb2d6a4f93d3c471c3be08da873fbeca2896978d2818300d5d78c14b680b9b8eedf8
@@ -126,7 +126,7 @@ module Pandocomatic
126
126
  # Run the default preprocessors to mix-in information about the file
127
127
  # that is being converted and mix-in the template's metadata section as
128
128
  # well
129
- input = FileInfoPreprocessor.run input, @src, pandoc_options
129
+ input = FileInfoPreprocessor.run input, @src, src_root, pandoc_options
130
130
  input = MetadataPreprocessor.run input, template['metadata'] if template.has_key? 'metadata' and not template['metadata'].empty?
131
131
 
132
132
  # Convert the file by preprocessing it, run pandoc on it, and
@@ -64,7 +64,6 @@ module Pandocomatic
64
64
  global_templates = @config.determine_templates(@src)
65
65
 
66
66
  if global_templates.empty?
67
-
68
67
  subcommands.push ConvertFileCommand.new(@config, @src, dst)
69
68
  else
70
69
  global_templates.each do |template_name|
@@ -301,6 +301,7 @@ module Pandocomatic
301
301
  # If a temporary file has been created while concatenating
302
302
  # multiple input files, ensure it is removed.
303
303
  if @input.is_a? MultipleFilesInput then
304
+ warn "CLEAN UP"
304
305
  @input.destroy!
305
306
  end
306
307
  end
@@ -47,7 +47,7 @@ module Pandocomatic
47
47
  ERROR_STATUS = 1266 # This is the sum of the ascii values of the characters in 'pandocomatic'
48
48
 
49
49
  # Pandocomatic's current version
50
- VERSION = [0, 2, 7, 1]
50
+ VERSION = [0, 2, 7, 2]
51
51
 
52
52
  # Run pandocomatic given options
53
53
  #
@@ -150,7 +150,7 @@ AUTHOR
150
150
 
151
151
  LICENSE
152
152
 
153
- Copyright 2014—2019 Huub de Beer <Huub@heerdebeer.org>
153
+ Copyright 2014—2020 Huub de Beer <huub@heerdebeer.org>
154
154
 
155
155
  Pandocomatic is free software: you can redistribute it and/or modify
156
156
  it under the terms of the GNU General Public License as published by the
@@ -31,7 +31,7 @@ module Pandocomatic
31
31
  # @param path [String] the path to the input document
32
32
  # @param options [Hash] pandoc options collected by pandocomatic to run on
33
33
  # this file
34
- def self.run input, path, options
34
+ def self.run input, path, src_path, options
35
35
  created_at = File.stat(path).ctime
36
36
  modified_at = File.stat(path).mtime
37
37
  output = input
@@ -41,6 +41,7 @@ module Pandocomatic
41
41
  output << " to: #{options['to']}\n" if options.has_key? 'to'
42
42
  output << " template: #{options['template']}\n" if options.has_key? 'template'
43
43
  output << " path: '#{path}'\n"
44
+ output << " src_path: '#{src_path}'\n"
44
45
  output << " created: #{created_at.strftime '%Y-%m-%d'}\n"
45
46
  output << " modified: #{modified_at.strftime '%Y-%m-%d'}\n"
46
47
  output << "...\n\n"
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.2.7.1
4
+ version: 0.2.7.2
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: 2020-05-07 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paru
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.4.0
22
+ version: 0.4.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.4.0
32
+ version: 0.4.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: optimist
35
35
  requirement: !ruby/object:Gem::Requirement