Fix rubocop offenses
Merge pull request #29 from torandu/rubocop-fixup

Fix rubocop offenses (skipping 1 offense for excessive block nesting)