add optional pre_releases argument to gem.install
Merge pull request #14474 from robmessick/issue14469

add optional pre_releases argument to gem.install