fix formatting per rubocop suggestions

Exceptions to rubocop defaults:
- use raise instead of fail to signal exception
- disabled documentation requirement
- excluded spec/dummy folder