carrierwave-aws 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 +4 -4
- data/HISTORY.md +5 -0
- data/lib/carrierwave/aws/version.rb +1 -1
- data/lib/carrierwave/storage/aws.rb +4 -3
- data/spec/fixtures/image.png +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9be17289878c899ad526a81fcb3313bdf15f1ca
|
4
|
+
data.tar.gz: f0e6f3c4095ad304a3130e5695af7eff750ff01a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c746d630232b56ac8a36e8bbbd2cad987ad04422c73fc089daf19d359a448750a5d6dc936b741df502e252684bcebc47ab1c3f93889feb023b27facdbe0c09
|
7
|
+
data.tar.gz: 1c09c4a9ae97ca158460ff80988dfb07bdda401604589e43f947f1d59ab767a29e7d95bbca21854dc81c6be23eb807298f2081ee1f06935e1f305c17a2b552ba
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## Version 0.3.1 2013-05-23
|
2
|
+
|
3
|
+
* Use the "alternate" object writing syntax. The primary method (as documented)
|
4
|
+
only uploads the path itself rather than the file.
|
5
|
+
|
1
6
|
## Version 0.3.0 2013-05-23
|
2
7
|
|
3
8
|
* Pass the file path directly to aws-sdk to prevent upload timeouts stemming
|
@@ -73,9 +73,10 @@ module CarrierWave
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def store(new_file)
|
76
|
-
@file = bucket.objects[path].write(
|
77
|
-
acl:
|
78
|
-
content_type: new_file.content_type
|
76
|
+
@file = bucket.objects[path].write({
|
77
|
+
acl: uploader.aws_acl,
|
78
|
+
content_type: new_file.content_type,
|
79
|
+
file: new_file.file
|
79
80
|
}.merge(uploader.aws_attributes || {}))
|
80
81
|
|
81
82
|
true
|
data/spec/fixtures/image.png
CHANGED
Binary file
|