add canonical redirect exception for Ruby user agent

This does the same thing that our internal cookbook does to avoid failing on redirects on `knife cookbook site share`.