fixes #5214 - pin ancestry for Ruby 1.8 compatibility

(cherry picked from commit 18e392f2eb6f568d0291d0037a3a87caf050ca5a)