Fixes #6534 - rest-client > 1.7 does not support ruby 1.8