{"action":"created","comment":{"url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/comments/138007896","pull_request_review_id":61746770,"id":138007896,"diff_hunk":"@@ -0,0 +1,27 @@\n+require 'asciidoctor/attribute_list'\n+\n+module AsciidoctorBibliography\n+  class CitationItem\n+    attr_accessor :key, :target, :positional_attributes, :named_attributes, :locators\n+\n+    def initialize\n+      yield self if block_given?\n+    end\n+\n+    def locators\n+      Helpers\n+        .slice(named_attributes || {}, *CiteProc::CitationItem.labels.map(&:to_s))\n+        .reject! { |_, value| value.nil? || value.empty? } # equivalent to Hash#compact\n+    end\n+\n+    def parse_attribute_list(attributes)\n+      parsed_attributes =\n+        ::Asciidoctor::AttributeList.new(attributes).parse\n+                                    .group_by { |hash_key, _| hash_key.is_a? Integer }","path":"lib/asciidoctor-bibliography/citation_item.rb","position":20,"original_position":20,"commit_id":"8e67dd9126cb028061de34f52bc80f7f1ae95afa","original_commit_id":"8e67dd9126cb028061de34f52bc80f7f1ae95afa","user":{"login":"houndci-bot","id":6697940,"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":"Line is too long. [86/80]","created_at":"2017-09-11T08:29:58Z","updated_at":"2017-09-11T08:30:00Z","html_url":"https://github.com/riboseinc/asciidoctor-bibliography/pull/25#discussion_r138007896","pull_request_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/comments/138007896"},"html":{"href":"https://github.com/riboseinc/asciidoctor-bibliography/pull/25#discussion_r138007896"},"pull_request":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25","id":140276400,"html_url":"https://github.com/riboseinc/asciidoctor-bibliography/pull/25","diff_url":"https://github.com/riboseinc/asciidoctor-bibliography/pull/25.diff","patch_url":"https://github.com/riboseinc/asciidoctor-bibliography/pull/25.patch","issue_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/25","number":25,"state":"closed","locked":false,"title":"True CSL citations","user":{"login":"ronaldtse","id":11865,"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":"2017-09-11T08:29:45Z","updated_at":"2017-09-11T08:30:01Z","closed_at":"2017-09-11T08:29:58Z","merged_at":"2017-09-11T08:29:58Z","merge_commit_sha":"af6c10ec20b197fd153c2be07f47a7d4d4e76a25","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25/commits","review_comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25/comments","review_comment_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/comments{/number}","comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/25/comments","statuses_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/statuses/8e67dd9126cb028061de34f52bc80f7f1ae95afa","head":{"label":"riboseinc:paolobrasolin-true-csl-citations","ref":"paolobrasolin-true-csl-citations","sha":"8e67dd9126cb028061de34f52bc80f7f1ae95afa","user":{"login":"riboseinc","id":24904375,"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":97697921,"name":"asciidoctor-bibliography","full_name":"riboseinc/asciidoctor-bibliography","owner":{"login":"riboseinc","id":24904375,"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-bibliography","description":"Citations in AsciiDoc","fork":false,"url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography","forks_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/forks","keys_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/teams","hooks_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/hooks","issue_events_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/events{/number}","events_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/events","assignees_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/assignees{/user}","branches_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/branches{/branch}","tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/tags","blobs_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/refs{/sha}","trees_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/statuses/{sha}","languages_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/languages","stargazers_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/stargazers","contributors_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/contributors","subscribers_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/subscribers","subscription_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/subscription","commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/commits{/sha}","git_commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/commits{/sha}","comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/comments{/number}","issue_comment_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/comments{/number}","contents_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/contents/{+path}","compare_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/merges","archive_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/downloads","issues_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues{/number}","pulls_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls{/number}","milestones_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/milestones{/number}","notifications_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/labels{/name}","releases_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/releases{/id}","deployments_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/deployments","created_at":"2017-07-19T09:22:39Z","updated_at":"2017-08-21T04:36:09Z","pushed_at":"2017-09-11T08:29:58Z","git_url":"git://github.com/riboseinc/asciidoctor-bibliography.git","ssh_url":"git@github.com:riboseinc/asciidoctor-bibliography.git","clone_url":"https://github.com/riboseinc/asciidoctor-bibliography.git","svn_url":"https://github.com/riboseinc/asciidoctor-bibliography","homepage":"","size":109,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"riboseinc:master","ref":"master","sha":"ee6463219a9238b3f6b34d027c7237e062e2a005","user":{"login":"riboseinc","id":24904375,"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":97697921,"name":"asciidoctor-bibliography","full_name":"riboseinc/asciidoctor-bibliography","owner":{"login":"riboseinc","id":24904375,"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-bibliography","description":"Citations in AsciiDoc","fork":false,"url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography","forks_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/forks","keys_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/teams","hooks_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/hooks","issue_events_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/events{/number}","events_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/events","assignees_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/assignees{/user}","branches_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/branches{/branch}","tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/tags","blobs_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/refs{/sha}","trees_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/statuses/{sha}","languages_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/languages","stargazers_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/stargazers","contributors_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/contributors","subscribers_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/subscribers","subscription_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/subscription","commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/commits{/sha}","git_commits_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/git/commits{/sha}","comments_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/comments{/number}","issue_comment_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/comments{/number}","contents_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/contents/{+path}","compare_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/merges","archive_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/downloads","issues_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues{/number}","pulls_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls{/number}","milestones_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/milestones{/number}","notifications_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/labels{/name}","releases_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/releases{/id}","deployments_url":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/deployments","created_at":"2017-07-19T09:22:39Z","updated_at":"2017-08-21T04:36:09Z","pushed_at":"2017-09-11T08:29:58Z","git_url":"git://github.com/riboseinc/asciidoctor-bibliography.git","ssh_url":"git@github.com:riboseinc/asciidoctor-bibliography.git","clone_url":"https://github.com/riboseinc/asciidoctor-bibliography.git","svn_url":"https://github.com/riboseinc/asciidoctor-bibliography","homepage":"","size":109,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25"},"html":{"href":"https://github.com/riboseinc/asciidoctor-bibliography/pull/25"},"issue":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/25"},"comments":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/riboseinc/asciidoctor-bibliography/statuses/8e67dd9126cb028061de34f52bc80f7f1ae95afa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}