made curl timeout an optionally configurable parameter

Made curl timeout configurable (optionally)
Bumped up the ruby version