pandocomatic 0.1.4.13 → 0.1.4.14

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
  SHA1:
3
- metadata.gz: 752daaef851703068d16cdd487acfeefb4a6293b
4
- data.tar.gz: c687aad05f4172a877ee2ade5992514eeccbc51b
3
+ metadata.gz: cea0ae539e3ccad30e3234c18e4e4805d66b7c95
4
+ data.tar.gz: b3ed95aae246b0bab931240df39873c7972a5903
5
5
  SHA512:
6
- metadata.gz: 6292e4a759659de493b53248064a2d68e8794d4ae006e9614033785bb95f23ff17958acc9ab51f2a3a91eec48ba26dd45690628d6e66d79e78ec34c809ad1371
7
- data.tar.gz: fcf0da16939615bcd039bc5fe221a3aa384e4b0b257ed077115a2ab263d5bbaa295642afa9aed03a85e816a5330c1045542649f93d51f1402d947be6bba004d1
6
+ metadata.gz: 8586b113373dd4009e90eeaed4a79b7e579e391c24d0fbb9c24d4ab9e2453c336e3fa4a59e7b9bc55ed3ef6753ddd48636873ff5ba23f512f70295da8319c519
7
+ data.tar.gz: 313d2d43228c0056177197f89ea2bf46ce061a8f74ca6f254167b84b5c51afcacfefb7e1657b4e9b6b0166d65937eef42b874e761d83e02cecde36fc77054746
@@ -199,8 +199,12 @@ module Pandocomatic
199
199
  # extension.
200
200
  value = "latex" if option == "to" and value == "pdf"
201
201
 
202
- converter.send option, value unless option == 'output'
203
- # don't let pandoc write the output to enable postprocessing
202
+ begin
203
+ converter.send option, value unless option == 'output'
204
+ # don't let pandoc write the output to enable postprocessing
205
+ rescue
206
+ warn "The pandoc option '#{option}' (with value '#{value}') is not recognized by paru. This option is skipped." if debug?
207
+ end
204
208
  end
205
209
 
206
210
  converter.send "output", @dst if OUTPUT_FORMATS.include? options["to"]
@@ -209,7 +213,7 @@ module Pandocomatic
209
213
  puts converter.to_command if debug?
210
214
  converter << input
211
215
  rescue Paru::Error => e
212
- raise PandocError.new(:error_running_pandoc, e, input_document)
216
+ raise PandocError.new(:error_running_pandoc, e, input)
213
217
  end
214
218
  end
215
219
 
@@ -1 +1 @@
1
- <%=@error.message%>: '<%= @error.error.message %>'.
1
+ <%=@error.message%> => <%= @error.error.message %>
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.1.4.13
4
+ version: 0.1.4.14
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-08-17 00:00:00.000000000 Z
11
+ date: 2017-09-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.2.5
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.5.3
22
+ version: 0.2.5.6
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.2.5
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.2.5.3
32
+ version: 0.2.5.6
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: trollop
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - pandoc, a universal document converer <http://pandoc.org>
155
155
  rubyforge_project:
156
- rubygems_version: 2.5.2
156
+ rubygems_version: 2.6.11
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Automating the use of pandoc