move ruby version control to lib