prawn-attachment 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: c82ce1fc502c03d7348f8c72873ae174a82387f42b6f1619ee0405eccd75165b
4
- data.tar.gz: 61646a398075b6757fd9682f47754041e12e4bb444956489fbb60bb2757ec059
3
+ metadata.gz: 3631a155d575b340ead2265cae8c250d51be7e220482e0743868d077c94df381
4
+ data.tar.gz: 5d052b4dd7a8e50b770be6331bb777956f58ea0e63a374e2ef3f89b95a94127e
5
5
  SHA512:
6
- metadata.gz: 76721c29d6d7b918b4ef580b7465b651fc97c9d5579107a842084f8528994854c68d4b6e2a47d8b52325ce4ed74e7934e93ae3680c7ae9ceab22471e8cf99656
7
- data.tar.gz: 5e349c0d2f29986ec24c74efbd7b2155b4a7e8623a069c4791da1d0162b361d7db37fb01bf0a86784f6d58390d3aa2d6bef790a3b964ff2c03e2aa83fa98a2e5
6
+ metadata.gz: 84fcda70276a7e4551110992623289dff6b70d315eb5e12d430b35b24a1ad24588ca77fc9dc6c568802971a2957a335cde9f51c9ca618b9c44d368038f5119e4
7
+ data.tar.gz: 47ef849c927b737d6e79cd1b3912b5038edf22769d20089f1fffee0378d8412e8cb4a66d857b26278e60a151cde76dd37d2a153f705e910fba047646a13a058a
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prawn
4
4
  module Attachment
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
@@ -65,7 +65,7 @@ module Prawn
65
65
 
66
66
  def extract_data_from_source(src)
67
67
  if src.respond_to?(:read)
68
- data = src.read
68
+ data = src.read.b
69
69
  elsif src.respond_to?(:b)
70
70
  data = src.b
71
71
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-attachment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lilue