Sharepoint upload file by ruby script

I have a sharepoint space on workstation.

I should update documents to sharepoint every day, so I want to create a

ruby script to link sharepoint and it can auto upload/download file.

I google and try savon and http link, but all can’t succeed.

Does somebody have the experience?

Thanks a lot.