Add ruby version to Gemfile
Fix strange whitespace
Guard against blank keys