Support for the Ruby 2.2 series has ended. See here for reference.
This Gem::StreamUI subclass records input and output to StringIO for retrieval during tests.
# File rubygems/mock_gem_ui.rb, line 58 def ask question raise InputEOFError, question if @ins.eof? super end