Fix rubocop Ruby warnings and improve metadata