Fix Travis-CI Build failed

WARNING: variable not enclosed in {} on line 159
ERROR: tab character found on line 176
ERROR: two-space soft tabs not used on line 176
WARNING: indentation of => is not properly aligned on line 176
rake aborted!