{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/snapshot/pulls/comments/49169754","id":49169754,"diff_hunk":"@@ -1,33 +1,36 @@\n module Snapshot\n-  class Setup\n-    # This method will take care of creating a Snapfile and other necessary files\n-    def self.create(path)\n-      snapfile_path = File.join(path, 'Snapfile')\n-\n-      if File.exist?(snapfile_path)\n+    class Setup\n+        # This method will take care of creating a Snapfile and other necessary files\n+        def self.create(path)\n+        snapfile_path = File.join(path, 'Snapfile')\n+        \n+        if File.exist?(snapfile_path)\n         raise \"Snapfile already exists at path '#{snapfile_path}'. Run 'snapshot' to use snapshot.\".red\n-      end\n-\n-      gem_path = Helper.gem_path(\"snapshot\")\n-      File.write(snapfile_path, File.read(\"#{gem_path}/lib/assets/SnapfileTemplate\"))\n-      File.write(File.join(path, 'SnapshotHelper.swift'), File.read(\"#{gem_path}/lib/assets/SnapshotHelper.swift\"))\n-\n-      puts \"Successfully created SnapshotHelper.js '#{File.join(path, 'SnapshotHelper.swift')}'\".green\n-      puts \"Successfully created new Snapfile at '#{snapfile_path}'\".green\n-\n-      puts \"-------------------------------------------------------\".yellow\n-      puts \"Open your Xcode project and make sure to do the following:\".yellow\n-      puts \"1) Add the ./SnapshotHelper.swift to your UI Test target\".yellow\n-      puts \"   You can move the file anywhere you want\".yellow\n-      puts \"2) Call `setLanguage(app)` when launching your app\".yellow\n-      puts \"\"\n-      puts \"  let app = XCUIApplication()\"\n-      puts \"  setLanguage(app)\"\n-      puts \"  app.launch()\"\n-      puts \"\"\n-      puts \"3) Add `snapshot(\\\"0Launch\\\")` to wherever you want to create the screenshots\".yellow\n-      puts \"\"\n-      puts \"More information on GitHub: https://github.com/krausefx/snapshot\".green\n     end\n-  end\n+    \n+    gem_path = Helper.gem_path(\"snapshot\")\n+    File.write(snapfile_path, File.read(\"#{gem_path}/lib/assets/SnapfileTemplate\"))\n+    File.write(File.join(path, 'SnapshotHelper.swift'), File.read(\"#{gem_path}/lib/assets/SnapshotHelper.swift\"))\n+    File.write(File.join(path, 'SnapshotAlertManager.swift'), File.read(\"#{gem_path}/lib/assets/SnapshotAlertManager.swift\"))\n+    ","path":"lib/snapshot/setup.rb","position":44,"original_position":44,"commit_id":"57a1e9fbb35b9fdac7ddb7dd98d58e260a7b333a","original_commit_id":"57a1e9fbb35b9fdac7ddb7dd98d58e260a7b333a","user":{"login":"artworker","id":1291903,"avatar_url":"https://avatars.githubusercontent.com/u/1291903?v=3","gravatar_id":"","url":"https://api.github.com/users/artworker","html_url":"https://github.com/artworker","followers_url":"https://api.github.com/users/artworker/followers","following_url":"https://api.github.com/users/artworker/following{/other_user}","gists_url":"https://api.github.com/users/artworker/gists{/gist_id}","starred_url":"https://api.github.com/users/artworker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artworker/subscriptions","organizations_url":"https://api.github.com/users/artworker/orgs","repos_url":"https://api.github.com/users/artworker/repos","events_url":"https://api.github.com/users/artworker/events{/privacy}","received_events_url":"https://api.github.com/users/artworker/received_events","type":"User","site_admin":false},"body":"\nNAVER - http://www.naver.com/\n--------------------------------------------\n\nartworker@naver.com 님께 보내신 메일 <Re: [snapshot] Alert management (#378)> 이 다음과 같은 이유로 전송 실패했습니다.\n\n--------------------------------------------\n\n받는 사람이 회원님의 메일을 수신차단 하였습니다. \n\n\n--------------------------------------------\n","created_at":"2016-01-08T09:16:58Z","updated_at":"2016-01-08T09:16:58Z","html_url":"https://github.com/fastlane/snapshot/pull/378#discussion_r49169754","pull_request_url":"https://api.github.com/repos/fastlane/snapshot/pulls/378","_links":{"self":{"href":"https://api.github.com/repos/fastlane/snapshot/pulls/comments/49169754"},"html":{"href":"https://github.com/fastlane/snapshot/pull/378#discussion_r49169754"},"pull_request":{"href":"https://api.github.com/repos/fastlane/snapshot/pulls/378"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/snapshot/pulls/378","id":55403363,"html_url":"https://github.com/fastlane/snapshot/pull/378","diff_url":"https://github.com/fastlane/snapshot/pull/378.diff","patch_url":"https://github.com/fastlane/snapshot/pull/378.patch","issue_url":"https://api.github.com/repos/fastlane/snapshot/issues/378","number":378,"state":"open","locked":false,"title":"Alert management","user":{"login":"maxbritto","id":1722050,"avatar_url":"https://avatars.githubusercontent.com/u/1722050?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbritto","html_url":"https://github.com/maxbritto","followers_url":"https://api.github.com/users/maxbritto/followers","following_url":"https://api.github.com/users/maxbritto/following{/other_user}","gists_url":"https://api.github.com/users/maxbritto/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbritto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbritto/subscriptions","organizations_url":"https://api.github.com/users/maxbritto/orgs","repos_url":"https://api.github.com/users/maxbritto/repos","events_url":"https://api.github.com/users/maxbritto/events{/privacy}","received_events_url":"https://api.github.com/users/maxbritto/received_events","type":"User","site_admin":false},"body":"- Adds a function to allow automatic dismissal of alerts that prevent\r\nactions or snapshots\r\n- Calls to the snapshot() function will now wait until all alert have\r\ndisappeared before taking the screenshot (can be disabled with a\r\nboolean parameter on the snapshot() method)","created_at":"2016-01-07T23:02:50Z","updated_at":"2016-01-08T09:16:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/snapshot/pulls/378/commits","review_comments_url":"https://api.github.com/repos/fastlane/snapshot/pulls/378/comments","review_comment_url":"https://api.github.com/repos/fastlane/snapshot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/snapshot/issues/378/comments","statuses_url":"https://api.github.com/repos/fastlane/snapshot/statuses/57a1e9fbb35b9fdac7ddb7dd98d58e260a7b333a","head":{"label":"maxbritto:alert-management","ref":"alert-management","sha":"57a1e9fbb35b9fdac7ddb7dd98d58e260a7b333a","user":{"login":"maxbritto","id":1722050,"avatar_url":"https://avatars.githubusercontent.com/u/1722050?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbritto","html_url":"https://github.com/maxbritto","followers_url":"https://api.github.com/users/maxbritto/followers","following_url":"https://api.github.com/users/maxbritto/following{/other_user}","gists_url":"https://api.github.com/users/maxbritto/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbritto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbritto/subscriptions","organizations_url":"https://api.github.com/users/maxbritto/orgs","repos_url":"https://api.github.com/users/maxbritto/repos","events_url":"https://api.github.com/users/maxbritto/events{/privacy}","received_events_url":"https://api.github.com/users/maxbritto/received_events","type":"User","site_admin":false},"repo":{"id":45675240,"name":"snapshot","full_name":"maxbritto/snapshot","owner":{"login":"maxbritto","id":1722050,"avatar_url":"https://avatars.githubusercontent.com/u/1722050?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbritto","html_url":"https://github.com/maxbritto","followers_url":"https://api.github.com/users/maxbritto/followers","following_url":"https://api.github.com/users/maxbritto/following{/other_user}","gists_url":"https://api.github.com/users/maxbritto/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbritto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbritto/subscriptions","organizations_url":"https://api.github.com/users/maxbritto/orgs","repos_url":"https://api.github.com/users/maxbritto/repos","events_url":"https://api.github.com/users/maxbritto/events{/privacy}","received_events_url":"https://api.github.com/users/maxbritto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxbritto/snapshot","description":"Automate taking localized screenshots of your iOS app on every device","fork":true,"url":"https://api.github.com/repos/maxbritto/snapshot","forks_url":"https://api.github.com/repos/maxbritto/snapshot/forks","keys_url":"https://api.github.com/repos/maxbritto/snapshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxbritto/snapshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxbritto/snapshot/teams","hooks_url":"https://api.github.com/repos/maxbritto/snapshot/hooks","issue_events_url":"https://api.github.com/repos/maxbritto/snapshot/issues/events{/number}","events_url":"https://api.github.com/repos/maxbritto/snapshot/events","assignees_url":"https://api.github.com/repos/maxbritto/snapshot/assignees{/user}","branches_url":"https://api.github.com/repos/maxbritto/snapshot/branches{/branch}","tags_url":"https://api.github.com/repos/maxbritto/snapshot/tags","blobs_url":"https://api.github.com/repos/maxbritto/snapshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxbritto/snapshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxbritto/snapshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxbritto/snapshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxbritto/snapshot/statuses/{sha}","languages_url":"https://api.github.com/repos/maxbritto/snapshot/languages","stargazers_url":"https://api.github.com/repos/maxbritto/snapshot/stargazers","contributors_url":"https://api.github.com/repos/maxbritto/snapshot/contributors","subscribers_url":"https://api.github.com/repos/maxbritto/snapshot/subscribers","subscription_url":"https://api.github.com/repos/maxbritto/snapshot/subscription","commits_url":"https://api.github.com/repos/maxbritto/snapshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxbritto/snapshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxbritto/snapshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxbritto/snapshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxbritto/snapshot/contents/{+path}","compare_url":"https://api.github.com/repos/maxbritto/snapshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxbritto/snapshot/merges","archive_url":"https://api.github.com/repos/maxbritto/snapshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxbritto/snapshot/downloads","issues_url":"https://api.github.com/repos/maxbritto/snapshot/issues{/number}","pulls_url":"https://api.github.com/repos/maxbritto/snapshot/pulls{/number}","milestones_url":"https://api.github.com/repos/maxbritto/snapshot/milestones{/number}","notifications_url":"https://api.github.com/repos/maxbritto/snapshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxbritto/snapshot/labels{/name}","releases_url":"https://api.github.com/repos/maxbritto/snapshot/releases{/id}","created_at":"2015-11-06T10:20:46Z","updated_at":"2015-11-06T10:20:47Z","pushed_at":"2016-01-08T09:16:42Z","git_url":"git://github.com/maxbritto/snapshot.git","ssh_url":"git@github.com:maxbritto/snapshot.git","clone_url":"https://github.com/maxbritto/snapshot.git","svn_url":"https://github.com/maxbritto/snapshot","homepage":"https://fastlane.tools","size":7557,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"fastlane:master","ref":"master","sha":"8171fed927c408b586324d2259918264485aea8d","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":26403221,"name":"snapshot","full_name":"fastlane/snapshot","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/snapshot","description":"Automate taking localized screenshots of your iOS app on every device","fork":false,"url":"https://api.github.com/repos/fastlane/snapshot","forks_url":"https://api.github.com/repos/fastlane/snapshot/forks","keys_url":"https://api.github.com/repos/fastlane/snapshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/snapshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/snapshot/teams","hooks_url":"https://api.github.com/repos/fastlane/snapshot/hooks","issue_events_url":"https://api.github.com/repos/fastlane/snapshot/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/snapshot/events","assignees_url":"https://api.github.com/repos/fastlane/snapshot/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/snapshot/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/snapshot/tags","blobs_url":"https://api.github.com/repos/fastlane/snapshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/snapshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/snapshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/snapshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/snapshot/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/snapshot/languages","stargazers_url":"https://api.github.com/repos/fastlane/snapshot/stargazers","contributors_url":"https://api.github.com/repos/fastlane/snapshot/contributors","subscribers_url":"https://api.github.com/repos/fastlane/snapshot/subscribers","subscription_url":"https://api.github.com/repos/fastlane/snapshot/subscription","commits_url":"https://api.github.com/repos/fastlane/snapshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/snapshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/snapshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/snapshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/snapshot/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/snapshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/snapshot/merges","archive_url":"https://api.github.com/repos/fastlane/snapshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/snapshot/downloads","issues_url":"https://api.github.com/repos/fastlane/snapshot/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/snapshot/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/snapshot/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/snapshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/snapshot/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/snapshot/releases{/id}","created_at":"2014-11-09T17:31:03Z","updated_at":"2016-01-07T21:54:08Z","pushed_at":"2016-01-08T09:16:42Z","git_url":"git://github.com/fastlane/snapshot.git","ssh_url":"git@github.com:fastlane/snapshot.git","clone_url":"https://github.com/fastlane/snapshot.git","svn_url":"https://github.com/fastlane/snapshot","homepage":"https://fastlane.tools","size":7762,"stargazers_count":1876,"watchers_count":1876,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":154,"mirror_url":null,"open_issues_count":67,"forks":154,"open_issues":67,"watchers":1876,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/snapshot/pulls/378"},"html":{"href":"https://github.com/fastlane/snapshot/pull/378"},"issue":{"href":"https://api.github.com/repos/fastlane/snapshot/issues/378"},"comments":{"href":"https://api.github.com/repos/fastlane/snapshot/issues/378/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/snapshot/pulls/378/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/snapshot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/snapshot/pulls/378/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/snapshot/statuses/57a1e9fbb35b9fdac7ddb7dd98d58e260a7b333a"}}}}