paru 0.2.5.9 → 0.2.5.10

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/paru/pandoc.rb +5 -1
  3. data/lib/paru.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a392bf99e12749753c0f0a2fee381a75b40a644f
4
- data.tar.gz: 1dcbe87244204dd3cad497418cc80e9e4e8803b5
3
+ metadata.gz: a4b6cb248dbcef616c5d6552f3dbe65a2e15d479
4
+ data.tar.gz: 24919ff8bd3ae7ce696e6a5c3c88fba95aa2d691
5
5
  SHA512:
6
- metadata.gz: 4da2950a1763ebc7f2c8834ed0318ef6d766abe2edf1f3718ad7405de386d73f48d96dd0d2c543326392525ed3ad3293b84b41091e27623da267dcad887ff46c
7
- data.tar.gz: 2d42794b0d5971df704fdca40bb6296d7fbb36a0e8b75bb38beacba046f951d5b03eb42bd6b226500ae9a6c14326f1c07eca8c4fa99d591901036e9e28b7a47e
6
+ metadata.gz: 3e603abb1e85a89b70db7e893d42926da15fe6ec2121b161d26d9ee5c185f682fe77c0a15781174b9716e27a8c05a217f313597934d3300b544b65d728f9c352
7
+ data.tar.gz: 6aecc7c1f1e2a2c361c73a544f64be15043cb73822d6cc534e06f230f0cc87f8506feae39230a769dee851fe48e1ac9cb0fd9eae8dadd9c9042282ebef189e9f
data/lib/paru/pandoc.rb CHANGED
@@ -79,6 +79,10 @@ module Paru
79
79
  #
80
80
  #
81
81
  class Pandoc
82
+
83
+ # Use a readable option separator on Unix-like systems, but fall back
84
+ # to a space on Windows.
85
+ DEFAULT_OPTION_SEP = if Gem.win_platform? then " " else " \\\n\t" end
82
86
 
83
87
  # Path to the pandoc executatble to use by paru.
84
88
  PARU_PANDOC_PATH = "PARU_PANDOC_PATH"
@@ -174,7 +178,7 @@ module Paru
174
178
  #
175
179
  # @param option_sep [String] the string to separate options with
176
180
  # @return [String] This converter's command line invocation string.
177
- def to_command(option_sep = " \\\n\t")
181
+ def to_command(option_sep = DEFAULT_OPTION_SEP)
178
182
  "#{@@pandoc_exec.shellescape}\t#{to_option_string option_sep}"
179
183
  end
180
184
 
data/lib/paru.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  #++
19
19
  module Paru
20
20
  # Paru's current version
21
- VERSION = [0, 2, 5, 9]
21
+ VERSION = [0, 2, 5, 10]
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5.9
4
+ version: 0.2.5.10
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: 2017-09-19 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use Pandoc (http://www.pandoc.org) with ruby
14
14
  email: Huub@heerdebeer.org