Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed formatting, bumped version

  • Loading branch information...
commit 570ab5030bb6f03f839561def3accb6a812a2353 1 parent b7d3ce4
@qoobaa authored
View
2  Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- s3 (0.3.10)
+ s3 (0.3.11)
proxies (~> 0.2.0)
GEM
View
2  lib/s3/object.rb
@@ -235,7 +235,7 @@ def dump_headers
end
def parse_headers(response)
- @metadata = response.to_hash.select{|k,v| k.to_s.start_with?('x-amz-meta') }
+ @metadata = response.to_hash.select { |k, v| k.to_s.start_with?("x-amz-meta") }
self.etag = response["etag"] if response.key?("etag")
self.content_type = response["content-type"] if response.key?("content-type")
self.content_disposition = response["content-disposition"] if response.key?("content-disposition")
View
2  lib/s3/version.rb
@@ -1,3 +1,3 @@
module S3
- VERSION = "0.3.10"
+ VERSION = "0.3.11"
end
View
4 test/object_test.rb
@@ -22,7 +22,7 @@ def setup
@response_binary["content-encoding"] = nil
@response_binary["last-modified"] = Time.now.httpdate
@response_binary["content-length"] = 20
- @response_binary["x-amz-meta-test"] = 'metadata'
+ @response_binary["x-amz-meta-test"] = "metadata"
@xml_body = <<-EOXML
<?xml version="1.0" encoding="UTF-8"?>
@@ -137,7 +137,7 @@ def setup
@object_lena.expects(:object_request).twice.with(:head, {}).returns(@response_binary)
assert @object_lena.retrieve
- meta = {"x-amz-meta-test"=>["metadata"]}
+ meta = {"x-amz-meta-test" => ["metadata"]}
assert_equal meta, @object_lena.retrieve.metadata
end
Please sign in to comment.
Something went wrong with that request. Please try again.