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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  class UberS3
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uber-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: