{"action":"created","comment":{"url":"https://api.github.com/repos/crystal-lang/crystal/pulls/comments/179870444","pull_request_review_id":110202163,"id":179870444,"diff_hunk":"@@ -52,7 +52,7 @@ class INI\n       end\n     end\n \n-    ini.delete_if { |_, v| v.empty? }\n+    ini.delete_if { |k, v| k.empty? && v.empty? }","path":"src/ini.cr","position":5,"original_position":5,"commit_id":"39d8861613d1d8ab6a938787a67305e0db37525f","original_commit_id":"39d8861613d1d8ab6a938787a67305e0db37525f","user":{"login":"straight-shoota","id":466378,"avatar_url":"https://avatars0.githubusercontent.com/u/466378?v=4","gravatar_id":"","url":"https://api.github.com/users/straight-shoota","html_url":"https://github.com/straight-shoota","followers_url":"https://api.github.com/users/straight-shoota/followers","following_url":"https://api.github.com/users/straight-shoota/following{/other_user}","gists_url":"https://api.github.com/users/straight-shoota/gists{/gist_id}","starred_url":"https://api.github.com/users/straight-shoota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/straight-shoota/subscriptions","organizations_url":"https://api.github.com/users/straight-shoota/orgs","repos_url":"https://api.github.com/users/straight-shoota/repos","events_url":"https://api.github.com/users/straight-shoota/events{/privacy}","received_events_url":"https://api.github.com/users/straight-shoota/received_events","type":"User","site_admin":false},"body":"It essentially removes the default section if it is empty. Don't know if that's needed. But if so, it could be simplified to this single case.","created_at":"2018-04-06T20:40:11Z","updated_at":"2018-04-06T20:40:11Z","html_url":"https://github.com/crystal-lang/crystal/pull/5718#discussion_r179870444","pull_request_url":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/crystal-lang/crystal/pulls/comments/179870444"},"html":{"href":"https://github.com/crystal-lang/crystal/pull/5718#discussion_r179870444"},"pull_request":{"href":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718"}},"in_reply_to_id":179866343},"pull_request":{"url":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718","id":168894581,"html_url":"https://github.com/crystal-lang/crystal/pull/5718","diff_url":"https://github.com/crystal-lang/crystal/pull/5718.diff","patch_url":"https://github.com/crystal-lang/crystal/pull/5718.patch","issue_url":"https://api.github.com/repos/crystal-lang/crystal/issues/5718","number":5718,"state":"open","locked":false,"title":"Keep empty sections when parsing INI","user":{"login":"j8r","id":6562667,"avatar_url":"https://avatars0.githubusercontent.com/u/6562667?v=4","gravatar_id":"","url":"https://api.github.com/users/j8r","html_url":"https://github.com/j8r","followers_url":"https://api.github.com/users/j8r/followers","following_url":"https://api.github.com/users/j8r/following{/other_user}","gists_url":"https://api.github.com/users/j8r/gists{/gist_id}","starred_url":"https://api.github.com/users/j8r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j8r/subscriptions","organizations_url":"https://api.github.com/users/j8r/orgs","repos_url":"https://api.github.com/users/j8r/repos","events_url":"https://api.github.com/users/j8r/events{/privacy}","received_events_url":"https://api.github.com/users/j8r/received_events","type":"User","site_admin":false},"body":"Parsing an INI file with only `[section]` returns now `{\"section\" => {}}` instead of an empty Hash.","created_at":"2018-02-13T16:36:14Z","updated_at":"2018-04-06T20:40:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6db988b6dd940373ca5083a379c21e965d574e09","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718/commits","review_comments_url":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718/comments","review_comment_url":"https://api.github.com/repos/crystal-lang/crystal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/5718/comments","statuses_url":"https://api.github.com/repos/crystal-lang/crystal/statuses/39d8861613d1d8ab6a938787a67305e0db37525f","head":{"label":"j8r:keep_empty_ini_sections","ref":"keep_empty_ini_sections","sha":"39d8861613d1d8ab6a938787a67305e0db37525f","user":{"login":"j8r","id":6562667,"avatar_url":"https://avatars0.githubusercontent.com/u/6562667?v=4","gravatar_id":"","url":"https://api.github.com/users/j8r","html_url":"https://github.com/j8r","followers_url":"https://api.github.com/users/j8r/followers","following_url":"https://api.github.com/users/j8r/following{/other_user}","gists_url":"https://api.github.com/users/j8r/gists{/gist_id}","starred_url":"https://api.github.com/users/j8r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j8r/subscriptions","organizations_url":"https://api.github.com/users/j8r/orgs","repos_url":"https://api.github.com/users/j8r/repos","events_url":"https://api.github.com/users/j8r/events{/privacy}","received_events_url":"https://api.github.com/users/j8r/received_events","type":"User","site_admin":false},"repo":{"id":109133637,"name":"crystal","full_name":"j8r/crystal","owner":{"login":"j8r","id":6562667,"avatar_url":"https://avatars0.githubusercontent.com/u/6562667?v=4","gravatar_id":"","url":"https://api.github.com/users/j8r","html_url":"https://github.com/j8r","followers_url":"https://api.github.com/users/j8r/followers","following_url":"https://api.github.com/users/j8r/following{/other_user}","gists_url":"https://api.github.com/users/j8r/gists{/gist_id}","starred_url":"https://api.github.com/users/j8r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j8r/subscriptions","organizations_url":"https://api.github.com/users/j8r/orgs","repos_url":"https://api.github.com/users/j8r/repos","events_url":"https://api.github.com/users/j8r/events{/privacy}","received_events_url":"https://api.github.com/users/j8r/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/j8r/crystal","description":"The Crystal Programming Language","fork":true,"url":"https://api.github.com/repos/j8r/crystal","forks_url":"https://api.github.com/repos/j8r/crystal/forks","keys_url":"https://api.github.com/repos/j8r/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j8r/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j8r/crystal/teams","hooks_url":"https://api.github.com/repos/j8r/crystal/hooks","issue_events_url":"https://api.github.com/repos/j8r/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/j8r/crystal/events","assignees_url":"https://api.github.com/repos/j8r/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/j8r/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/j8r/crystal/tags","blobs_url":"https://api.github.com/repos/j8r/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j8r/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j8r/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/j8r/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j8r/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/j8r/crystal/languages","stargazers_url":"https://api.github.com/repos/j8r/crystal/stargazers","contributors_url":"https://api.github.com/repos/j8r/crystal/contributors","subscribers_url":"https://api.github.com/repos/j8r/crystal/subscribers","subscription_url":"https://api.github.com/repos/j8r/crystal/subscription","commits_url":"https://api.github.com/repos/j8r/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/j8r/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/j8r/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/j8r/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/j8r/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/j8r/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j8r/crystal/merges","archive_url":"https://api.github.com/repos/j8r/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j8r/crystal/downloads","issues_url":"https://api.github.com/repos/j8r/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/j8r/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/j8r/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/j8r/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j8r/crystal/labels{/name}","releases_url":"https://api.github.com/repos/j8r/crystal/releases{/id}","deployments_url":"https://api.github.com/repos/j8r/crystal/deployments","created_at":"2017-11-01T13:16:53Z","updated_at":"2017-11-01T13:16:58Z","pushed_at":"2018-03-21T15:37:19Z","git_url":"git://github.com/j8r/crystal.git","ssh_url":"git@github.com:j8r/crystal.git","clone_url":"https://github.com/j8r/crystal.git","svn_url":"https://github.com/j8r/crystal","homepage":"https://crystal-lang.org","size":36331,"stargazers_count":0,"watchers_count":0,"language":"Crystal","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crystal-lang:master","ref":"master","sha":"91a025fcaffd505ffdaaac90e653f39e632226bc","user":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":6887813,"name":"crystal","full_name":"crystal-lang/crystal","owner":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crystal-lang/crystal","description":"The Crystal Programming Language","fork":false,"url":"https://api.github.com/repos/crystal-lang/crystal","forks_url":"https://api.github.com/repos/crystal-lang/crystal/forks","keys_url":"https://api.github.com/repos/crystal-lang/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crystal-lang/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crystal-lang/crystal/teams","hooks_url":"https://api.github.com/repos/crystal-lang/crystal/hooks","issue_events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/crystal-lang/crystal/events","assignees_url":"https://api.github.com/repos/crystal-lang/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/crystal-lang/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/crystal-lang/crystal/tags","blobs_url":"https://api.github.com/repos/crystal-lang/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crystal-lang/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crystal-lang/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/crystal-lang/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crystal-lang/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/crystal-lang/crystal/languages","stargazers_url":"https://api.github.com/repos/crystal-lang/crystal/stargazers","contributors_url":"https://api.github.com/repos/crystal-lang/crystal/contributors","subscribers_url":"https://api.github.com/repos/crystal-lang/crystal/subscribers","subscription_url":"https://api.github.com/repos/crystal-lang/crystal/subscription","commits_url":"https://api.github.com/repos/crystal-lang/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/crystal-lang/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/crystal-lang/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/crystal-lang/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/crystal-lang/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crystal-lang/crystal/merges","archive_url":"https://api.github.com/repos/crystal-lang/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crystal-lang/crystal/downloads","issues_url":"https://api.github.com/repos/crystal-lang/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/crystal-lang/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/crystal-lang/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/crystal-lang/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crystal-lang/crystal/labels{/name}","releases_url":"https://api.github.com/repos/crystal-lang/crystal/releases{/id}","deployments_url":"https://api.github.com/repos/crystal-lang/crystal/deployments","created_at":"2012-11-27T17:32:32Z","updated_at":"2018-04-06T18:55:43Z","pushed_at":"2018-04-06T20:31:37Z","git_url":"git://github.com/crystal-lang/crystal.git","ssh_url":"git@github.com:crystal-lang/crystal.git","clone_url":"https://github.com/crystal-lang/crystal.git","svn_url":"https://github.com/crystal-lang/crystal","homepage":"https://crystal-lang.org","size":36442,"stargazers_count":10465,"watchers_count":10465,"language":"Crystal","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":840,"mirror_url":null,"archived":false,"open_issues_count":684,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":840,"open_issues":684,"watchers":10465,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718"},"html":{"href":"https://github.com/crystal-lang/crystal/pull/5718"},"issue":{"href":"https://api.github.com/repos/crystal-lang/crystal/issues/5718"},"comments":{"href":"https://api.github.com/repos/crystal-lang/crystal/issues/5718/comments"},"review_comments":{"href":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718/comments"},"review_comment":{"href":"https://api.github.com/repos/crystal-lang/crystal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crystal-lang/crystal/pulls/5718/commits"},"statuses":{"href":"https://api.github.com/repos/crystal-lang/crystal/statuses/39d8861613d1d8ab6a938787a67305e0db37525f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"straight-shoota"}}