{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1269","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1269/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1269/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1269/events","html_url":"https://github.com/asciidoctor/asciidoctor/issues/1269","id":54478907,"number":1269,"title":"How to set the 'quiet' option on the Ruby API","user":{"login":"rebelwarrior","id":839013,"avatar_url":"https://avatars.githubusercontent.com/u/839013?v=3","gravatar_id":"","url":"https://api.github.com/users/rebelwarrior","html_url":"https://github.com/rebelwarrior","followers_url":"https://api.github.com/users/rebelwarrior/followers","following_url":"https://api.github.com/users/rebelwarrior/following{/other_user}","gists_url":"https://api.github.com/users/rebelwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/rebelwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebelwarrior/subscriptions","organizations_url":"https://api.github.com/users/rebelwarrior/orgs","repos_url":"https://api.github.com/users/rebelwarrior/repos","events_url":"https://api.github.com/users/rebelwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/rebelwarrior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T17:30:18Z","updated_at":"2015-01-15T18:59:56Z","closed_at":null,"body":"I have not been able to figure out how to set the quiet option to suppress the warnings on the outputs. \r\nI've tried this:\r\n`Asciidoctor.convert string, safe: 'safe', verbose: 0, quiet: true`\r\nNeither of these options seem to work\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/comments/70140821","html_url":"https://github.com/asciidoctor/asciidoctor/issues/1269#issuecomment-70140821","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/1269","id":70140821,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T18:59:56Z","updated_at":"2015-01-15T18:59:56Z","body":"That option isn't currently available via the Ruby API. However, you can perform the work that the commandline option performs, which you can see here.\r\n\r\n* https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/cli/options.rb#L116\r\n* https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/cli/invoker.rb#L35\r\n\r\nThe long story short is that the reason we can't offer the option on the Ruby API yet is because the current strategy is to set a global variable that disables all warning statements in Ruby. In order to have fine-grained control, we first need to resolve #44."}}