pandocomatic 0.2.5.3 → 0.2.5.4

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: 5488e8b0dc9c2a92853d1d88a09366afa4215e7454a07d8c4615a9acd7c48f64
4
- data.tar.gz: 675cd2a32445a34890f1d1a3828a717771f1300609c6dd529d2c44bdfe4bc287
3
+ metadata.gz: c2f6a7f6a8eee5d33ad05f1e41251a25719ca5bc7f025d51304825c80c1ddb84
4
+ data.tar.gz: e7a9771bc2521c6c7565d745290a57bb6167ab13760c7dbb3d8d5b1f40bfab44
5
5
  SHA512:
6
- metadata.gz: bc9ce181a26707da0ab970bc9f99352c05a973c3ec72af1d1c9b1557ae2d7ccef9faa5ddb88d168c1db5f75e492a689af467f2c3d2f3a65b627abe31bc02a8d7
7
- data.tar.gz: 8663290e2372a1987f4e26ec33f4d981e1b965690fac92af54dc0b0b04d9699b3ae42ba6cf7cc50e7fad3bf312d38aef5dbdacf29012f249a89a906471dbe24d
6
+ metadata.gz: 0bf99bb6171e37d1a9a4753892a96a36446f9b22d9ecb07c7cefa3c91f8b0d297a2f1402bcd5d38278c6d449bb3c172bf7963b32d913abc781421030f7b6509f
7
+ data.tar.gz: '00769002b86dce30908ea8bd3418b2700f25a1ffba669c1ce7f3ba614f11c479f65527ab69cc1f151a4f5fbbea0a592b0728b4573a55da76ca9a13fae6fc4d65'
@@ -264,7 +264,11 @@ module Pandocomatic
264
264
  processors = config[type]
265
265
  output = input
266
266
  processors.each do |processor|
267
- script = @config.update_path(processor, File.dirname(@src), true)
267
+ script = if @config.is_local_path processor
268
+ processor
269
+ else
270
+ @config.update_path(processor, File.dirname(@src), true)
271
+ end
268
272
 
269
273
  command, *parameters = script.shellsplit # split on spaces unless it is preceded by a backslash
270
274
 
@@ -643,6 +643,14 @@ module Pandocomatic
643
643
  end
644
644
  end
645
645
 
646
+ def is_local_path(path)
647
+ if Gem.win_platform? then
648
+ path.match("^\\.\\\\\.*$")
649
+ else
650
+ path.start_with? "./"
651
+ end
652
+ end
653
+
646
654
  private
647
655
 
648
656
  # Reset the settings for pandocomatic based on a new settings Hash
@@ -809,13 +817,6 @@ module Pandocomatic
809
817
  @data_dir, @settings, @templates, @convert_patterns = array
810
818
  end
811
819
 
812
- def is_local_path(path)
813
- if Gem.win_platform? then
814
- path.match("^\\.\\\\\.*$")
815
- else
816
- path.start_with? "./"
817
- end
818
- end
819
820
 
820
821
  def is_absolute_path(path)
821
822
  if Gem.win_platform? then
@@ -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, 5, 3]
50
+ VERSION = [0, 2, 5, 4]
51
51
 
52
52
  # Run pandocomatic given options
53
53
  #
@@ -36,7 +36,6 @@ module Pandocomatic
36
36
  # @return [String] output of script.
37
37
  def self.run script, input
38
38
  output, error, status = Open3.capture3(script, :stdin_data => input)
39
-
40
39
  warn error unless error.empty?
41
40
 
42
41
  if status.exitstatus > 0
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.5.3
4
+ version: 0.2.5.4
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: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2019-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paru