{"action":"created","comment":{"url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/comments/196719625","pull_request_review_id":130324372,"id":196719625,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjcxOTYyNQ==","diff_hunk":"@@ -0,0 +1,38 @@\n+require \"metanorma/processor\"\n+\n+module Metanorma\n+  module Rfc\n+    class ProcessorV2 < Metanorma::Processor\n+\n+      def initialize\n+        @short = :rfc2\n+        @input_format = :asciidoc\n+        @asciidoctor_backend = :rfc2\n+      end\n+\n+      def output_formats\n+        {\n+          xmlrfc: \"v2.xml\"\n+        }\n+      end\n+\n+      def input_to_isodoc(file)\n+        Asciidoctor.convert(\n+          file,\n+          to_file: false,\n+          safe: :safe,\n+          backend: @asciidoctor_backend,\n+          header_footer: true\n+        )\n+      end\n+\n+      def output(isodoc_node, outname, format, options={})\n+        case format\n+        when :xmlrfc\n+          File.open(outname, 'w') { |file| file << isodoc_node }","path":"lib/metanorma/rfc/processor_v2.rb","position":32,"original_position":32,"commit_id":"53f8855deab5e09c77db71c71634d58a587cd8fe","original_commit_id":"53f8855deab5e09c77db71c71634d58a587cd8fe","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2018-06-20T10:08:06Z","updated_at":"2018-06-20T10:08:07Z","html_url":"https://github.com/riboseinc/asciidoctor-rfc/pull/97#discussion_r196719625","pull_request_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/comments/196719625"},"html":{"href":"https://github.com/riboseinc/asciidoctor-rfc/pull/97#discussion_r196719625"},"pull_request":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97","id":196086290,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MDg2Mjkw","html_url":"https://github.com/riboseinc/asciidoctor-rfc/pull/97","diff_url":"https://github.com/riboseinc/asciidoctor-rfc/pull/97.diff","patch_url":"https://github.com/riboseinc/asciidoctor-rfc/pull/97.patch","issue_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/97","number":97,"state":"closed","locked":false,"title":"Update for metanorma 0.2.0","user":{"login":"ronaldtse","id":11865,"node_id":"MDQ6VXNlcjExODY1","avatar_url":"https://avatars1.githubusercontent.com/u/11865?v=4","gravatar_id":"","url":"https://api.github.com/users/ronaldtse","html_url":"https://github.com/ronaldtse","followers_url":"https://api.github.com/users/ronaldtse/followers","following_url":"https://api.github.com/users/ronaldtse/following{/other_user}","gists_url":"https://api.github.com/users/ronaldtse/gists{/gist_id}","starred_url":"https://api.github.com/users/ronaldtse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronaldtse/subscriptions","organizations_url":"https://api.github.com/users/ronaldtse/orgs","repos_url":"https://api.github.com/users/ronaldtse/repos","events_url":"https://api.github.com/users/ronaldtse/events{/privacy}","received_events_url":"https://api.github.com/users/ronaldtse/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-20T10:07:51Z","updated_at":"2018-06-20T10:08:07Z","closed_at":"2018-06-20T10:07:59Z","merged_at":"2018-06-20T10:07:59Z","merge_commit_sha":"fbdb26ea1555ebf6009e3c8ed6f7cb95261df458","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97/commits","review_comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97/comments","review_comment_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/97/comments","statuses_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/statuses/53f8855deab5e09c77db71c71634d58a587cd8fe","head":{"label":"riboseinc:ronaldtse-new-metanorma","ref":"ronaldtse-new-metanorma","sha":"53f8855deab5e09c77db71c71634d58a587cd8fe","user":{"login":"riboseinc","id":24904375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTA0Mzc1","avatar_url":"https://avatars0.githubusercontent.com/u/24904375?v=4","gravatar_id":"","url":"https://api.github.com/users/riboseinc","html_url":"https://github.com/riboseinc","followers_url":"https://api.github.com/users/riboseinc/followers","following_url":"https://api.github.com/users/riboseinc/following{/other_user}","gists_url":"https://api.github.com/users/riboseinc/gists{/gist_id}","starred_url":"https://api.github.com/users/riboseinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riboseinc/subscriptions","organizations_url":"https://api.github.com/users/riboseinc/orgs","repos_url":"https://api.github.com/users/riboseinc/repos","events_url":"https://api.github.com/users/riboseinc/events{/privacy}","received_events_url":"https://api.github.com/users/riboseinc/received_events","type":"Organization","site_admin":false},"repo":{"id":95404862,"node_id":"MDEwOlJlcG9zaXRvcnk5NTQwNDg2Mg==","name":"asciidoctor-rfc","full_name":"riboseinc/asciidoctor-rfc","owner":{"login":"riboseinc","id":24904375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTA0Mzc1","avatar_url":"https://avatars0.githubusercontent.com/u/24904375?v=4","gravatar_id":"","url":"https://api.github.com/users/riboseinc","html_url":"https://github.com/riboseinc","followers_url":"https://api.github.com/users/riboseinc/followers","following_url":"https://api.github.com/users/riboseinc/following{/other_user}","gists_url":"https://api.github.com/users/riboseinc/gists{/gist_id}","starred_url":"https://api.github.com/users/riboseinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riboseinc/subscriptions","organizations_url":"https://api.github.com/users/riboseinc/orgs","repos_url":"https://api.github.com/users/riboseinc/repos","events_url":"https://api.github.com/users/riboseinc/events{/privacy}","received_events_url":"https://api.github.com/users/riboseinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/riboseinc/asciidoctor-rfc","description":"AsciiRFC: an AsciiDoc/asciidoctor backend to produce RFC XML v3 (RFC 7991) and v2 (RFC 7749)","fork":false,"url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc","forks_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/forks","keys_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/teams","hooks_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/hooks","issue_events_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/events{/number}","events_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/events","assignees_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/assignees{/user}","branches_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/branches{/branch}","tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/tags","blobs_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/refs{/sha}","trees_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/statuses/{sha}","languages_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/languages","stargazers_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/stargazers","contributors_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/contributors","subscribers_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/subscribers","subscription_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/subscription","commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/commits{/sha}","git_commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/commits{/sha}","comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/comments{/number}","issue_comment_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/comments{/number}","contents_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/contents/{+path}","compare_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/merges","archive_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/downloads","issues_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues{/number}","pulls_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls{/number}","milestones_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/milestones{/number}","notifications_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/labels{/name}","releases_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/releases{/id}","deployments_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/deployments","created_at":"2017-06-26T03:26:22Z","updated_at":"2018-06-20T10:08:00Z","pushed_at":"2018-06-20T10:07:58Z","git_url":"git://github.com/riboseinc/asciidoctor-rfc.git","ssh_url":"git@github.com:riboseinc/asciidoctor-rfc.git","clone_url":"https://github.com/riboseinc/asciidoctor-rfc.git","svn_url":"https://github.com/riboseinc/asciidoctor-rfc","homepage":"","size":1136,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":1,"open_issues":7,"watchers":5,"default_branch":"master"}},"base":{"label":"riboseinc:master","ref":"master","sha":"d67b83cc281350e8b02db7d7d8062890ce5b139f","user":{"login":"riboseinc","id":24904375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTA0Mzc1","avatar_url":"https://avatars0.githubusercontent.com/u/24904375?v=4","gravatar_id":"","url":"https://api.github.com/users/riboseinc","html_url":"https://github.com/riboseinc","followers_url":"https://api.github.com/users/riboseinc/followers","following_url":"https://api.github.com/users/riboseinc/following{/other_user}","gists_url":"https://api.github.com/users/riboseinc/gists{/gist_id}","starred_url":"https://api.github.com/users/riboseinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riboseinc/subscriptions","organizations_url":"https://api.github.com/users/riboseinc/orgs","repos_url":"https://api.github.com/users/riboseinc/repos","events_url":"https://api.github.com/users/riboseinc/events{/privacy}","received_events_url":"https://api.github.com/users/riboseinc/received_events","type":"Organization","site_admin":false},"repo":{"id":95404862,"node_id":"MDEwOlJlcG9zaXRvcnk5NTQwNDg2Mg==","name":"asciidoctor-rfc","full_name":"riboseinc/asciidoctor-rfc","owner":{"login":"riboseinc","id":24904375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTA0Mzc1","avatar_url":"https://avatars0.githubusercontent.com/u/24904375?v=4","gravatar_id":"","url":"https://api.github.com/users/riboseinc","html_url":"https://github.com/riboseinc","followers_url":"https://api.github.com/users/riboseinc/followers","following_url":"https://api.github.com/users/riboseinc/following{/other_user}","gists_url":"https://api.github.com/users/riboseinc/gists{/gist_id}","starred_url":"https://api.github.com/users/riboseinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riboseinc/subscriptions","organizations_url":"https://api.github.com/users/riboseinc/orgs","repos_url":"https://api.github.com/users/riboseinc/repos","events_url":"https://api.github.com/users/riboseinc/events{/privacy}","received_events_url":"https://api.github.com/users/riboseinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/riboseinc/asciidoctor-rfc","description":"AsciiRFC: an AsciiDoc/asciidoctor backend to produce RFC XML v3 (RFC 7991) and v2 (RFC 7749)","fork":false,"url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc","forks_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/forks","keys_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/teams","hooks_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/hooks","issue_events_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/events{/number}","events_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/events","assignees_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/assignees{/user}","branches_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/branches{/branch}","tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/tags","blobs_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/refs{/sha}","trees_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/statuses/{sha}","languages_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/languages","stargazers_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/stargazers","contributors_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/contributors","subscribers_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/subscribers","subscription_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/subscription","commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/commits{/sha}","git_commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/git/commits{/sha}","comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/comments{/number}","issue_comment_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/comments{/number}","contents_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/contents/{+path}","compare_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/merges","archive_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/downloads","issues_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues{/number}","pulls_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls{/number}","milestones_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/milestones{/number}","notifications_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/labels{/name}","releases_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/releases{/id}","deployments_url":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/deployments","created_at":"2017-06-26T03:26:22Z","updated_at":"2018-06-20T10:08:00Z","pushed_at":"2018-06-20T10:07:58Z","git_url":"git://github.com/riboseinc/asciidoctor-rfc.git","ssh_url":"git@github.com:riboseinc/asciidoctor-rfc.git","clone_url":"https://github.com/riboseinc/asciidoctor-rfc.git","svn_url":"https://github.com/riboseinc/asciidoctor-rfc","homepage":"","size":1136,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":1,"open_issues":7,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97"},"html":{"href":"https://github.com/riboseinc/asciidoctor-rfc/pull/97"},"issue":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/97"},"comments":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-rfc/statuses/53f8855deab5e09c77db71c71634d58a587cd8fe"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}