Read .ruby-version and .ruby-gemset files in Ruby.