Set ruby version and add git ignore
Fix truncate issue