Remove redundant braces.
Avoid the use of Perl-style backrefs.

Rubocop(tm).
Replace `and` and `or` with `&&` and  `||`.
Fix syntax error. Whoops.

--HG--
extra : amend_source : 209d18c3bfd889264ee5f5dc9998458d08d5ce55
Unify block styling.

Courtesy rubocop.
Simplify get_ip_ban method.
Refactor of check_ip_ban.
Replace `if !` with `unless`.

Rubocop(tm).
suppress instead of noop rescue.
Refactor BlocksController.
Refactor, remove redundant and unused assignments.
Remove unused variable.
Remove unused assignment.
Remove unused assignment.
Fix useless assignment.
Remove useless assignment.
Chain gsub calls instead of repeating assign-call-assign.
Refactor artist url normalize.

Less variable assignment.
Remove useless assignment.
suppress instead of noop rescue.