From 8cab3723a83c7ee692f8ffa877808b4b4c44b8ab Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Fri, 18 Dec 2009 18:13:46 -0800 Subject: [PATCH] fixes for CHUNK_SIZE constant location and readme. Thanks indirect --- README.rdoc | 2 +- lib/fog/aws/requests/s3/get_object.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rdoc b/README.rdoc index 2a6efb755..a14db6001 100644 --- a/README.rdoc +++ b/README.rdoc @@ -41,7 +41,7 @@ fog helps you interact with cloud services. fog is a work in progress. # models bucket = s3.buckets.create(:name => 'bucketname') - bucket.objects.create(:name => 'objectname', :body => 'objectbody') + bucket.objects.create(:key => 'objectname', :body => 'objectbody') bucket = s3.buckets.get('bucketname') object = bucket.objects.get('objectname') diff --git a/lib/fog/aws/requests/s3/get_object.rb b/lib/fog/aws/requests/s3/get_object.rb index 19630fdaf..54e259f54 100644 --- a/lib/fog/aws/requests/s3/get_object.rb +++ b/lib/fog/aws/requests/s3/get_object.rb @@ -101,9 +101,9 @@ else data = StringIO.new(object[:body]) remaining = data.length while remaining > 0 - chunk = data.read([remaining, Fog::Connection::CHUNK_SIZE].min) + chunk = data.read([remaining, Excon::CHUNK_SIZE].min) block.call(chunk) - remaining -= Fog::Connection::CHUNK_SIZE + remaining -= Excon::CHUNK_SIZE end end end