lib/s3repo/client.rb in s3repo-0.3.4 vs lib/s3repo/client.rb in s3repo-1.0.0

- old
+ new

@@ -13,10 +13,10 @@ @api.respond_to?(method, include_all) || super end def upload!(key, path) puts "Uploading #{key}" - put_object key: key, body: File.open(path) { |fh| fh.read } + put_object key: key, body: File.open(path), &:read end private def method_missing(method, *args, &block)