{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/2","id":48690632,"html_url":"https://github.com/JessRudder/JRHostsFile/pull/2","diff_url":"https://github.com/JessRudder/JRHostsFile/pull/2.diff","patch_url":"https://github.com/JessRudder/JRHostsFile/pull/2.patch","issue_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/2","number":2,"state":"open","locked":false,"title":"Update init to work with/without filename","user":{"login":"JessRudder","id":6540763,"avatar_url":"https://avatars.githubusercontent.com/u/6540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JessRudder","html_url":"https://github.com/JessRudder","followers_url":"https://api.github.com/users/JessRudder/followers","following_url":"https://api.github.com/users/JessRudder/following{/other_user}","gists_url":"https://api.github.com/users/JessRudder/gists{/gist_id}","starred_url":"https://api.github.com/users/JessRudder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessRudder/subscriptions","organizations_url":"https://api.github.com/users/JessRudder/orgs","repos_url":"https://api.github.com/users/JessRudder/repos","events_url":"https://api.github.com/users/JessRudder/events{/privacy}","received_events_url":"https://api.github.com/users/JessRudder/received_events","type":"User","site_admin":false},"body":"@dblock \r\n\r\nObjective-C does not appear to allow default values in methods.  I used the 'designated initializer' pattern to address this.\r\n\r\nThere is now an initWithFileName method that must be called with a filename.  This is the method that does all initialization work for this class.\r\n\r\nIf someone calls the standard init, it will call the initWithFileName method using a defaultFileName value (currently set to '/etc/hosts').","created_at":"2015-10-25T23:07:24Z","updated_at":"2015-10-25T23:07:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/2/commits","review_comments_url":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/2/comments","review_comment_url":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/2/comments","statuses_url":"https://api.github.com/repos/JessRudder/JRHostsFile/statuses/50dc0bddd96ca4d4e1ba3803c86c61f2b5096f38","head":{"label":"JessRudder:update-initializer","ref":"update-initializer","sha":"50dc0bddd96ca4d4e1ba3803c86c61f2b5096f38","user":{"login":"JessRudder","id":6540763,"avatar_url":"https://avatars.githubusercontent.com/u/6540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JessRudder","html_url":"https://github.com/JessRudder","followers_url":"https://api.github.com/users/JessRudder/followers","following_url":"https://api.github.com/users/JessRudder/following{/other_user}","gists_url":"https://api.github.com/users/JessRudder/gists{/gist_id}","starred_url":"https://api.github.com/users/JessRudder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessRudder/subscriptions","organizations_url":"https://api.github.com/users/JessRudder/orgs","repos_url":"https://api.github.com/users/JessRudder/repos","events_url":"https://api.github.com/users/JessRudder/events{/privacy}","received_events_url":"https://api.github.com/users/JessRudder/received_events","type":"User","site_admin":false},"repo":{"id":44752645,"name":"JRHostsFile","full_name":"JessRudder/JRHostsFile","owner":{"login":"JessRudder","id":6540763,"avatar_url":"https://avatars.githubusercontent.com/u/6540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JessRudder","html_url":"https://github.com/JessRudder","followers_url":"https://api.github.com/users/JessRudder/followers","following_url":"https://api.github.com/users/JessRudder/following{/other_user}","gists_url":"https://api.github.com/users/JessRudder/gists{/gist_id}","starred_url":"https://api.github.com/users/JessRudder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessRudder/subscriptions","organizations_url":"https://api.github.com/users/JessRudder/orgs","repos_url":"https://api.github.com/users/JessRudder/repos","events_url":"https://api.github.com/users/JessRudder/events{/privacy}","received_events_url":"https://api.github.com/users/JessRudder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JessRudder/JRHostsFile","description":"","fork":false,"url":"https://api.github.com/repos/JessRudder/JRHostsFile","forks_url":"https://api.github.com/repos/JessRudder/JRHostsFile/forks","keys_url":"https://api.github.com/repos/JessRudder/JRHostsFile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JessRudder/JRHostsFile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JessRudder/JRHostsFile/teams","hooks_url":"https://api.github.com/repos/JessRudder/JRHostsFile/hooks","issue_events_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/events{/number}","events_url":"https://api.github.com/repos/JessRudder/JRHostsFile/events","assignees_url":"https://api.github.com/repos/JessRudder/JRHostsFile/assignees{/user}","branches_url":"https://api.github.com/repos/JessRudder/JRHostsFile/branches{/branch}","tags_url":"https://api.github.com/repos/JessRudder/JRHostsFile/tags","blobs_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/refs{/sha}","trees_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JessRudder/JRHostsFile/statuses/{sha}","languages_url":"https://api.github.com/repos/JessRudder/JRHostsFile/languages","stargazers_url":"https://api.github.com/repos/JessRudder/JRHostsFile/stargazers","contributors_url":"https://api.github.com/repos/JessRudder/JRHostsFile/contributors","subscribers_url":"https://api.github.com/repos/JessRudder/JRHostsFile/subscribers","subscription_url":"https://api.github.com/repos/JessRudder/JRHostsFile/subscription","commits_url":"https://api.github.com/repos/JessRudder/JRHostsFile/commits{/sha}","git_commits_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/commits{/sha}","comments_url":"https://api.github.com/repos/JessRudder/JRHostsFile/comments{/number}","issue_comment_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/comments{/number}","contents_url":"https://api.github.com/repos/JessRudder/JRHostsFile/contents/{+path}","compare_url":"https://api.github.com/repos/JessRudder/JRHostsFile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JessRudder/JRHostsFile/merges","archive_url":"https://api.github.com/repos/JessRudder/JRHostsFile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JessRudder/JRHostsFile/downloads","issues_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues{/number}","pulls_url":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls{/number}","milestones_url":"https://api.github.com/repos/JessRudder/JRHostsFile/milestones{/number}","notifications_url":"https://api.github.com/repos/JessRudder/JRHostsFile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JessRudder/JRHostsFile/labels{/name}","releases_url":"https://api.github.com/repos/JessRudder/JRHostsFile/releases{/id}","created_at":"2015-10-22T14:57:16Z","updated_at":"2015-10-22T14:57:29Z","pushed_at":"2015-10-25T22:48:49Z","git_url":"git://github.com/JessRudder/JRHostsFile.git","ssh_url":"git@github.com:JessRudder/JRHostsFile.git","clone_url":"https://github.com/JessRudder/JRHostsFile.git","svn_url":"https://github.com/JessRudder/JRHostsFile","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"JessRudder:master","ref":"master","sha":"6e9b7313d58d0c1aa3d2ebe5d8b531f55180c053","user":{"login":"JessRudder","id":6540763,"avatar_url":"https://avatars.githubusercontent.com/u/6540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JessRudder","html_url":"https://github.com/JessRudder","followers_url":"https://api.github.com/users/JessRudder/followers","following_url":"https://api.github.com/users/JessRudder/following{/other_user}","gists_url":"https://api.github.com/users/JessRudder/gists{/gist_id}","starred_url":"https://api.github.com/users/JessRudder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessRudder/subscriptions","organizations_url":"https://api.github.com/users/JessRudder/orgs","repos_url":"https://api.github.com/users/JessRudder/repos","events_url":"https://api.github.com/users/JessRudder/events{/privacy}","received_events_url":"https://api.github.com/users/JessRudder/received_events","type":"User","site_admin":false},"repo":{"id":44752645,"name":"JRHostsFile","full_name":"JessRudder/JRHostsFile","owner":{"login":"JessRudder","id":6540763,"avatar_url":"https://avatars.githubusercontent.com/u/6540763?v=3","gravatar_id":"","url":"https://api.github.com/users/JessRudder","html_url":"https://github.com/JessRudder","followers_url":"https://api.github.com/users/JessRudder/followers","following_url":"https://api.github.com/users/JessRudder/following{/other_user}","gists_url":"https://api.github.com/users/JessRudder/gists{/gist_id}","starred_url":"https://api.github.com/users/JessRudder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessRudder/subscriptions","organizations_url":"https://api.github.com/users/JessRudder/orgs","repos_url":"https://api.github.com/users/JessRudder/repos","events_url":"https://api.github.com/users/JessRudder/events{/privacy}","received_events_url":"https://api.github.com/users/JessRudder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JessRudder/JRHostsFile","description":"","fork":false,"url":"https://api.github.com/repos/JessRudder/JRHostsFile","forks_url":"https://api.github.com/repos/JessRudder/JRHostsFile/forks","keys_url":"https://api.github.com/repos/JessRudder/JRHostsFile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JessRudder/JRHostsFile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JessRudder/JRHostsFile/teams","hooks_url":"https://api.github.com/repos/JessRudder/JRHostsFile/hooks","issue_events_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/events{/number}","events_url":"https://api.github.com/repos/JessRudder/JRHostsFile/events","assignees_url":"https://api.github.com/repos/JessRudder/JRHostsFile/assignees{/user}","branches_url":"https://api.github.com/repos/JessRudder/JRHostsFile/branches{/branch}","tags_url":"https://api.github.com/repos/JessRudder/JRHostsFile/tags","blobs_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/refs{/sha}","trees_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JessRudder/JRHostsFile/statuses/{sha}","languages_url":"https://api.github.com/repos/JessRudder/JRHostsFile/languages","stargazers_url":"https://api.github.com/repos/JessRudder/JRHostsFile/stargazers","contributors_url":"https://api.github.com/repos/JessRudder/JRHostsFile/contributors","subscribers_url":"https://api.github.com/repos/JessRudder/JRHostsFile/subscribers","subscription_url":"https://api.github.com/repos/JessRudder/JRHostsFile/subscription","commits_url":"https://api.github.com/repos/JessRudder/JRHostsFile/commits{/sha}","git_commits_url":"https://api.github.com/repos/JessRudder/JRHostsFile/git/commits{/sha}","comments_url":"https://api.github.com/repos/JessRudder/JRHostsFile/comments{/number}","issue_comment_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/comments{/number}","contents_url":"https://api.github.com/repos/JessRudder/JRHostsFile/contents/{+path}","compare_url":"https://api.github.com/repos/JessRudder/JRHostsFile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JessRudder/JRHostsFile/merges","archive_url":"https://api.github.com/repos/JessRudder/JRHostsFile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JessRudder/JRHostsFile/downloads","issues_url":"https://api.github.com/repos/JessRudder/JRHostsFile/issues{/number}","pulls_url":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls{/number}","milestones_url":"https://api.github.com/repos/JessRudder/JRHostsFile/milestones{/number}","notifications_url":"https://api.github.com/repos/JessRudder/JRHostsFile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JessRudder/JRHostsFile/labels{/name}","releases_url":"https://api.github.com/repos/JessRudder/JRHostsFile/releases{/id}","created_at":"2015-10-22T14:57:16Z","updated_at":"2015-10-22T14:57:29Z","pushed_at":"2015-10-25T22:48:49Z","git_url":"git://github.com/JessRudder/JRHostsFile.git","ssh_url":"git@github.com:JessRudder/JRHostsFile.git","clone_url":"https://github.com/JessRudder/JRHostsFile.git","svn_url":"https://github.com/JessRudder/JRHostsFile","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/2"},"html":{"href":"https://github.com/JessRudder/JRHostsFile/pull/2"},"issue":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/2"},"comments":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/JessRudder/JRHostsFile/statuses/50dc0bddd96ca4d4e1ba3803c86c61f2b5096f38"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":35,"deletions":3,"changed_files":3}}