paperclip-document 0.0.5 → 0.0.6

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: 0eea80135b657f2b47ecc5948d4443be118cec19
4
- data.tar.gz: f9b90dc80e759fb9809388ef49e1d0f1bfb30d3d
3
+ metadata.gz: f98f16e85f58bf6366fe5aedd7bd23ae5c8969bf
4
+ data.tar.gz: 0104272d6fdc424223ac9f63b5e82efdc17d19cc
5
5
  SHA512:
6
- metadata.gz: ede250c619b01cfa830a5b99a48d7c6153173244134782a1b53902b1f3d8b9e6f00c0ab036d5ccc660db4b7d6a5e5ec025afb27f8c5e642bae44cfedd2e0118a
7
- data.tar.gz: f0e8f980c2eca47d43d19334f2119a0f6c211ed4df1e550c43086a5540238a5adb106c9091f1fcf54aa3a4d7be2111c3e9e75653292a166e173cefc40951bd49
6
+ metadata.gz: 65912c37b4d27517d84038418bc4e06007f12381e5e75dc59d706705f10c053390ac864ddcee83664964ee8b01c98e020b59a034acc8678e18cf5ef418fedcdb
7
+ data.tar.gz: f8e5fa9377f772aaa789bac68965adb80b516dfda00822309b2de0be7bac2b7616e53c934f21e3fa4f4563aea72d06f8ee2e5a171dede9d1caf8473978521063
@@ -26,7 +26,7 @@ module Paperclip
26
26
 
27
27
 
28
28
  def pdf_format?
29
- File.open(file_path, "rb", &:readline) =~ /\A\%PDF-\d+(\.\d+)?$/
29
+ File.open(file_path, "rb", &:readline).to_s =~ /\A\%PDF-\d+(\.\d+)?$/
30
30
  end
31
31
 
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Document
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-document
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Texier