{"action":"closed","issue":{"url":"https://api.github.com/repos/varvet/middleman-scavenger/issues/12","repository_url":"https://api.github.com/repos/varvet/middleman-scavenger","labels_url":"https://api.github.com/repos/varvet/middleman-scavenger/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/varvet/middleman-scavenger/issues/12/comments","events_url":"https://api.github.com/repos/varvet/middleman-scavenger/issues/12/events","html_url":"https://github.com/varvet/middleman-scavenger/issues/12","id":151495736,"number":12,"title":"SVG helper options can't be empty","user":{"login":"tlindsay","id":2797532,"avatar_url":"https://avatars.githubusercontent.com/u/2797532?v=3","gravatar_id":"","url":"https://api.github.com/users/tlindsay","html_url":"https://github.com/tlindsay","followers_url":"https://api.github.com/users/tlindsay/followers","following_url":"https://api.github.com/users/tlindsay/following{/other_user}","gists_url":"https://api.github.com/users/tlindsay/gists{/gist_id}","starred_url":"https://api.github.com/users/tlindsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlindsay/subscriptions","organizations_url":"https://api.github.com/users/tlindsay/orgs","repos_url":"https://api.github.com/users/tlindsay/repos","events_url":"https://api.github.com/users/tlindsay/events{/privacy}","received_events_url":"https://api.github.com/users/tlindsay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-27T21:29:56Z","updated_at":"2016-04-28T21:20:11Z","closed_at":"2016-04-28T21:20:11Z","body":"According to IRB:\r\n```\r\nirb(main):001:0> options=nil\r\nnil\r\nirb(main):002:0> defined?(options)\r\n\"local-variable\"\r\n```\r\nThis means that the conditional in the `svg` helper, defined in `lib/middleman-scavenger.rb`, line 46 will always resolve to true. This in turn causes a fatal `undefined method 'map' for nil:nilClass` if no options (such as `class:`) are passed into the helper."}}