zenja/webhdfs-ruby — pull request #1 by joaodrp (2012-03-12 10:09:45+00:00)
Title: A lot of improvements and cleaning, now streaming with net/http for uploads and downloads

Hi,

Here it is. I've cleaned a lot of things and changes too. If you want just the streaming part you can adapt it to your repo version. Although there was a lot of unused things. Also, its better to not mimic python with ruby. As you can see I was able to compress the code a lot. Also the exception handling was not good, I think its better to centralize it. The returned hash was not useful too, as almost always it becomes just as "accepted true/false". I think its better to keep it clean and only raise errors, or return some useful and required object (like in #listdir).

There is a lot of room for improvements although.