add rubocop
update ruby version
update gems
rubocop fixes
bump version to 4.0.0