{"action":"created","comment":{"url":"https://api.github.com/repos/crimethinc/website/pulls/comments/197666572","pull_request_review_id":131452251,"id":197666572,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzY2NjU3Mg==","diff_hunk":"@@ -18,9 +23,23 @@ fi\n ruby_version=`cat .ruby-version`\n \n echo \"==> Installing Ruby: $ruby_version\"\n-ruby-install ruby $ruby_version --no-reinstall\n-source /usr/local/opt/chruby/share/chruby/chruby.sh\n-chruby $ruby_version\n+if command_exists rbenv\n+then\n+    echo 'rbenv found'\n+    rbenv install -s $ruby_version\n+elif command_exists ruby-install\n+then\n+    echo 'ruby-install found'\n+    ruby-install ruby $ruby_version --no-reinstall\n+    source /usr/local/opt/chruby/share/chruby/chruby.sh\n+    chruby $ruby_version\n+else\n+    echo 'Did not find rbenv or ruby-install!'","path":"script/bootstrap","position":null,"original_position":30,"commit_id":"082f7247dd774930cbb4fa95c002c2fa9bcd0fa7","original_commit_id":"dd92aad1993064aaa7bf3d4d4dbf58b465ed900e","user":{"login":"veganstraightedge","id":4361,"node_id":"MDQ6VXNlcjQzNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/4361?v=4","gravatar_id":"","url":"https://api.github.com/users/veganstraightedge","html_url":"https://github.com/veganstraightedge","followers_url":"https://api.github.com/users/veganstraightedge/followers","following_url":"https://api.github.com/users/veganstraightedge/following{/other_user}","gists_url":"https://api.github.com/users/veganstraightedge/gists{/gist_id}","starred_url":"https://api.github.com/users/veganstraightedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veganstraightedge/subscriptions","organizations_url":"https://api.github.com/users/veganstraightedge/orgs","repos_url":"https://api.github.com/users/veganstraightedge/repos","events_url":"https://api.github.com/users/veganstraightedge/events{/privacy}","received_events_url":"https://api.github.com/users/veganstraightedge/received_events","type":"User","site_admin":false},"body":"The let’s add rbenv to Brewfile instead. I’d like these scripts to work as standalone as possible. ","created_at":"2018-06-25T02:31:34Z","updated_at":"2018-06-25T02:31:34Z","html_url":"https://github.com/crimethinc/website/pull/780#discussion_r197666572","pull_request_url":"https://api.github.com/repos/crimethinc/website/pulls/780","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/crimethinc/website/pulls/comments/197666572"},"html":{"href":"https://github.com/crimethinc/website/pull/780#discussion_r197666572"},"pull_request":{"href":"https://api.github.com/repos/crimethinc/website/pulls/780"}},"in_reply_to_id":197662578},"pull_request":{"url":"https://api.github.com/repos/crimethinc/website/pulls/780","id":196967986,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTY3OTg2","html_url":"https://github.com/crimethinc/website/pull/780","diff_url":"https://github.com/crimethinc/website/pull/780.diff","patch_url":"https://github.com/crimethinc/website/pull/780.patch","issue_url":"https://api.github.com/repos/crimethinc/website/issues/780","number":780,"state":"open","locked":false,"title":"Change bootstrap script to support different ruby managers","user":{"login":"astronaut-wannabe","id":13190980,"node_id":"MDQ6VXNlcjEzMTkwOTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13190980?v=4","gravatar_id":"","url":"https://api.github.com/users/astronaut-wannabe","html_url":"https://github.com/astronaut-wannabe","followers_url":"https://api.github.com/users/astronaut-wannabe/followers","following_url":"https://api.github.com/users/astronaut-wannabe/following{/other_user}","gists_url":"https://api.github.com/users/astronaut-wannabe/gists{/gist_id}","starred_url":"https://api.github.com/users/astronaut-wannabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronaut-wannabe/subscriptions","organizations_url":"https://api.github.com/users/astronaut-wannabe/orgs","repos_url":"https://api.github.com/users/astronaut-wannabe/repos","events_url":"https://api.github.com/users/astronaut-wannabe/events{/privacy}","received_events_url":"https://api.github.com/users/astronaut-wannabe/received_events","type":"User","site_admin":false},"body":"I think this script originally used `rbenv`, but at some point\r\nswitched to using `ruby-install`.\r\n\r\nI modified it to check for either (and `rvm` could also be added if\r\nsomeone uses that)\r\n\r\n---\r\n\r\nSome example output:\r\n\r\n```sh\r\n$ script/setup\r\n==> Installing Ruby: 2.5.1\r\n==> I looked for rbenv, but couldn't find it. Trying something else.\r\n==> rbenv found\r\n==> Installing dependencies\r\nThe Gemfile's dependencies are satisfied\r\n==> Starting postgresql\r\nService `postgresql` already started, use `brew services restart postgresql` to restart.\r\n==> Preparing database\r\nDatabase 'crimethinc_development' already exists\r\nDatabase 'crimethinc_test' already exists\r\n==> Removing old logs and tempfiles\r\n==> App is now setup!\r\n==> Next step is:\r\n    ./script/server\r\n```","created_at":"2018-06-24T20:28:21Z","updated_at":"2018-06-25T02:31:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68cbc67907f4f71d8fcfed4d9f20aa3387435e20","assignee":{"login":"astronaut-wannabe","id":13190980,"node_id":"MDQ6VXNlcjEzMTkwOTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13190980?v=4","gravatar_id":"","url":"https://api.github.com/users/astronaut-wannabe","html_url":"https://github.com/astronaut-wannabe","followers_url":"https://api.github.com/users/astronaut-wannabe/followers","following_url":"https://api.github.com/users/astronaut-wannabe/following{/other_user}","gists_url":"https://api.github.com/users/astronaut-wannabe/gists{/gist_id}","starred_url":"https://api.github.com/users/astronaut-wannabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronaut-wannabe/subscriptions","organizations_url":"https://api.github.com/users/astronaut-wannabe/orgs","repos_url":"https://api.github.com/users/astronaut-wannabe/repos","events_url":"https://api.github.com/users/astronaut-wannabe/events{/privacy}","received_events_url":"https://api.github.com/users/astronaut-wannabe/received_events","type":"User","site_admin":false},"assignees":[{"login":"astronaut-wannabe","id":13190980,"node_id":"MDQ6VXNlcjEzMTkwOTgw","avatar_url":"https://avatars1.githubusercontent.com/u/13190980?v=4","gravatar_id":"","url":"https://api.github.com/users/astronaut-wannabe","html_url":"https://github.com/astronaut-wannabe","followers_url":"https://api.github.com/users/astronaut-wannabe/followers","following_url":"https://api.github.com/users/astronaut-wannabe/following{/other_user}","gists_url":"https://api.github.com/users/astronaut-wannabe/gists{/gist_id}","starred_url":"https://api.github.com/users/astronaut-wannabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronaut-wannabe/subscriptions","organizations_url":"https://api.github.com/users/astronaut-wannabe/orgs","repos_url":"https://api.github.com/users/astronaut-wannabe/repos","events_url":"https://api.github.com/users/astronaut-wannabe/events{/privacy}","received_events_url":"https://api.github.com/users/astronaut-wannabe/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":676893245,"node_id":"MDU6TGFiZWw2NzY4OTMyNDU=","url":"https://api.github.com/repos/crimethinc/website/labels/:spider_web:%20dependencies","name":":spider_web: dependencies","color":"0025ff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/crimethinc/website/pulls/780/commits","review_comments_url":"https://api.github.com/repos/crimethinc/website/pulls/780/comments","review_comment_url":"https://api.github.com/repos/crimethinc/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crimethinc/website/issues/780/comments","statuses_url":"https://api.github.com/repos/crimethinc/website/statuses/082f7247dd774930cbb4fa95c002c2fa9bcd0fa7","head":{"label":"crimethinc:update-bootstrap-to-optionally-use-rbenv","ref":"update-bootstrap-to-optionally-use-rbenv","sha":"082f7247dd774930cbb4fa95c002c2fa9bcd0fa7","user":{"login":"crimethinc","id":21285375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMjg1Mzc1","avatar_url":"https://avatars3.githubusercontent.com/u/21285375?v=4","gravatar_id":"","url":"https://api.github.com/users/crimethinc","html_url":"https://github.com/crimethinc","followers_url":"https://api.github.com/users/crimethinc/followers","following_url":"https://api.github.com/users/crimethinc/following{/other_user}","gists_url":"https://api.github.com/users/crimethinc/gists{/gist_id}","starred_url":"https://api.github.com/users/crimethinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimethinc/subscriptions","organizations_url":"https://api.github.com/users/crimethinc/orgs","repos_url":"https://api.github.com/users/crimethinc/repos","events_url":"https://api.github.com/users/crimethinc/events{/privacy}","received_events_url":"https://api.github.com/users/crimethinc/received_events","type":"Organization","site_admin":false},"repo":{"id":66782030,"node_id":"MDEwOlJlcG9zaXRvcnk2Njc4MjAzMA==","name":"website","full_name":"crimethinc/website","owner":{"login":"crimethinc","id":21285375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMjg1Mzc1","avatar_url":"https://avatars3.githubusercontent.com/u/21285375?v=4","gravatar_id":"","url":"https://api.github.com/users/crimethinc","html_url":"https://github.com/crimethinc","followers_url":"https://api.github.com/users/crimethinc/followers","following_url":"https://api.github.com/users/crimethinc/following{/other_user}","gists_url":"https://api.github.com/users/crimethinc/gists{/gist_id}","starred_url":"https://api.github.com/users/crimethinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimethinc/subscriptions","organizations_url":"https://api.github.com/users/crimethinc/orgs","repos_url":"https://api.github.com/users/crimethinc/repos","events_url":"https://api.github.com/users/crimethinc/events{/privacy}","received_events_url":"https://api.github.com/users/crimethinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crimethinc/website","description":"Rails app that powers crimethinc.com","fork":false,"url":"https://api.github.com/repos/crimethinc/website","forks_url":"https://api.github.com/repos/crimethinc/website/forks","keys_url":"https://api.github.com/repos/crimethinc/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crimethinc/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crimethinc/website/teams","hooks_url":"https://api.github.com/repos/crimethinc/website/hooks","issue_events_url":"https://api.github.com/repos/crimethinc/website/issues/events{/number}","events_url":"https://api.github.com/repos/crimethinc/website/events","assignees_url":"https://api.github.com/repos/crimethinc/website/assignees{/user}","branches_url":"https://api.github.com/repos/crimethinc/website/branches{/branch}","tags_url":"https://api.github.com/repos/crimethinc/website/tags","blobs_url":"https://api.github.com/repos/crimethinc/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crimethinc/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crimethinc/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/crimethinc/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crimethinc/website/statuses/{sha}","languages_url":"https://api.github.com/repos/crimethinc/website/languages","stargazers_url":"https://api.github.com/repos/crimethinc/website/stargazers","contributors_url":"https://api.github.com/repos/crimethinc/website/contributors","subscribers_url":"https://api.github.com/repos/crimethinc/website/subscribers","subscription_url":"https://api.github.com/repos/crimethinc/website/subscription","commits_url":"https://api.github.com/repos/crimethinc/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/crimethinc/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/crimethinc/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/crimethinc/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/crimethinc/website/contents/{+path}","compare_url":"https://api.github.com/repos/crimethinc/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crimethinc/website/merges","archive_url":"https://api.github.com/repos/crimethinc/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crimethinc/website/downloads","issues_url":"https://api.github.com/repos/crimethinc/website/issues{/number}","pulls_url":"https://api.github.com/repos/crimethinc/website/pulls{/number}","milestones_url":"https://api.github.com/repos/crimethinc/website/milestones{/number}","notifications_url":"https://api.github.com/repos/crimethinc/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crimethinc/website/labels{/name}","releases_url":"https://api.github.com/repos/crimethinc/website/releases{/id}","deployments_url":"https://api.github.com/repos/crimethinc/website/deployments","created_at":"2016-08-28T17:44:07Z","updated_at":"2018-06-25T01:56:55Z","pushed_at":"2018-06-25T02:24:53Z","git_url":"git://github.com/crimethinc/website.git","ssh_url":"git@github.com:crimethinc/website.git","clone_url":"https://github.com/crimethinc/website.git","svn_url":"https://github.com/crimethinc/website","homepage":"https://crimethinc.com","size":49114,"stargazers_count":33,"watchers_count":33,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":21,"open_issues":45,"watchers":33,"default_branch":"master"}},"base":{"label":"crimethinc:master","ref":"master","sha":"19ad3088fd47f34ccd120ed7ee39e87a9a1ef645","user":{"login":"crimethinc","id":21285375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMjg1Mzc1","avatar_url":"https://avatars3.githubusercontent.com/u/21285375?v=4","gravatar_id":"","url":"https://api.github.com/users/crimethinc","html_url":"https://github.com/crimethinc","followers_url":"https://api.github.com/users/crimethinc/followers","following_url":"https://api.github.com/users/crimethinc/following{/other_user}","gists_url":"https://api.github.com/users/crimethinc/gists{/gist_id}","starred_url":"https://api.github.com/users/crimethinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimethinc/subscriptions","organizations_url":"https://api.github.com/users/crimethinc/orgs","repos_url":"https://api.github.com/users/crimethinc/repos","events_url":"https://api.github.com/users/crimethinc/events{/privacy}","received_events_url":"https://api.github.com/users/crimethinc/received_events","type":"Organization","site_admin":false},"repo":{"id":66782030,"node_id":"MDEwOlJlcG9zaXRvcnk2Njc4MjAzMA==","name":"website","full_name":"crimethinc/website","owner":{"login":"crimethinc","id":21285375,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMjg1Mzc1","avatar_url":"https://avatars3.githubusercontent.com/u/21285375?v=4","gravatar_id":"","url":"https://api.github.com/users/crimethinc","html_url":"https://github.com/crimethinc","followers_url":"https://api.github.com/users/crimethinc/followers","following_url":"https://api.github.com/users/crimethinc/following{/other_user}","gists_url":"https://api.github.com/users/crimethinc/gists{/gist_id}","starred_url":"https://api.github.com/users/crimethinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimethinc/subscriptions","organizations_url":"https://api.github.com/users/crimethinc/orgs","repos_url":"https://api.github.com/users/crimethinc/repos","events_url":"https://api.github.com/users/crimethinc/events{/privacy}","received_events_url":"https://api.github.com/users/crimethinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crimethinc/website","description":"Rails app that powers crimethinc.com","fork":false,"url":"https://api.github.com/repos/crimethinc/website","forks_url":"https://api.github.com/repos/crimethinc/website/forks","keys_url":"https://api.github.com/repos/crimethinc/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crimethinc/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crimethinc/website/teams","hooks_url":"https://api.github.com/repos/crimethinc/website/hooks","issue_events_url":"https://api.github.com/repos/crimethinc/website/issues/events{/number}","events_url":"https://api.github.com/repos/crimethinc/website/events","assignees_url":"https://api.github.com/repos/crimethinc/website/assignees{/user}","branches_url":"https://api.github.com/repos/crimethinc/website/branches{/branch}","tags_url":"https://api.github.com/repos/crimethinc/website/tags","blobs_url":"https://api.github.com/repos/crimethinc/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crimethinc/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crimethinc/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/crimethinc/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crimethinc/website/statuses/{sha}","languages_url":"https://api.github.com/repos/crimethinc/website/languages","stargazers_url":"https://api.github.com/repos/crimethinc/website/stargazers","contributors_url":"https://api.github.com/repos/crimethinc/website/contributors","subscribers_url":"https://api.github.com/repos/crimethinc/website/subscribers","subscription_url":"https://api.github.com/repos/crimethinc/website/subscription","commits_url":"https://api.github.com/repos/crimethinc/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/crimethinc/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/crimethinc/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/crimethinc/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/crimethinc/website/contents/{+path}","compare_url":"https://api.github.com/repos/crimethinc/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crimethinc/website/merges","archive_url":"https://api.github.com/repos/crimethinc/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crimethinc/website/downloads","issues_url":"https://api.github.com/repos/crimethinc/website/issues{/number}","pulls_url":"https://api.github.com/repos/crimethinc/website/pulls{/number}","milestones_url":"https://api.github.com/repos/crimethinc/website/milestones{/number}","notifications_url":"https://api.github.com/repos/crimethinc/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crimethinc/website/labels{/name}","releases_url":"https://api.github.com/repos/crimethinc/website/releases{/id}","deployments_url":"https://api.github.com/repos/crimethinc/website/deployments","created_at":"2016-08-28T17:44:07Z","updated_at":"2018-06-25T01:56:55Z","pushed_at":"2018-06-25T02:24:53Z","git_url":"git://github.com/crimethinc/website.git","ssh_url":"git@github.com:crimethinc/website.git","clone_url":"https://github.com/crimethinc/website.git","svn_url":"https://github.com/crimethinc/website","homepage":"https://crimethinc.com","size":49114,"stargazers_count":33,"watchers_count":33,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":21,"open_issues":45,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crimethinc/website/pulls/780"},"html":{"href":"https://github.com/crimethinc/website/pull/780"},"issue":{"href":"https://api.github.com/repos/crimethinc/website/issues/780"},"comments":{"href":"https://api.github.com/repos/crimethinc/website/issues/780/comments"},"review_comments":{"href":"https://api.github.com/repos/crimethinc/website/pulls/780/comments"},"review_comment":{"href":"https://api.github.com/repos/crimethinc/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crimethinc/website/pulls/780/commits"},"statuses":{"href":"https://api.github.com/repos/crimethinc/website/statuses/082f7247dd774930cbb4fa95c002c2fa9bcd0fa7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"veganstraightedge"}}