[Gem Version] Fix warning in 1.8.7