Update Ruby version
Add various settings
Fix bug