{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/comments/60453528","id":60453528,"diff_hunk":"@@ -30,11 +30,15 @@ def initialize(opts)\n         @options = OpenStruct.new(opts)\n         @options.path         ||= 'apiary.apib'\n         @options.api_host     ||= 'api.apiary.io'\n-        @options.headers      ||= {:accept => 'text/html', :content_type => 'text/plain'}\n         @options.port         ||= 8080\n         @options.proxy        ||= ENV['http_proxy']\n         @options.server       ||= false\n-\t@options.host\t      ||= '127.0.0.1'\n+\t      @options.host         ||= '127.0.0.1'","path":"lib/apiary/command/preview.rb","position":16,"original_position":16,"commit_id":"79d73c45f5a624bce4eb4f91fdccfb391af19bfb","original_commit_id":"79d73c45f5a624bce4eb4f91fdccfb391af19bfb","user":{"login":"smizell","id":130959,"avatar_url":"https://avatars.githubusercontent.com/u/130959?v=3","gravatar_id":"","url":"https://api.github.com/users/smizell","html_url":"https://github.com/smizell","followers_url":"https://api.github.com/users/smizell/followers","following_url":"https://api.github.com/users/smizell/following{/other_user}","gists_url":"https://api.github.com/users/smizell/gists{/gist_id}","starred_url":"https://api.github.com/users/smizell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smizell/subscriptions","organizations_url":"https://api.github.com/users/smizell/orgs","repos_url":"https://api.github.com/users/smizell/repos","events_url":"https://api.github.com/users/smizell/events{/privacy}","received_events_url":"https://api.github.com/users/smizell/received_events","type":"User","site_admin":false},"body":"Nit: Spacing is off for me now.","created_at":"2016-04-20T17:37:55Z","updated_at":"2016-04-20T17:37:55Z","html_url":"https://github.com/apiaryio/apiary-client/pull/114#discussion_r60453528","pull_request_url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/apiary-client/pulls/comments/60453528"},"html":{"href":"https://github.com/apiaryio/apiary-client/pull/114#discussion_r60453528"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114","id":67214878,"html_url":"https://github.com/apiaryio/apiary-client/pull/114","diff_url":"https://github.com/apiaryio/apiary-client/pull/114.diff","patch_url":"https://github.com/apiaryio/apiary-client/pull/114.patch","issue_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/114","number":114,"state":"open","locked":false,"title":"Add user-agent","user":{"login":"abtris","id":100356,"avatar_url":"https://avatars.githubusercontent.com/u/100356?v=3","gravatar_id":"","url":"https://api.github.com/users/abtris","html_url":"https://github.com/abtris","followers_url":"https://api.github.com/users/abtris/followers","following_url":"https://api.github.com/users/abtris/following{/other_user}","gists_url":"https://api.github.com/users/abtris/gists{/gist_id}","starred_url":"https://api.github.com/users/abtris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abtris/subscriptions","organizations_url":"https://api.github.com/users/abtris/orgs","repos_url":"https://api.github.com/users/abtris/repos","events_url":"https://api.github.com/users/abtris/events{/privacy}","received_events_url":"https://api.github.com/users/abtris/received_events","type":"User","site_admin":false},"body":"- add `user-agent` header","created_at":"2016-04-20T16:08:43Z","updated_at":"2016-04-20T17:37:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96b4559a4212a1d9d4bbb0fde68de51d45c7d091","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114/commits","review_comments_url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114/comments","review_comment_url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/114/comments","statuses_url":"https://api.github.com/repos/apiaryio/apiary-client/statuses/79d73c45f5a624bce4eb4f91fdccfb391af19bfb","head":{"label":"apiaryio:abtris/add-user-agent","ref":"abtris/add-user-agent","sha":"79d73c45f5a624bce4eb4f91fdccfb391af19bfb","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":4616729,"name":"apiary-client","full_name":"apiaryio/apiary-client","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/apiary-client","description":"Apiary CLI client","fork":false,"url":"https://api.github.com/repos/apiaryio/apiary-client","forks_url":"https://api.github.com/repos/apiaryio/apiary-client/forks","keys_url":"https://api.github.com/repos/apiaryio/apiary-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/apiary-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/apiary-client/teams","hooks_url":"https://api.github.com/repos/apiaryio/apiary-client/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/apiary-client/events","assignees_url":"https://api.github.com/repos/apiaryio/apiary-client/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/apiary-client/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/apiary-client/tags","blobs_url":"https://api.github.com/repos/apiaryio/apiary-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/apiary-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/apiary-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/apiary-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/apiary-client/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/apiary-client/languages","stargazers_url":"https://api.github.com/repos/apiaryio/apiary-client/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/apiary-client/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/apiary-client/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/apiary-client/subscription","commits_url":"https://api.github.com/repos/apiaryio/apiary-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/apiary-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/apiary-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/apiary-client/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/apiary-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/apiary-client/merges","archive_url":"https://api.github.com/repos/apiaryio/apiary-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/apiary-client/downloads","issues_url":"https://api.github.com/repos/apiaryio/apiary-client/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/apiary-client/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/apiary-client/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/apiary-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/apiary-client/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/apiary-client/releases{/id}","deployments_url":"https://api.github.com/repos/apiaryio/apiary-client/deployments","created_at":"2012-06-10T17:04:20Z","updated_at":"2016-04-20T02:07:42Z","pushed_at":"2016-04-20T17:24:25Z","git_url":"git://github.com/apiaryio/apiary-client.git","ssh_url":"git@github.com:apiaryio/apiary-client.git","clone_url":"https://github.com/apiaryio/apiary-client.git","svn_url":"https://github.com/apiaryio/apiary-client","homepage":"http://docs.apiary.io/tools/apiary-cli/","size":600,"stargazers_count":138,"watchers_count":138,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":14,"forks":38,"open_issues":14,"watchers":138,"default_branch":"master"}},"base":{"label":"apiaryio:master","ref":"master","sha":"ecc716426d13ea01c8133592b72998331ebd050a","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":4616729,"name":"apiary-client","full_name":"apiaryio/apiary-client","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/apiary-client","description":"Apiary CLI client","fork":false,"url":"https://api.github.com/repos/apiaryio/apiary-client","forks_url":"https://api.github.com/repos/apiaryio/apiary-client/forks","keys_url":"https://api.github.com/repos/apiaryio/apiary-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/apiary-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/apiary-client/teams","hooks_url":"https://api.github.com/repos/apiaryio/apiary-client/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/apiary-client/events","assignees_url":"https://api.github.com/repos/apiaryio/apiary-client/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/apiary-client/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/apiary-client/tags","blobs_url":"https://api.github.com/repos/apiaryio/apiary-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/apiary-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/apiary-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/apiary-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/apiary-client/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/apiary-client/languages","stargazers_url":"https://api.github.com/repos/apiaryio/apiary-client/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/apiary-client/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/apiary-client/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/apiary-client/subscription","commits_url":"https://api.github.com/repos/apiaryio/apiary-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/apiary-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/apiary-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/apiary-client/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/apiary-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/apiary-client/merges","archive_url":"https://api.github.com/repos/apiaryio/apiary-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/apiary-client/downloads","issues_url":"https://api.github.com/repos/apiaryio/apiary-client/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/apiary-client/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/apiary-client/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/apiary-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/apiary-client/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/apiary-client/releases{/id}","deployments_url":"https://api.github.com/repos/apiaryio/apiary-client/deployments","created_at":"2012-06-10T17:04:20Z","updated_at":"2016-04-20T02:07:42Z","pushed_at":"2016-04-20T17:24:25Z","git_url":"git://github.com/apiaryio/apiary-client.git","ssh_url":"git@github.com:apiaryio/apiary-client.git","clone_url":"https://github.com/apiaryio/apiary-client.git","svn_url":"https://github.com/apiaryio/apiary-client","homepage":"http://docs.apiary.io/tools/apiary-cli/","size":600,"stargazers_count":138,"watchers_count":138,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":14,"forks":38,"open_issues":14,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114"},"html":{"href":"https://github.com/apiaryio/apiary-client/pull/114"},"issue":{"href":"https://api.github.com/repos/apiaryio/apiary-client/issues/114"},"comments":{"href":"https://api.github.com/repos/apiaryio/apiary-client/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/apiary-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/apiary-client/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/apiary-client/statuses/79d73c45f5a624bce4eb4f91fdccfb391af19bfb"}}}}