As for reinventing the wheel, which library are you missing? I'm skeptical you cannot find a good library for your need.
You might not have the "automated tests" you are looking for, but maybe the library has been field tests for ten years which beats any automated test.
The real downside is that you cannot install libraries has easily as in "gem install library".