uber-s3 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uber-s3/object.rb +4 -1
- data/lib/uber-s3/version.rb +1 -1
- metadata +1 -1
data/lib/uber-s3/object.rb
CHANGED
@@ -28,6 +28,9 @@ class UberS3
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def exists?
|
31
|
+
# TODO.. refactor this as if we've already called head
|
32
|
+
# on the object, there is no need to do it again..
|
33
|
+
# perhaps move some things into class methods?
|
31
34
|
bucket.connection.head(key).status == 200
|
32
35
|
end
|
33
36
|
|
@@ -84,7 +87,7 @@ class UberS3
|
|
84
87
|
|
85
88
|
# Meta
|
86
89
|
if !meta.nil? && !meta.empty?
|
87
|
-
meta.each {|k,v| headers["x-amz-meta-#{k}"] = v }
|
90
|
+
meta.each {|k,v| headers["x-amz-meta-#{k}"] = v.to_s }
|
88
91
|
end
|
89
92
|
|
90
93
|
# Let's do it
|
data/lib/uber-s3/version.rb
CHANGED