{"action":"created","comment":{"url":"https://api.github.com/repos/mjacobus/page_downloader/pulls/comments/45056798","id":45056798,"diff_hunk":"@@ -0,0 +1,67 @@\n+require \"test_helper\"\n+\n+class UrlResolverTest < Minitest::Test\n+  def test_resolves_base_url\n+    assert_equal \"http://foo.com\",\n+      UrlResolver.new(referer: \"http://foo.com/sub/page.html\").base_url","path":"test/page_downloader/url_resolver_test.rb","position":6,"original_position":6,"commit_id":"bd285001718e6ffbb3bbc38093f2268678b2c546","original_commit_id":"bd285001718e6ffbb3bbc38093f2268678b2c546","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the parameters of a method call if they span more than one line.","created_at":"2015-11-17T13:04:09Z","updated_at":"2015-11-17T13:04:09Z","html_url":"https://github.com/mjacobus/page_downloader/pull/1#discussion_r45056798","pull_request_url":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mjacobus/page_downloader/pulls/comments/45056798"},"html":{"href":"https://github.com/mjacobus/page_downloader/pull/1#discussion_r45056798"},"pull_request":{"href":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1","id":50662046,"html_url":"https://github.com/mjacobus/page_downloader/pull/1","diff_url":"https://github.com/mjacobus/page_downloader/pull/1.diff","patch_url":"https://github.com/mjacobus/page_downloader/pull/1.patch","issue_url":"https://api.github.com/repos/mjacobus/page_downloader/issues/1","number":1,"state":"open","locked":false,"title":"Implemented downloader","user":{"login":"mjacobus","id":226834,"avatar_url":"https://avatars.githubusercontent.com/u/226834?v=3","gravatar_id":"","url":"https://api.github.com/users/mjacobus","html_url":"https://github.com/mjacobus","followers_url":"https://api.github.com/users/mjacobus/followers","following_url":"https://api.github.com/users/mjacobus/following{/other_user}","gists_url":"https://api.github.com/users/mjacobus/gists{/gist_id}","starred_url":"https://api.github.com/users/mjacobus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjacobus/subscriptions","organizations_url":"https://api.github.com/users/mjacobus/orgs","repos_url":"https://api.github.com/users/mjacobus/repos","events_url":"https://api.github.com/users/mjacobus/events{/privacy}","received_events_url":"https://api.github.com/users/mjacobus/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-13T16:38:12Z","updated_at":"2015-11-17T13:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83e08e1a1e6f9c6bc215e058fe8b5dfdacfd47cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mjacobus/page_downloader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mjacobus/page_downloader/issues/1/comments","statuses_url":"https://api.github.com/repos/mjacobus/page_downloader/statuses/bd285001718e6ffbb3bbc38093f2268678b2c546","head":{"label":"mjacobus:feature-downloader","ref":"feature-downloader","sha":"bd285001718e6ffbb3bbc38093f2268678b2c546","user":{"login":"mjacobus","id":226834,"avatar_url":"https://avatars.githubusercontent.com/u/226834?v=3","gravatar_id":"","url":"https://api.github.com/users/mjacobus","html_url":"https://github.com/mjacobus","followers_url":"https://api.github.com/users/mjacobus/followers","following_url":"https://api.github.com/users/mjacobus/following{/other_user}","gists_url":"https://api.github.com/users/mjacobus/gists{/gist_id}","starred_url":"https://api.github.com/users/mjacobus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjacobus/subscriptions","organizations_url":"https://api.github.com/users/mjacobus/orgs","repos_url":"https://api.github.com/users/mjacobus/repos","events_url":"https://api.github.com/users/mjacobus/events{/privacy}","received_events_url":"https://api.github.com/users/mjacobus/received_events","type":"User","site_admin":false},"repo":{"id":45689487,"name":"page_downloader","full_name":"mjacobus/page_downloader","owner":{"login":"mjacobus","id":226834,"avatar_url":"https://avatars.githubusercontent.com/u/226834?v=3","gravatar_id":"","url":"https://api.github.com/users/mjacobus","html_url":"https://github.com/mjacobus","followers_url":"https://api.github.com/users/mjacobus/followers","following_url":"https://api.github.com/users/mjacobus/following{/other_user}","gists_url":"https://api.github.com/users/mjacobus/gists{/gist_id}","starred_url":"https://api.github.com/users/mjacobus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjacobus/subscriptions","organizations_url":"https://api.github.com/users/mjacobus/orgs","repos_url":"https://api.github.com/users/mjacobus/repos","events_url":"https://api.github.com/users/mjacobus/events{/privacy}","received_events_url":"https://api.github.com/users/mjacobus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjacobus/page_downloader","description":"Utility to download a web page to a file. Css and Javascript will be embeded into it.","fork":false,"url":"https://api.github.com/repos/mjacobus/page_downloader","forks_url":"https://api.github.com/repos/mjacobus/page_downloader/forks","keys_url":"https://api.github.com/repos/mjacobus/page_downloader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjacobus/page_downloader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjacobus/page_downloader/teams","hooks_url":"https://api.github.com/repos/mjacobus/page_downloader/hooks","issue_events_url":"https://api.github.com/repos/mjacobus/page_downloader/issues/events{/number}","events_url":"https://api.github.com/repos/mjacobus/page_downloader/events","assignees_url":"https://api.github.com/repos/mjacobus/page_downloader/assignees{/user}","branches_url":"https://api.github.com/repos/mjacobus/page_downloader/branches{/branch}","tags_url":"https://api.github.com/repos/mjacobus/page_downloader/tags","blobs_url":"https://api.github.com/repos/mjacobus/page_downloader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjacobus/page_downloader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjacobus/page_downloader/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjacobus/page_downloader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjacobus/page_downloader/statuses/{sha}","languages_url":"https://api.github.com/repos/mjacobus/page_downloader/languages","stargazers_url":"https://api.github.com/repos/mjacobus/page_downloader/stargazers","contributors_url":"https://api.github.com/repos/mjacobus/page_downloader/contributors","subscribers_url":"https://api.github.com/repos/mjacobus/page_downloader/subscribers","subscription_url":"https://api.github.com/repos/mjacobus/page_downloader/subscription","commits_url":"https://api.github.com/repos/mjacobus/page_downloader/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjacobus/page_downloader/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjacobus/page_downloader/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjacobus/page_downloader/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjacobus/page_downloader/contents/{+path}","compare_url":"https://api.github.com/repos/mjacobus/page_downloader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjacobus/page_downloader/merges","archive_url":"https://api.github.com/repos/mjacobus/page_downloader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjacobus/page_downloader/downloads","issues_url":"https://api.github.com/repos/mjacobus/page_downloader/issues{/number}","pulls_url":"https://api.github.com/repos/mjacobus/page_downloader/pulls{/number}","milestones_url":"https://api.github.com/repos/mjacobus/page_downloader/milestones{/number}","notifications_url":"https://api.github.com/repos/mjacobus/page_downloader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjacobus/page_downloader/labels{/name}","releases_url":"https://api.github.com/repos/mjacobus/page_downloader/releases{/id}","created_at":"2015-11-06T15:20:26Z","updated_at":"2015-11-06T15:20:43Z","pushed_at":"2015-11-17T13:04:02Z","git_url":"git://github.com/mjacobus/page_downloader.git","ssh_url":"git@github.com:mjacobus/page_downloader.git","clone_url":"https://github.com/mjacobus/page_downloader.git","svn_url":"https://github.com/mjacobus/page_downloader","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mjacobus:master","ref":"master","sha":"004520aa5b7b484b3dc82ac1959bf91e76fc1d5a","user":{"login":"mjacobus","id":226834,"avatar_url":"https://avatars.githubusercontent.com/u/226834?v=3","gravatar_id":"","url":"https://api.github.com/users/mjacobus","html_url":"https://github.com/mjacobus","followers_url":"https://api.github.com/users/mjacobus/followers","following_url":"https://api.github.com/users/mjacobus/following{/other_user}","gists_url":"https://api.github.com/users/mjacobus/gists{/gist_id}","starred_url":"https://api.github.com/users/mjacobus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjacobus/subscriptions","organizations_url":"https://api.github.com/users/mjacobus/orgs","repos_url":"https://api.github.com/users/mjacobus/repos","events_url":"https://api.github.com/users/mjacobus/events{/privacy}","received_events_url":"https://api.github.com/users/mjacobus/received_events","type":"User","site_admin":false},"repo":{"id":45689487,"name":"page_downloader","full_name":"mjacobus/page_downloader","owner":{"login":"mjacobus","id":226834,"avatar_url":"https://avatars.githubusercontent.com/u/226834?v=3","gravatar_id":"","url":"https://api.github.com/users/mjacobus","html_url":"https://github.com/mjacobus","followers_url":"https://api.github.com/users/mjacobus/followers","following_url":"https://api.github.com/users/mjacobus/following{/other_user}","gists_url":"https://api.github.com/users/mjacobus/gists{/gist_id}","starred_url":"https://api.github.com/users/mjacobus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjacobus/subscriptions","organizations_url":"https://api.github.com/users/mjacobus/orgs","repos_url":"https://api.github.com/users/mjacobus/repos","events_url":"https://api.github.com/users/mjacobus/events{/privacy}","received_events_url":"https://api.github.com/users/mjacobus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjacobus/page_downloader","description":"Utility to download a web page to a file. Css and Javascript will be embeded into it.","fork":false,"url":"https://api.github.com/repos/mjacobus/page_downloader","forks_url":"https://api.github.com/repos/mjacobus/page_downloader/forks","keys_url":"https://api.github.com/repos/mjacobus/page_downloader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjacobus/page_downloader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjacobus/page_downloader/teams","hooks_url":"https://api.github.com/repos/mjacobus/page_downloader/hooks","issue_events_url":"https://api.github.com/repos/mjacobus/page_downloader/issues/events{/number}","events_url":"https://api.github.com/repos/mjacobus/page_downloader/events","assignees_url":"https://api.github.com/repos/mjacobus/page_downloader/assignees{/user}","branches_url":"https://api.github.com/repos/mjacobus/page_downloader/branches{/branch}","tags_url":"https://api.github.com/repos/mjacobus/page_downloader/tags","blobs_url":"https://api.github.com/repos/mjacobus/page_downloader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjacobus/page_downloader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjacobus/page_downloader/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjacobus/page_downloader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjacobus/page_downloader/statuses/{sha}","languages_url":"https://api.github.com/repos/mjacobus/page_downloader/languages","stargazers_url":"https://api.github.com/repos/mjacobus/page_downloader/stargazers","contributors_url":"https://api.github.com/repos/mjacobus/page_downloader/contributors","subscribers_url":"https://api.github.com/repos/mjacobus/page_downloader/subscribers","subscription_url":"https://api.github.com/repos/mjacobus/page_downloader/subscription","commits_url":"https://api.github.com/repos/mjacobus/page_downloader/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjacobus/page_downloader/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjacobus/page_downloader/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjacobus/page_downloader/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjacobus/page_downloader/contents/{+path}","compare_url":"https://api.github.com/repos/mjacobus/page_downloader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjacobus/page_downloader/merges","archive_url":"https://api.github.com/repos/mjacobus/page_downloader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjacobus/page_downloader/downloads","issues_url":"https://api.github.com/repos/mjacobus/page_downloader/issues{/number}","pulls_url":"https://api.github.com/repos/mjacobus/page_downloader/pulls{/number}","milestones_url":"https://api.github.com/repos/mjacobus/page_downloader/milestones{/number}","notifications_url":"https://api.github.com/repos/mjacobus/page_downloader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjacobus/page_downloader/labels{/name}","releases_url":"https://api.github.com/repos/mjacobus/page_downloader/releases{/id}","created_at":"2015-11-06T15:20:26Z","updated_at":"2015-11-06T15:20:43Z","pushed_at":"2015-11-17T13:04:02Z","git_url":"git://github.com/mjacobus/page_downloader.git","ssh_url":"git@github.com:mjacobus/page_downloader.git","clone_url":"https://github.com/mjacobus/page_downloader.git","svn_url":"https://github.com/mjacobus/page_downloader","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1"},"html":{"href":"https://github.com/mjacobus/page_downloader/pull/1"},"issue":{"href":"https://api.github.com/repos/mjacobus/page_downloader/issues/1"},"comments":{"href":"https://api.github.com/repos/mjacobus/page_downloader/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mjacobus/page_downloader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mjacobus/page_downloader/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mjacobus/page_downloader/statuses/bd285001718e6ffbb3bbc38093f2268678b2c546"}}}}