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

Allow '$root' as valid container name #38

Closed samirahmed closed 11 years ago

samirahmed commented 11 years ago

Azure Blob Storage allows us to create and manipulate the root container. This is can be very handy.

Currently WAZ::Blob has no problem finding and querying the root container (addressed with the name $root) however it errs on Container.create as the validation helper doesn't permit special characters

To accommodate this, I split the valid_name helper into valid_container_name and valid_queue_name and update all references. The previous rules still hold with the one exception for containers called $root.

Tests to validate this are included

johnnyhalife commented 11 years ago

Hi @samirahmed,

Thanks for your contributions! I'm merging and it will be published as waz-storage 1.3.7.

thanks, ~johnny