upgrade ruby version
small code format changes