{"action":"created","comment":{"url":"https://api.github.com/repos/neonichu/xcode-install/pulls/comments/41653410","id":41653410,"diff_hunk":"@@ -0,0 +1,16 @@\n+require File.expand_path('../spec_helper', __FILE__)\n+\n+module XcodeInstall\n+  describe Command::InstallCLITools do\n+    it 'fails if tools are already installed' do\n+      Command::InstallCLITools.any_instance.expects(:installed?).returns(true)\n+      lambda { Command::InstallCLITools.run }.should.raise(SystemExit)","path":"spec/cli_spec.rb","position":7,"original_position":7,"commit_id":"e189cdf6948b187f095fef7a32e67fee39b1c511","original_commit_id":"c7170ea2867cd0647edec5b21fe8daf54fec3ac3","user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"body":"ah nvm, there's also a class method","created_at":"2015-10-09T17:04:40Z","updated_at":"2015-10-09T17:04:40Z","html_url":"https://github.com/neonichu/xcode-install/pull/64#discussion_r41653410","pull_request_url":"https://api.github.com/repos/neonichu/xcode-install/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/neonichu/xcode-install/pulls/comments/41653410"},"html":{"href":"https://github.com/neonichu/xcode-install/pull/64#discussion_r41653410"},"pull_request":{"href":"https://api.github.com/repos/neonichu/xcode-install/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/neonichu/xcode-install/pulls/64","id":46976129,"html_url":"https://github.com/neonichu/xcode-install/pull/64","diff_url":"https://github.com/neonichu/xcode-install/pull/64.diff","patch_url":"https://github.com/neonichu/xcode-install/pull/64.patch","issue_url":"https://api.github.com/repos/neonichu/xcode-install/issues/64","number":64,"state":"open","locked":false,"title":"Add xcode-install install cli_tools","user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"body":"Credit to https://github.com/timsutton/osx-vm-templates/blob/master/scripts/xcode-cli-tools.sh for figuring this out. Hi @timsutton :wave:!","created_at":"2015-10-07T00:46:38Z","updated_at":"2015-10-09T17:04:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13f6da484f9539963a78b4ae2845c72e820ac44a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neonichu/xcode-install/pulls/64/commits","review_comments_url":"https://api.github.com/repos/neonichu/xcode-install/pulls/64/comments","review_comment_url":"https://api.github.com/repos/neonichu/xcode-install/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neonichu/xcode-install/issues/64/comments","statuses_url":"https://api.github.com/repos/neonichu/xcode-install/statuses/e189cdf6948b187f095fef7a32e67fee39b1c511","head":{"label":"jpsim:cli-tools","ref":"cli-tools","sha":"e189cdf6948b187f095fef7a32e67fee39b1c511","user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"repo":{"id":40028078,"name":"xcode-install","full_name":"jpsim/xcode-install","owner":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpsim/xcode-install","description":"Install and update your Xcodes.","fork":true,"url":"https://api.github.com/repos/jpsim/xcode-install","forks_url":"https://api.github.com/repos/jpsim/xcode-install/forks","keys_url":"https://api.github.com/repos/jpsim/xcode-install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpsim/xcode-install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpsim/xcode-install/teams","hooks_url":"https://api.github.com/repos/jpsim/xcode-install/hooks","issue_events_url":"https://api.github.com/repos/jpsim/xcode-install/issues/events{/number}","events_url":"https://api.github.com/repos/jpsim/xcode-install/events","assignees_url":"https://api.github.com/repos/jpsim/xcode-install/assignees{/user}","branches_url":"https://api.github.com/repos/jpsim/xcode-install/branches{/branch}","tags_url":"https://api.github.com/repos/jpsim/xcode-install/tags","blobs_url":"https://api.github.com/repos/jpsim/xcode-install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpsim/xcode-install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpsim/xcode-install/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpsim/xcode-install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpsim/xcode-install/statuses/{sha}","languages_url":"https://api.github.com/repos/jpsim/xcode-install/languages","stargazers_url":"https://api.github.com/repos/jpsim/xcode-install/stargazers","contributors_url":"https://api.github.com/repos/jpsim/xcode-install/contributors","subscribers_url":"https://api.github.com/repos/jpsim/xcode-install/subscribers","subscription_url":"https://api.github.com/repos/jpsim/xcode-install/subscription","commits_url":"https://api.github.com/repos/jpsim/xcode-install/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpsim/xcode-install/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpsim/xcode-install/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpsim/xcode-install/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpsim/xcode-install/contents/{+path}","compare_url":"https://api.github.com/repos/jpsim/xcode-install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpsim/xcode-install/merges","archive_url":"https://api.github.com/repos/jpsim/xcode-install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpsim/xcode-install/downloads","issues_url":"https://api.github.com/repos/jpsim/xcode-install/issues{/number}","pulls_url":"https://api.github.com/repos/jpsim/xcode-install/pulls{/number}","milestones_url":"https://api.github.com/repos/jpsim/xcode-install/milestones{/number}","notifications_url":"https://api.github.com/repos/jpsim/xcode-install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpsim/xcode-install/labels{/name}","releases_url":"https://api.github.com/repos/jpsim/xcode-install/releases{/id}","created_at":"2015-07-31T22:57:51Z","updated_at":"2015-07-31T22:57:52Z","pushed_at":"2015-10-09T16:47:09Z","git_url":"git://github.com/jpsim/xcode-install.git","ssh_url":"git@github.com:jpsim/xcode-install.git","clone_url":"https://github.com/jpsim/xcode-install.git","svn_url":"https://github.com/jpsim/xcode-install","homepage":null,"size":263,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"neonichu:master","ref":"master","sha":"1c05c302ff1d0ee2a13ebacaab7de2689811ce7c","user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"repo":{"id":33631352,"name":"xcode-install","full_name":"neonichu/xcode-install","owner":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neonichu/xcode-install","description":"Install and update your Xcodes.","fork":false,"url":"https://api.github.com/repos/neonichu/xcode-install","forks_url":"https://api.github.com/repos/neonichu/xcode-install/forks","keys_url":"https://api.github.com/repos/neonichu/xcode-install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neonichu/xcode-install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neonichu/xcode-install/teams","hooks_url":"https://api.github.com/repos/neonichu/xcode-install/hooks","issue_events_url":"https://api.github.com/repos/neonichu/xcode-install/issues/events{/number}","events_url":"https://api.github.com/repos/neonichu/xcode-install/events","assignees_url":"https://api.github.com/repos/neonichu/xcode-install/assignees{/user}","branches_url":"https://api.github.com/repos/neonichu/xcode-install/branches{/branch}","tags_url":"https://api.github.com/repos/neonichu/xcode-install/tags","blobs_url":"https://api.github.com/repos/neonichu/xcode-install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neonichu/xcode-install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neonichu/xcode-install/git/refs{/sha}","trees_url":"https://api.github.com/repos/neonichu/xcode-install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neonichu/xcode-install/statuses/{sha}","languages_url":"https://api.github.com/repos/neonichu/xcode-install/languages","stargazers_url":"https://api.github.com/repos/neonichu/xcode-install/stargazers","contributors_url":"https://api.github.com/repos/neonichu/xcode-install/contributors","subscribers_url":"https://api.github.com/repos/neonichu/xcode-install/subscribers","subscription_url":"https://api.github.com/repos/neonichu/xcode-install/subscription","commits_url":"https://api.github.com/repos/neonichu/xcode-install/commits{/sha}","git_commits_url":"https://api.github.com/repos/neonichu/xcode-install/git/commits{/sha}","comments_url":"https://api.github.com/repos/neonichu/xcode-install/comments{/number}","issue_comment_url":"https://api.github.com/repos/neonichu/xcode-install/issues/comments{/number}","contents_url":"https://api.github.com/repos/neonichu/xcode-install/contents/{+path}","compare_url":"https://api.github.com/repos/neonichu/xcode-install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neonichu/xcode-install/merges","archive_url":"https://api.github.com/repos/neonichu/xcode-install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neonichu/xcode-install/downloads","issues_url":"https://api.github.com/repos/neonichu/xcode-install/issues{/number}","pulls_url":"https://api.github.com/repos/neonichu/xcode-install/pulls{/number}","milestones_url":"https://api.github.com/repos/neonichu/xcode-install/milestones{/number}","notifications_url":"https://api.github.com/repos/neonichu/xcode-install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neonichu/xcode-install/labels{/name}","releases_url":"https://api.github.com/repos/neonichu/xcode-install/releases{/id}","created_at":"2015-04-08T20:47:32Z","updated_at":"2015-10-07T19:10:31Z","pushed_at":"2015-10-09T16:47:09Z","git_url":"git://github.com/neonichu/xcode-install.git","ssh_url":"git@github.com:neonichu/xcode-install.git","clone_url":"https://github.com/neonichu/xcode-install.git","svn_url":"https://github.com/neonichu/xcode-install","homepage":null,"size":577,"stargazers_count":302,"watchers_count":302,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":20,"forks":15,"open_issues":20,"watchers":302,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neonichu/xcode-install/pulls/64"},"html":{"href":"https://github.com/neonichu/xcode-install/pull/64"},"issue":{"href":"https://api.github.com/repos/neonichu/xcode-install/issues/64"},"comments":{"href":"https://api.github.com/repos/neonichu/xcode-install/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/neonichu/xcode-install/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/neonichu/xcode-install/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neonichu/xcode-install/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/neonichu/xcode-install/statuses/e189cdf6948b187f095fef7a32e67fee39b1c511"}}}}