Skip to content

Commit 2e8312c

Browse files
committed
Extraneous ]
1 parent 9f22570 commit 2e8312c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docsplit.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22
s.name = 'docsplit'
3-
s.version = '0.6.2' # Keep version in sync with docsplit.rb
4-
s.date = '2011-11-18'
3+
s.version = '0.6.3' # Keep version in sync with docsplit.rb
4+
s.date = '2011-11-23'
55

66
s.homepage = "http://documentcloud.github.com/docsplit/"
77
s.summary = "Break Apart Documents into Images, Text, Pages and PDFs"

lib/docsplit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The Docsplit module delegates to the Java PDF extractors.
22
module Docsplit
33

4-
VERSION = '0.6.2' # Keep in sync with gemspec.
4+
VERSION = '0.6.3' # Keep in sync with gemspec.
55

66
ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
77

@@ -68,7 +68,7 @@ def self.extract_pdf(docs, opts={})
6868
basename = File.basename(doc, ext)
6969
escaped_doc, escaped_out, escaped_basename = [doc, out, basename].map(&ESCAPE)
7070

71-
if GM_FORMATS.include?(`file -b --mime #{ESCAPE[doc]]}`.strip.split(/[:;]\s+/)[0])
71+
if GM_FORMATS.include?(`file -b --mime #{ESCAPE[doc]}`.strip.split(/[:;]\s+/)[0])
7272
`gm convert #{escaped_doc} #{escaped_out}/#{escaped_basename}.pdf`
7373
else
7474
options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-4.jar -r #{ROOT}/vendor/conf/document-formats.js"

0 commit comments

Comments
 (0)