Fixes #6191 - pin pry for ruby 1.8 compat

(cherry picked from commit 52a68af1a97aef03115b357451807f75c8a60d9d)
fixes #5879 - minimum of scoped_search 2.7.0 required

(cherry picked from commit 447e48f190cf89f42ff64a967b0b135c30d614f4)