{"action":"created","comment":{"url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/comments/175109374","pull_request_review_id":104589675,"id":175109374,"diff_hunk":"@@ -0,0 +1,36 @@\n+require \"spec_helper\"","path":"spec/core_ext/hash_replace_key_spec.rb","position":1,"original_position":1,"commit_id":"374055fc3521669d2d9f33b882c98808f31070a6","original_commit_id":"374055fc3521669d2d9f33b882c98808f31070a6","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":"Missing magic comment # frozen_string_literal: true.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2018-03-16T14:36:49Z","updated_at":"2018-03-16T14:36:50Z","html_url":"https://github.com/nickcharlton/atlas-ruby/pull/12#discussion_r175109374","pull_request_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/comments/175109374"},"html":{"href":"https://github.com/nickcharlton/atlas-ruby/pull/12#discussion_r175109374"},"pull_request":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12","id":175551189,"html_url":"https://github.com/nickcharlton/atlas-ruby/pull/12","diff_url":"https://github.com/nickcharlton/atlas-ruby/pull/12.diff","patch_url":"https://github.com/nickcharlton/atlas-ruby/pull/12.patch","issue_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/12","number":12,"state":"open","locked":false,"title":"Rename keys in-place to avoid assigning nil.","user":{"login":"nickcharlton","id":11917,"avatar_url":"https://avatars1.githubusercontent.com/u/11917?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcharlton","html_url":"https://github.com/nickcharlton","followers_url":"https://api.github.com/users/nickcharlton/followers","following_url":"https://api.github.com/users/nickcharlton/following{/other_user}","gists_url":"https://api.github.com/users/nickcharlton/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcharlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcharlton/subscriptions","organizations_url":"https://api.github.com/users/nickcharlton/orgs","repos_url":"https://api.github.com/users/nickcharlton/repos","events_url":"https://api.github.com/users/nickcharlton/events{/privacy}","received_events_url":"https://api.github.com/users/nickcharlton/received_events","type":"User","site_admin":false},"body":"Some attributes on initial creation have different names when updating\r\nan existing resource. Previously, we were assigning regardless of\r\nwhether or not a value in the collection existed, which meant that often\r\nwe'd pass `nil` on submission.\r\n\r\nThis avoids doing that by renaming the key if it exists instead.","created_at":"2018-03-16T14:36:36Z","updated_at":"2018-03-16T14:36:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02de60969b4543aca5301d22fcf08ab5b9f87730","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12/commits","review_comments_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12/comments","review_comment_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/12/comments","statuses_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/statuses/374055fc3521669d2d9f33b882c98808f31070a6","head":{"label":"nickcharlton:rename-key","ref":"rename-key","sha":"374055fc3521669d2d9f33b882c98808f31070a6","user":{"login":"nickcharlton","id":11917,"avatar_url":"https://avatars1.githubusercontent.com/u/11917?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcharlton","html_url":"https://github.com/nickcharlton","followers_url":"https://api.github.com/users/nickcharlton/followers","following_url":"https://api.github.com/users/nickcharlton/following{/other_user}","gists_url":"https://api.github.com/users/nickcharlton/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcharlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcharlton/subscriptions","organizations_url":"https://api.github.com/users/nickcharlton/orgs","repos_url":"https://api.github.com/users/nickcharlton/repos","events_url":"https://api.github.com/users/nickcharlton/events{/privacy}","received_events_url":"https://api.github.com/users/nickcharlton/received_events","type":"User","site_admin":false},"repo":{"id":39635500,"name":"atlas-ruby","full_name":"nickcharlton/atlas-ruby","owner":{"login":"nickcharlton","id":11917,"avatar_url":"https://avatars1.githubusercontent.com/u/11917?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcharlton","html_url":"https://github.com/nickcharlton","followers_url":"https://api.github.com/users/nickcharlton/followers","following_url":"https://api.github.com/users/nickcharlton/following{/other_user}","gists_url":"https://api.github.com/users/nickcharlton/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcharlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcharlton/subscriptions","organizations_url":"https://api.github.com/users/nickcharlton/orgs","repos_url":"https://api.github.com/users/nickcharlton/repos","events_url":"https://api.github.com/users/nickcharlton/events{/privacy}","received_events_url":"https://api.github.com/users/nickcharlton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickcharlton/atlas-ruby","description":"A Ruby client for HashiCorp's Atlas service.","fork":false,"url":"https://api.github.com/repos/nickcharlton/atlas-ruby","forks_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/forks","keys_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/teams","hooks_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/hooks","issue_events_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/events","assignees_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/tags","blobs_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/languages","stargazers_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/stargazers","contributors_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/contributors","subscribers_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/subscribers","subscription_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/subscription","commits_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/merges","archive_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/downloads","issues_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/labels{/name}","releases_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/deployments","created_at":"2015-07-24T13:32:56Z","updated_at":"2018-03-16T14:34:09Z","pushed_at":"2018-03-16T14:36:36Z","git_url":"git://github.com/nickcharlton/atlas-ruby.git","ssh_url":"git@github.com:nickcharlton/atlas-ruby.git","clone_url":"https://github.com/nickcharlton/atlas-ruby.git","svn_url":"https://github.com/nickcharlton/atlas-ruby","homepage":null,"size":85,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":4,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"nickcharlton:master","ref":"master","sha":"455ed95a8106127dea78cc3e8d562a2f25d4aee9","user":{"login":"nickcharlton","id":11917,"avatar_url":"https://avatars1.githubusercontent.com/u/11917?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcharlton","html_url":"https://github.com/nickcharlton","followers_url":"https://api.github.com/users/nickcharlton/followers","following_url":"https://api.github.com/users/nickcharlton/following{/other_user}","gists_url":"https://api.github.com/users/nickcharlton/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcharlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcharlton/subscriptions","organizations_url":"https://api.github.com/users/nickcharlton/orgs","repos_url":"https://api.github.com/users/nickcharlton/repos","events_url":"https://api.github.com/users/nickcharlton/events{/privacy}","received_events_url":"https://api.github.com/users/nickcharlton/received_events","type":"User","site_admin":false},"repo":{"id":39635500,"name":"atlas-ruby","full_name":"nickcharlton/atlas-ruby","owner":{"login":"nickcharlton","id":11917,"avatar_url":"https://avatars1.githubusercontent.com/u/11917?v=4","gravatar_id":"","url":"https://api.github.com/users/nickcharlton","html_url":"https://github.com/nickcharlton","followers_url":"https://api.github.com/users/nickcharlton/followers","following_url":"https://api.github.com/users/nickcharlton/following{/other_user}","gists_url":"https://api.github.com/users/nickcharlton/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcharlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcharlton/subscriptions","organizations_url":"https://api.github.com/users/nickcharlton/orgs","repos_url":"https://api.github.com/users/nickcharlton/repos","events_url":"https://api.github.com/users/nickcharlton/events{/privacy}","received_events_url":"https://api.github.com/users/nickcharlton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickcharlton/atlas-ruby","description":"A Ruby client for HashiCorp's Atlas service.","fork":false,"url":"https://api.github.com/repos/nickcharlton/atlas-ruby","forks_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/forks","keys_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/teams","hooks_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/hooks","issue_events_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/events","assignees_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/tags","blobs_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/languages","stargazers_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/stargazers","contributors_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/contributors","subscribers_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/subscribers","subscription_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/subscription","commits_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/merges","archive_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/downloads","issues_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/labels{/name}","releases_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/nickcharlton/atlas-ruby/deployments","created_at":"2015-07-24T13:32:56Z","updated_at":"2018-03-16T14:34:09Z","pushed_at":"2018-03-16T14:36:36Z","git_url":"git://github.com/nickcharlton/atlas-ruby.git","ssh_url":"git@github.com:nickcharlton/atlas-ruby.git","clone_url":"https://github.com/nickcharlton/atlas-ruby.git","svn_url":"https://github.com/nickcharlton/atlas-ruby","homepage":null,"size":85,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":4,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12"},"html":{"href":"https://github.com/nickcharlton/atlas-ruby/pull/12"},"issue":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/12"},"comments":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/nickcharlton/atlas-ruby/statuses/374055fc3521669d2d9f33b882c98808f31070a6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}