carrierwave-aws 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec70707302830ad68344002780286686534f2cfe
4
- data.tar.gz: 5f6a31d07df412d97e8af6c70a7dc4dd89cc8212
3
+ metadata.gz: f9be17289878c899ad526a81fcb3313bdf15f1ca
4
+ data.tar.gz: f0e6f3c4095ad304a3130e5695af7eff750ff01a
5
5
  SHA512:
6
- metadata.gz: 3ced29508da5597363c14709224b971e03b8c237a38f830dc2a7aeaaf34d0d1b7cea9489471ca5238dc8576883a8db4e7530fcab0c70d05c6558e8772ded2690
7
- data.tar.gz: a528306304867a49a75c8052378e43438a5d84ff69485865adb7354ec6073d0e5c1006e4288bf111be31fa9cad006cce535ab2377bb315b691623939c112c362
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
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module AWS
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -73,9 +73,10 @@ module CarrierWave
73
73
  end
74
74
 
75
75
  def store(new_file)
76
- @file = bucket.objects[path].write(new_file.file, {
77
- acl: uploader.aws_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
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-aws
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
  - Parker Selbert