burisu-docsplit 0.7.5 → 0.7.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 364308f838aa67a65ff4a478073b9011f6696aec
4
- data.tar.gz: 949f366310ece3bf924296148ba2e2346e3dba77
3
+ metadata.gz: 6e8e83657d34d345bf2187c4d97f62a68dbc9f67
4
+ data.tar.gz: 6235ba1a2fc9a737f7df72dfd4aa57afb8b416ad
5
5
  SHA512:
6
- metadata.gz: 71516f45bf021f608c76989dbd7032de6adcc0eae38e5d07b645f26d8819a2f637252f0e52e350bf4deb80ae9d5e29eb92f7aef193f0f12f5736712181fb28de
7
- data.tar.gz: 5408cb91169a00ce40294631106dc70ee3f657cbb9a50ef650f1fe8547bf6d19c3cdbe1bb3e51c4512da8ca24682a5b7f6157b0218b4cf5c0ddc7bd2e6dcb935
6
+ metadata.gz: b669fbd7c68f94b0451cbb5753f83aaa7ef77d13247bb696e0222467310600b91b5a7ac1255a512873b79c5c78c5a21f3f5006a1b6b34626021cdca34f360fc4
7
+ data.tar.gz: b2f80cca13a78498c2742bc6ce14f2c778485f5c514600c37a43119901fba503a6fcc00dcc55d687b8fbecc4a9b4f1754ed8e95372e2e46576c8a1fb166648e6
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'burisu-docsplit'
3
- s.version = '0.7.5' # Keep version in sync with docsplit.rb
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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burisu-docsplit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas