capriza-aws2 0.0.25 → 0.0.26

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.
@@ -55,11 +55,10 @@ module Capriza
55
55
  @obj = s3.buckets[bucket].objects[file_name]
56
56
  end
57
57
 
58
- def upload(data, make_public = false)
58
+ def upload(data, make_public = false, content_type = "application/zip")
59
59
  @data = data
60
60
  @obj.write(@data)
61
61
  metadata = @obj.head[:metadata]
62
- content_type = "application/zip"
63
62
  @obj.copy_to(@obj.key, :metadata => metadata, :content_type => content_type)
64
63
  @obj.acl = :public_read if make_public
65
64
  end
@@ -1,5 +1,5 @@
1
1
  module Capriza
2
2
  module Aws
3
- VERSION = "0.0.25"
3
+ VERSION = "0.0.26"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capriza-aws2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-22 00:00:00.000000000 Z
12
+ date: 2014-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk