burisu-docsplit 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docsplit.gemspec +1 -1
- data/lib/docsplit/transparent_pdfs.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e8e83657d34d345bf2187c4d97f62a68dbc9f67
|
4
|
+
data.tar.gz: 6235ba1a2fc9a737f7df72dfd4aa57afb8b416ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b669fbd7c68f94b0451cbb5753f83aaa7ef77d13247bb696e0222467310600b91b5a7ac1255a512873b79c5c78c5a21f3f5006a1b6b34626021cdca34f360fc4
|
7
|
+
data.tar.gz: b2f80cca13a78498c2742bc6ce14f2c778485f5c514600c37a43119901fba503a6fcc00dcc55d687b8fbecc4a9b4f1754ed8e95372e2e46576c8a1fb166648e6
|
data/docsplit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'burisu-docsplit'
|
3
|
-
s.version = '0.7.
|
3
|
+
s.version = '0.7.6' # Keep version in sync with docsplit.rb
|
4
4
|
|
5
5
|
s.homepage = "http://documentcloud.github.com/docsplit/"
|
6
6
|
s.summary = "Break Apart Documents into Images, Text, Pages and PDFs"
|
@@ -9,7 +9,7 @@ module Docsplit
|
|
9
9
|
def ensure_pdfs(docs)
|
10
10
|
[docs].flatten.map do |doc|
|
11
11
|
ext = File.extname(doc)
|
12
|
-
if ext.downcase == '.pdf' || File.open(doc, &:readline) =~ /\A\%PDF-\d+(\.\d+)?$/
|
12
|
+
if ext.downcase == '.pdf' || File.open(doc, "rb", &:readline) =~ /\A\%PDF-\d+(\.\d+)?$/
|
13
13
|
doc
|
14
14
|
else
|
15
15
|
tempdir = File.join(Dir.tmpdir, 'docsplit')
|