Fixed objectSummaries

Fixed bug with objectSummaries. Now, more than 1000 summaries can be
returned.   To avoid memory issues, this version returns a stream.  Of
course, that stream can be converted to a list. Addresses #29 ans #32 
Tests are good, but I'm short of time right now. —
Sent from Mailbox

On Tue, Jun 10, 2014 at 4:14 PM, Kazuhiro Sera <notifications@github.com>
wrote:

>> @@ -102,12 +103,39 @@ trait S3 extends aws.AmazonS3 {
>>    def metadata(bucket: Bucket, key: String) = getObjectMetadata(bucket.name, key)
>>  
>>    // listObjects
>> -  def objectSummaries(bucket: Bucket): Seq[S3ObjectSummary] = {
>> -    listObjects(bucket.name).getObjectSummaries.asScala.map(s => S3ObjectSummary(bucket, s)).toSeq
>> -  }
>> -
>> -  def objectSummaries(bucket: Bucket, prefix: String): Seq[S3ObjectSummary] = {
>> -    listObjects(bucket.name, prefix).getObjectSummaries.asScala.map(s => S3ObjectSummary(bucket, s)).toSeq
>> +  def objectSummaries(bucket: Bucket): Seq[S3ObjectSummary] = objectSummaries(bucket, "")
>> +
>> +  def objectSummaries(bucket: Bucket, prefix: String): Stream[S3ObjectSummary] = {
> Though this code basically looks good to me, would you write a test which creates more than 1000 objects and gets object summaries?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/seratch/AWScala/pull/31/files#r13625558