Fix #165; fix RuboCop errors and pin version of RuboCop
oops, wrong version number
Merge branch 'master' into hash-dos