johnnyhalife / waz-storage

A simple implementation of Windows Azure Storage API for Ruby, inspired by the S3 gems and self experience of dealing with queues. The major goal of the whole gem is to enable ruby developers [like me =)] to leverage Windows Azure Storage features and have another option for cloud storage.
http://waz-storage.heroku.com
MIT License
40 stars 21 forks source link

Add statistics #26

Closed masahiro-nakajima closed 11 years ago

masahiro-nakajima commented 11 years ago

Hello.

I couldn't get over 5,000 blobs using this gem.

Because List Blobs API is limited to 5,000 items.

http://msdn.microsoft.com/en-us/library/windowsazure/dd135734.aspx

To get over 5,000 blobs requires 'marker' option which is returned by List Blobs API.

I only need size of blobs within a container for now, so I add 'WAZ::Blobs::Container#statistics' and 'WAZ::Blobs::Service#statistics'. which sums size of blobs within a container partially.

Please let this branch pull into your repository or fix this issue in other way.

Best Regards,

johnnyhalife commented 11 years ago

hi @masahiro-nakajima , thanks for your contributions it's published as 1.3.0 on Rubygems.org

masahiro-nakajima commented 11 years ago

Thank you very much! @johnnyhalife