{"action":"closed","issue":{"url":"https://api.github.com/repos/whitequark/parser/issues/286","repository_url":"https://api.github.com/repos/whitequark/parser","labels_url":"https://api.github.com/repos/whitequark/parser/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/whitequark/parser/issues/286/comments","events_url":"https://api.github.com/repos/whitequark/parser/issues/286/events","html_url":"https://github.com/whitequark/parser/issues/286","id":151229291,"number":286,"title":"Option to not dump warnings to stderr","user":{"login":"chrismwendt","id":1387653,"avatar_url":"https://avatars.githubusercontent.com/u/1387653?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismwendt","html_url":"https://github.com/chrismwendt","followers_url":"https://api.github.com/users/chrismwendt/followers","following_url":"https://api.github.com/users/chrismwendt/following{/other_user}","gists_url":"https://api.github.com/users/chrismwendt/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismwendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismwendt/subscriptions","organizations_url":"https://api.github.com/users/chrismwendt/orgs","repos_url":"https://api.github.com/users/chrismwendt/repos","events_url":"https://api.github.com/users/chrismwendt/events{/privacy}","received_events_url":"https://api.github.com/users/chrismwendt/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-26T20:18:28Z","updated_at":"2016-04-26T20:21:46Z","closed_at":"2016-04-26T20:21:46Z","body":"In many cases, the warnings about version-compliant syntax can be safely ignored, but parser doesn't seem to support disabling or handling them in any other way than to redirect stderr when `require`ing the gem. This has led me to an ugly workaround:\r\n\r\nhttps://github.com/chrismwendt/autoargs/commit/474546cf29ba0e31a15bb641a0e5ecd83f7254f4\r\n\r\nHere are a couple options:\r\n\r\n- Add a parameter to `parse` which disables warnings\r\n- Return a hash containing both the parse result and any warnings that were emitted"}}