switch to common ruby version specification

.ruby-version is supported by all major Ruby version managers: RVM, rbenv, chruby, etc.

This pull request also updates the JRuby version but all of the tests still pass.