capriza-aws 0.0.7 → 0.0.8

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.
@@ -1,5 +1,5 @@
1
1
  module Capriza
2
2
  module Aws
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
data/lib/capriza-aws.rb CHANGED
@@ -57,8 +57,10 @@ module Capriza
57
57
  def upload(data, make_public = false)
58
58
  @data = data
59
59
  @obj.write(@data)
60
- @obj.acl = :public_read if make_public
61
- @obj.content_type = 'application/zip'
60
+ metadata = @obj.head[:metadata]
61
+ content_type = "application/pdf"
62
+ @obj.copy_to(@obj.key, :metadata => metadata, :content_type => content_type)
63
+ @obj.acl = :public_read if make_public
62
64
  end
63
65
 
64
66
  def download()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capriza-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: