{"action":"created","comment":{"url":"https://api.github.com/repos/calabash/install/pulls/comments/45975911","id":45975911,"diff_hunk":"@@ -0,0 +1,65 @@\n+#!/usr/bin/env bash\n+\n+if [ \"$(uname -s)\" != \"Darwin\" ]; then\n+  echo \"Calabash-sandbox only runs on Mac OSX\"\n+  exit 1\n+fi\n+\n+export GEM_HOME=\"${HOME}/.calabash/sandbox/Gems\"\n+CALABASH_RUBIES_HOME=\"${HOME}/.calabash/sandbox/Rubies\"\n+CALABASH_RUBY_VERSION=\"2.1.5-p273\"\n+SANDBOX=\"$HOME/.calabash/sandbox\"\n+CALABASH_SANDBOX=\"calabash-sandbox\"\n+\n+#Don't auto-overwrite the sandbox if it already exists\n+if [ -d \"$SANDBOX\" ]; then\n+  echo \"Sandbox already exists! Do you want to overwrite? (y/n)\"\n+  read -n 1 -s ANSWER\n+  if [ $ANSWER != \"y\" ]; then\n+    exit 0\n+  fi\n+fi\n+\n+mkdir -p \"$GEM_HOME\"\n+mkdir -p \"$HOME/.calabash/sandbox/Rubies\"\n+\n+#Download Ruby\n+echo \"Preparing Ruby ${CALABASH_RUBY_VERSION}...\"\n+curl -o \"${CALABASH_RUBY_VERSION}.zip\" --progress-bar https://s3-eu-west-1.amazonaws.com/calabash-files/2.1.5-p273.zip","path":"install-osx.sh","position":28,"original_position":28,"commit_id":"91f608504f6e3cd77716a571fb2404b3e815db82","original_commit_id":"91f608504f6e3cd77716a571fb2404b3e815db82","user":{"login":"jonstoneman","id":741710,"avatar_url":"https://avatars.githubusercontent.com/u/741710?v=3","gravatar_id":"","url":"https://api.github.com/users/jonstoneman","html_url":"https://github.com/jonstoneman","followers_url":"https://api.github.com/users/jonstoneman/followers","following_url":"https://api.github.com/users/jonstoneman/following{/other_user}","gists_url":"https://api.github.com/users/jonstoneman/gists{/gist_id}","starred_url":"https://api.github.com/users/jonstoneman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonstoneman/subscriptions","organizations_url":"https://api.github.com/users/jonstoneman/orgs","repos_url":"https://api.github.com/users/jonstoneman/repos","events_url":"https://api.github.com/users/jonstoneman/events{/privacy}","received_events_url":"https://api.github.com/users/jonstoneman/received_events","type":"User","site_admin":false},"body":"That zip contains a `__MACOSX` folder.","created_at":"2015-11-26T13:01:26Z","updated_at":"2015-11-26T13:01:26Z","html_url":"https://github.com/calabash/install/pull/16#discussion_r45975911","pull_request_url":"https://api.github.com/repos/calabash/install/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/calabash/install/pulls/comments/45975911"},"html":{"href":"https://github.com/calabash/install/pull/16#discussion_r45975911"},"pull_request":{"href":"https://api.github.com/repos/calabash/install/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/calabash/install/pulls/16","id":51711139,"html_url":"https://github.com/calabash/install/pull/16","diff_url":"https://github.com/calabash/install/pull/16.diff","patch_url":"https://github.com/calabash/install/pull/16.patch","issue_url":"https://api.github.com/repos/calabash/install/issues/16","number":16,"state":"open","locked":false,"title":"Feature/sandbox","user":{"login":"sapieneptus","id":3009852,"avatar_url":"https://avatars.githubusercontent.com/u/3009852?v=3","gravatar_id":"","url":"https://api.github.com/users/sapieneptus","html_url":"https://github.com/sapieneptus","followers_url":"https://api.github.com/users/sapieneptus/followers","following_url":"https://api.github.com/users/sapieneptus/following{/other_user}","gists_url":"https://api.github.com/users/sapieneptus/gists{/gist_id}","starred_url":"https://api.github.com/users/sapieneptus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapieneptus/subscriptions","organizations_url":"https://api.github.com/users/sapieneptus/orgs","repos_url":"https://api.github.com/users/sapieneptus/repos","events_url":"https://api.github.com/users/sapieneptus/events{/privacy}","received_events_url":"https://api.github.com/users/sapieneptus/received_events","type":"User","site_admin":false},"body":"## Motivation\r\n- Installing ruby is a PITA, especially for first time users. \r\n- Users sometimes write tests that work on rubies not present in XTC, and thus they work locally but not in the cloud\r\n\r\n## The Idea\r\n\r\nSimilar to [calabash.app] (https://github.com/calabash/calabash.app), the idea is you can invoke a sandbox environment for calabash that just works. \r\n\r\n## Workflow\r\n\r\n```shell\r\n$ ./install-osx.sh\r\nPreparing Ruby...\r\n######################################################################## 100.0%\r\nPreparing sandbox...\r\nInstalling gems, this may take a little while...\r\n\r\n# does a gem install and a bundle install.\r\n\r\nDone!\r\nExecute 'calabash-sandbox' to get started! \r\n\r\n$ calabash-sandbox\r\nThis terminal is now ready to use with Calabash.\r\nTo exit, type 'exit'.\r\n[calabash-sandbox] $ calabash-android gen  #just works\r\n[calabash-sandbox] $ calabash-ios version  #just works\r\n0.16.4\r\n[calabash-sandbox] $ exit\r\n$ # back to normal\r\n```\r\n\r\n@jonstoneman Would be great to do a windows port\r\n@krukow @jmoody I imagine we don't need a linux port?\r\n\r\n- [ ] Stand up Jenkins cucumbers\r\n- [ ] Stand up Jenkins submit to test-cloud\r\n- [ ] Check the sandbox on a clean machine (no Xcode or development tools installed)","created_at":"2015-11-24T20:15:31Z","updated_at":"2015-11-26T13:01:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"131acd740ec23b487646f0898fc39cda5be312ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calabash/install/pulls/16/commits","review_comments_url":"https://api.github.com/repos/calabash/install/pulls/16/comments","review_comment_url":"https://api.github.com/repos/calabash/install/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calabash/install/issues/16/comments","statuses_url":"https://api.github.com/repos/calabash/install/statuses/91f608504f6e3cd77716a571fb2404b3e815db82","head":{"label":"calabash:feature/sandbox","ref":"feature/sandbox","sha":"91f608504f6e3cd77716a571fb2404b3e815db82","user":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"repo":{"id":31855270,"name":"install","full_name":"calabash/install","owner":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calabash/install","description":"Quick install and run scripts for Calabash","fork":false,"url":"https://api.github.com/repos/calabash/install","forks_url":"https://api.github.com/repos/calabash/install/forks","keys_url":"https://api.github.com/repos/calabash/install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calabash/install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calabash/install/teams","hooks_url":"https://api.github.com/repos/calabash/install/hooks","issue_events_url":"https://api.github.com/repos/calabash/install/issues/events{/number}","events_url":"https://api.github.com/repos/calabash/install/events","assignees_url":"https://api.github.com/repos/calabash/install/assignees{/user}","branches_url":"https://api.github.com/repos/calabash/install/branches{/branch}","tags_url":"https://api.github.com/repos/calabash/install/tags","blobs_url":"https://api.github.com/repos/calabash/install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calabash/install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calabash/install/git/refs{/sha}","trees_url":"https://api.github.com/repos/calabash/install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calabash/install/statuses/{sha}","languages_url":"https://api.github.com/repos/calabash/install/languages","stargazers_url":"https://api.github.com/repos/calabash/install/stargazers","contributors_url":"https://api.github.com/repos/calabash/install/contributors","subscribers_url":"https://api.github.com/repos/calabash/install/subscribers","subscription_url":"https://api.github.com/repos/calabash/install/subscription","commits_url":"https://api.github.com/repos/calabash/install/commits{/sha}","git_commits_url":"https://api.github.com/repos/calabash/install/git/commits{/sha}","comments_url":"https://api.github.com/repos/calabash/install/comments{/number}","issue_comment_url":"https://api.github.com/repos/calabash/install/issues/comments{/number}","contents_url":"https://api.github.com/repos/calabash/install/contents/{+path}","compare_url":"https://api.github.com/repos/calabash/install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calabash/install/merges","archive_url":"https://api.github.com/repos/calabash/install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calabash/install/downloads","issues_url":"https://api.github.com/repos/calabash/install/issues{/number}","pulls_url":"https://api.github.com/repos/calabash/install/pulls{/number}","milestones_url":"https://api.github.com/repos/calabash/install/milestones{/number}","notifications_url":"https://api.github.com/repos/calabash/install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calabash/install/labels{/name}","releases_url":"https://api.github.com/repos/calabash/install/releases{/id}","created_at":"2015-03-08T15:46:59Z","updated_at":"2015-11-23T20:53:50Z","pushed_at":"2015-11-26T01:51:44Z","git_url":"git://github.com/calabash/install.git","ssh_url":"git@github.com:calabash/install.git","clone_url":"https://github.com/calabash/install.git","svn_url":"https://github.com/calabash/install","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"calabash:master","ref":"master","sha":"617a13e1b85b1b89179d24d10265cbbf7917dfd4","user":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"repo":{"id":31855270,"name":"install","full_name":"calabash/install","owner":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calabash/install","description":"Quick install and run scripts for Calabash","fork":false,"url":"https://api.github.com/repos/calabash/install","forks_url":"https://api.github.com/repos/calabash/install/forks","keys_url":"https://api.github.com/repos/calabash/install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calabash/install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calabash/install/teams","hooks_url":"https://api.github.com/repos/calabash/install/hooks","issue_events_url":"https://api.github.com/repos/calabash/install/issues/events{/number}","events_url":"https://api.github.com/repos/calabash/install/events","assignees_url":"https://api.github.com/repos/calabash/install/assignees{/user}","branches_url":"https://api.github.com/repos/calabash/install/branches{/branch}","tags_url":"https://api.github.com/repos/calabash/install/tags","blobs_url":"https://api.github.com/repos/calabash/install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calabash/install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calabash/install/git/refs{/sha}","trees_url":"https://api.github.com/repos/calabash/install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calabash/install/statuses/{sha}","languages_url":"https://api.github.com/repos/calabash/install/languages","stargazers_url":"https://api.github.com/repos/calabash/install/stargazers","contributors_url":"https://api.github.com/repos/calabash/install/contributors","subscribers_url":"https://api.github.com/repos/calabash/install/subscribers","subscription_url":"https://api.github.com/repos/calabash/install/subscription","commits_url":"https://api.github.com/repos/calabash/install/commits{/sha}","git_commits_url":"https://api.github.com/repos/calabash/install/git/commits{/sha}","comments_url":"https://api.github.com/repos/calabash/install/comments{/number}","issue_comment_url":"https://api.github.com/repos/calabash/install/issues/comments{/number}","contents_url":"https://api.github.com/repos/calabash/install/contents/{+path}","compare_url":"https://api.github.com/repos/calabash/install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calabash/install/merges","archive_url":"https://api.github.com/repos/calabash/install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calabash/install/downloads","issues_url":"https://api.github.com/repos/calabash/install/issues{/number}","pulls_url":"https://api.github.com/repos/calabash/install/pulls{/number}","milestones_url":"https://api.github.com/repos/calabash/install/milestones{/number}","notifications_url":"https://api.github.com/repos/calabash/install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calabash/install/labels{/name}","releases_url":"https://api.github.com/repos/calabash/install/releases{/id}","created_at":"2015-03-08T15:46:59Z","updated_at":"2015-11-23T20:53:50Z","pushed_at":"2015-11-26T01:51:44Z","git_url":"git://github.com/calabash/install.git","ssh_url":"git@github.com:calabash/install.git","clone_url":"https://github.com/calabash/install.git","svn_url":"https://github.com/calabash/install","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calabash/install/pulls/16"},"html":{"href":"https://github.com/calabash/install/pull/16"},"issue":{"href":"https://api.github.com/repos/calabash/install/issues/16"},"comments":{"href":"https://api.github.com/repos/calabash/install/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/calabash/install/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/calabash/install/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calabash/install/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/calabash/install/statuses/91f608504f6e3cd77716a571fb2404b3e815db82"}}}}