area17-paperclip 2.2.9.2.3 → 2.2.9.2.4

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.
data/lib/paperclip.rb CHANGED
@@ -44,7 +44,7 @@ end
44
44
  # documentation for Paperclip::ClassMethods for more useful information.
45
45
  module Paperclip
46
46
 
47
- VERSION = "2.2.9.2.3"
47
+ VERSION = "2.2.9.2.4"
48
48
 
49
49
  class << self
50
50
  # Provides configurability to Paperclip. There are a number of options available, such as:
@@ -241,7 +241,7 @@ module Paperclip
241
241
  new_original = Tempfile.new("paperclip-reprocess")
242
242
  new_original.binmode
243
243
  if old_original = to_file(:original)
244
- new_original.write( old_original.read )
244
+ new_original.write(old_original.is_a?(RightAws::S3::Key) ? old_original.data : old_original.read)
245
245
  new_original.rewind
246
246
 
247
247
  @queued_for_write = { :original => new_original }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: area17-paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9.2.3
4
+ version: 2.2.9.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Yurek