{"action":"opened","number":52,"pull_request":{"url":"https://api.github.com/repos/fastlane/PEM/pulls/52","id":36229101,"html_url":"https://github.com/fastlane/PEM/pull/52","diff_url":"https://github.com/fastlane/PEM/pull/52.diff","patch_url":"https://github.com/fastlane/PEM/pull/52.patch","issue_url":"https://api.github.com/repos/fastlane/PEM/issues/52","number":52,"state":"open","locked":false,"title":"Open file before writing (fixes #51)","user":{"login":"KiranPanesar","id":1433713,"avatar_url":"https://avatars.githubusercontent.com/u/1433713?v=3","gravatar_id":"","url":"https://api.github.com/users/KiranPanesar","html_url":"https://github.com/KiranPanesar","followers_url":"https://api.github.com/users/KiranPanesar/followers","following_url":"https://api.github.com/users/KiranPanesar/following{/other_user}","gists_url":"https://api.github.com/users/KiranPanesar/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranPanesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranPanesar/subscriptions","organizations_url":"https://api.github.com/users/KiranPanesar/orgs","repos_url":"https://api.github.com/users/KiranPanesar/repos","events_url":"https://api.github.com/users/KiranPanesar/events{/privacy}","received_events_url":"https://api.github.com/users/KiranPanesar/received_events","type":"User","site_admin":false},"body":"Used the same approach you took with #49 to fix the file saving issue. Files are now opened as read-write and then saved. This fixes #51.","created_at":"2015-05-26T18:03:43Z","updated_at":"2015-05-26T18:03:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eba957387181ac1d9eee966782c204e8f797ec9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/PEM/pulls/52/commits","review_comments_url":"https://api.github.com/repos/fastlane/PEM/pulls/52/comments","review_comment_url":"https://api.github.com/repos/fastlane/PEM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/PEM/issues/52/comments","statuses_url":"https://api.github.com/repos/fastlane/PEM/statuses/914eedb3abd6c7c5726266ae63b17d70f7e99796","head":{"label":"KiranPanesar:fix-file-saving-issue","ref":"fix-file-saving-issue","sha":"914eedb3abd6c7c5726266ae63b17d70f7e99796","user":{"login":"KiranPanesar","id":1433713,"avatar_url":"https://avatars.githubusercontent.com/u/1433713?v=3","gravatar_id":"","url":"https://api.github.com/users/KiranPanesar","html_url":"https://github.com/KiranPanesar","followers_url":"https://api.github.com/users/KiranPanesar/followers","following_url":"https://api.github.com/users/KiranPanesar/following{/other_user}","gists_url":"https://api.github.com/users/KiranPanesar/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranPanesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranPanesar/subscriptions","organizations_url":"https://api.github.com/users/KiranPanesar/orgs","repos_url":"https://api.github.com/users/KiranPanesar/repos","events_url":"https://api.github.com/users/KiranPanesar/events{/privacy}","received_events_url":"https://api.github.com/users/KiranPanesar/received_events","type":"User","site_admin":false},"repo":{"id":36313502,"name":"PEM","full_name":"KiranPanesar/PEM","owner":{"login":"KiranPanesar","id":1433713,"avatar_url":"https://avatars.githubusercontent.com/u/1433713?v=3","gravatar_id":"","url":"https://api.github.com/users/KiranPanesar","html_url":"https://github.com/KiranPanesar","followers_url":"https://api.github.com/users/KiranPanesar/followers","following_url":"https://api.github.com/users/KiranPanesar/following{/other_user}","gists_url":"https://api.github.com/users/KiranPanesar/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranPanesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranPanesar/subscriptions","organizations_url":"https://api.github.com/users/KiranPanesar/orgs","repos_url":"https://api.github.com/users/KiranPanesar/repos","events_url":"https://api.github.com/users/KiranPanesar/events{/privacy}","received_events_url":"https://api.github.com/users/KiranPanesar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KiranPanesar/PEM","description":"Automatically generate and renew your push notification profiles","fork":true,"url":"https://api.github.com/repos/KiranPanesar/PEM","forks_url":"https://api.github.com/repos/KiranPanesar/PEM/forks","keys_url":"https://api.github.com/repos/KiranPanesar/PEM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KiranPanesar/PEM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KiranPanesar/PEM/teams","hooks_url":"https://api.github.com/repos/KiranPanesar/PEM/hooks","issue_events_url":"https://api.github.com/repos/KiranPanesar/PEM/issues/events{/number}","events_url":"https://api.github.com/repos/KiranPanesar/PEM/events","assignees_url":"https://api.github.com/repos/KiranPanesar/PEM/assignees{/user}","branches_url":"https://api.github.com/repos/KiranPanesar/PEM/branches{/branch}","tags_url":"https://api.github.com/repos/KiranPanesar/PEM/tags","blobs_url":"https://api.github.com/repos/KiranPanesar/PEM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KiranPanesar/PEM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KiranPanesar/PEM/git/refs{/sha}","trees_url":"https://api.github.com/repos/KiranPanesar/PEM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KiranPanesar/PEM/statuses/{sha}","languages_url":"https://api.github.com/repos/KiranPanesar/PEM/languages","stargazers_url":"https://api.github.com/repos/KiranPanesar/PEM/stargazers","contributors_url":"https://api.github.com/repos/KiranPanesar/PEM/contributors","subscribers_url":"https://api.github.com/repos/KiranPanesar/PEM/subscribers","subscription_url":"https://api.github.com/repos/KiranPanesar/PEM/subscription","commits_url":"https://api.github.com/repos/KiranPanesar/PEM/commits{/sha}","git_commits_url":"https://api.github.com/repos/KiranPanesar/PEM/git/commits{/sha}","comments_url":"https://api.github.com/repos/KiranPanesar/PEM/comments{/number}","issue_comment_url":"https://api.github.com/repos/KiranPanesar/PEM/issues/comments{/number}","contents_url":"https://api.github.com/repos/KiranPanesar/PEM/contents/{+path}","compare_url":"https://api.github.com/repos/KiranPanesar/PEM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KiranPanesar/PEM/merges","archive_url":"https://api.github.com/repos/KiranPanesar/PEM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KiranPanesar/PEM/downloads","issues_url":"https://api.github.com/repos/KiranPanesar/PEM/issues{/number}","pulls_url":"https://api.github.com/repos/KiranPanesar/PEM/pulls{/number}","milestones_url":"https://api.github.com/repos/KiranPanesar/PEM/milestones{/number}","notifications_url":"https://api.github.com/repos/KiranPanesar/PEM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KiranPanesar/PEM/labels{/name}","releases_url":"https://api.github.com/repos/KiranPanesar/PEM/releases{/id}","created_at":"2015-05-26T17:51:35Z","updated_at":"2015-05-26T17:51:35Z","pushed_at":"2015-05-26T18:02:21Z","git_url":"git://github.com/KiranPanesar/PEM.git","ssh_url":"git@github.com:KiranPanesar/PEM.git","clone_url":"https://github.com/KiranPanesar/PEM.git","svn_url":"https://github.com/KiranPanesar/PEM","homepage":"https://fastlane.tools","size":1784,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fastlane:master","ref":"master","sha":"ded29c80af1cc9c45307d3ee97d252f262e04ea7","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":26600557,"name":"PEM","full_name":"fastlane/PEM","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/PEM","description":"Automatically generate and renew your push notification profiles","fork":false,"url":"https://api.github.com/repos/fastlane/PEM","forks_url":"https://api.github.com/repos/fastlane/PEM/forks","keys_url":"https://api.github.com/repos/fastlane/PEM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/PEM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/PEM/teams","hooks_url":"https://api.github.com/repos/fastlane/PEM/hooks","issue_events_url":"https://api.github.com/repos/fastlane/PEM/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/PEM/events","assignees_url":"https://api.github.com/repos/fastlane/PEM/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/PEM/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/PEM/tags","blobs_url":"https://api.github.com/repos/fastlane/PEM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/PEM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/PEM/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/PEM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/PEM/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/PEM/languages","stargazers_url":"https://api.github.com/repos/fastlane/PEM/stargazers","contributors_url":"https://api.github.com/repos/fastlane/PEM/contributors","subscribers_url":"https://api.github.com/repos/fastlane/PEM/subscribers","subscription_url":"https://api.github.com/repos/fastlane/PEM/subscription","commits_url":"https://api.github.com/repos/fastlane/PEM/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/PEM/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/PEM/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/PEM/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/PEM/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/PEM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/PEM/merges","archive_url":"https://api.github.com/repos/fastlane/PEM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/PEM/downloads","issues_url":"https://api.github.com/repos/fastlane/PEM/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/PEM/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/PEM/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/PEM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/PEM/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/PEM/releases{/id}","created_at":"2014-11-13T18:03:01Z","updated_at":"2015-05-25T01:43:10Z","pushed_at":"2015-05-26T18:03:43Z","git_url":"git://github.com/fastlane/PEM.git","ssh_url":"git@github.com:fastlane/PEM.git","clone_url":"https://github.com/fastlane/PEM.git","svn_url":"https://github.com/fastlane/PEM","homepage":"https://fastlane.tools","size":1784,"stargazers_count":393,"watchers_count":393,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":7,"forks":32,"open_issues":7,"watchers":393,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/PEM/pulls/52"},"html":{"href":"https://github.com/fastlane/PEM/pull/52"},"issue":{"href":"https://api.github.com/repos/fastlane/PEM/issues/52"},"comments":{"href":"https://api.github.com/repos/fastlane/PEM/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/PEM/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/PEM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/PEM/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/PEM/statuses/914eedb3abd6c7c5726266ae63b17d70f7e99796"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":3,"changed_files":1}}