docsplit 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/docsplit.gemspec +1 -1
  2. data/lib/docsplit.rb +2 -2
  3. metadata +2 -2
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'docsplit'
3
- s.version = '0.6.1' # Keep version in sync with docsplit.rb
3
+ s.version = '0.6.2' # Keep version in sync with docsplit.rb
4
4
  s.date = '2011-11-18'
5
5
 
6
6
  s.homepage = "http://documentcloud.github.com/docsplit/"
@@ -1,7 +1,7 @@
1
1
  # The Docsplit module delegates to the Java PDF extractors.
2
2
  module Docsplit
3
3
 
4
- VERSION = '0.6.1' # Keep in sync with gemspec.
4
+ VERSION = '0.6.2' # Keep in sync with gemspec.
5
5
 
6
6
  ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
7
7
 
@@ -68,7 +68,7 @@ module Docsplit
68
68
  basename = File.basename(doc, ext)
69
69
  escaped_doc, escaped_out, escaped_basename = [doc, out, basename].map(&ESCAPE)
70
70
 
71
- if GM_FORMATS.include?(`file -b --mime #{doc}`.strip.split(/[:;]\s+/)[0])
71
+ if GM_FORMATS.include?(`file -b --mime #{ESCAPE[doc]]}`.strip.split(/[:;]\s+/)[0])
72
72
  `gm convert #{escaped_doc} #{escaped_out}/#{escaped_basename}.pdf`
73
73
  else
74
74
  options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-4.jar -r #{ROOT}/vendor/conf/document-formats.js"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 1
9
- version: 0.6.1
8
+ - 2
9
+ version: 0.6.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremy Ashkenas