fog 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fog.gemspec +1 -1
- data/lib/fog/aws/models/s3/bucket.rb +0 -1
- data/lib/fog/aws/models/s3/buckets.rb +2 -10
- data/lib/fog/aws/models/s3/object.rb +10 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.35
|
data/fog.gemspec
CHANGED
@@ -16,11 +16,7 @@ module Fog
|
|
16
16
|
data['Buckets'].each do |bucket|
|
17
17
|
buckets << Fog::AWS::S3::Bucket.new({
|
18
18
|
:collection => buckets,
|
19
|
-
:connection => connection
|
20
|
-
:owner => {
|
21
|
-
:display_name => owner['DisplayName'],
|
22
|
-
:id => owner['ID']
|
23
|
-
}
|
19
|
+
:connection => connection
|
24
20
|
}.merge!(bucket))
|
25
21
|
end
|
26
22
|
buckets
|
@@ -47,11 +43,7 @@ module Fog
|
|
47
43
|
bucket.objects << Fog::AWS::S3::Object.new({
|
48
44
|
:bucket => bucket,
|
49
45
|
:connection => connection,
|
50
|
-
:collection => bucket.objects
|
51
|
-
:owner => {
|
52
|
-
:display_name => owner['DisplayName'],
|
53
|
-
:id => owner['ID']
|
54
|
-
}
|
46
|
+
:collection => bucket.objects
|
55
47
|
}.merge!(object))
|
56
48
|
end
|
57
49
|
bucket
|
@@ -11,7 +11,7 @@ module Fog
|
|
11
11
|
attribute :content_type, 'Content-Type'
|
12
12
|
attribute :etag, ['Etag', 'ETag']
|
13
13
|
attribute :last_modified, ['Last-Modified', 'LastModified']
|
14
|
-
attribute :owner
|
14
|
+
attribute :owner, 'Owner'
|
15
15
|
attribute :size, 'Size'
|
16
16
|
attribute :storage_class, 'StorageClass'
|
17
17
|
|
@@ -42,6 +42,15 @@ module Fog
|
|
42
42
|
true
|
43
43
|
end
|
44
44
|
|
45
|
+
def owner=(new_owner)
|
46
|
+
if new_owner
|
47
|
+
@owner = {
|
48
|
+
:display_name => new_owner['DisplayName'],
|
49
|
+
:id => new_owner['ID']
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
45
54
|
def save(options = {})
|
46
55
|
requires :body, :bucket, :key
|
47
56
|
data = connection.put_object(bucket.name, @key, @body, options)
|