From 54b56a44921c2e9645070afeed7d10f4296be188 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 9 Oct 2024 14:57:28 -0400 Subject: [PATCH 1/4] Update ruby install instructions with commands --- docs/readme/environment.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/readme/environment.md b/docs/readme/environment.md index 33c61ad3f2f..fe4cc810372 100644 --- a/docs/readme/environment.md +++ b/docs/readme/environment.md @@ -23,8 +23,17 @@ MacOS ships with an old ruby version that is incompatible with this project It is recommended to install a Ruby version manager such as [rbenv](https://github.com/rbenv/rbenv?tab=readme-ov-file#installation) +```bash +brew install rbenv +``` + Install ruby version defined in the file `.ruby-version` +```bash +rbenv install $(cat .ruby-version) +rbenv shell $(cat .ruby-version) +``` + ### Gems Install [`bundler`](https://bundler.io/) gem to manage and install gems such as Cocoapods. The `bundle install` command, which is run during `yarn setup` handles installing gem versions as specified in the project's `GemFile` From 3c9147102ec4840c64e155f7c86746ae5f5f4764 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Thu, 17 Oct 2024 10:27:53 -0400 Subject: [PATCH 2/4] Update docs/readme/environment.md --- docs/readme/environment.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/readme/environment.md b/docs/readme/environment.md index fe4cc810372..22740011d1e 100644 --- a/docs/readme/environment.md +++ b/docs/readme/environment.md @@ -30,6 +30,10 @@ brew install rbenv Install ruby version defined in the file `.ruby-version` ```bash +rbenv install +rbenv local + +# If the above fails, try this: rbenv install $(cat .ruby-version) rbenv shell $(cat .ruby-version) ``` From 7303d77690424d6f701e020a216192003e552728 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Fri, 18 Oct 2024 10:08:37 -0400 Subject: [PATCH 3/4] Revert "Update ruby install instructions with commands" This reverts commit 54b56a44921c2e9645070afeed7d10f4296be188. --- docs/readme/environment.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/readme/environment.md b/docs/readme/environment.md index 22740011d1e..33c61ad3f2f 100644 --- a/docs/readme/environment.md +++ b/docs/readme/environment.md @@ -23,21 +23,8 @@ MacOS ships with an old ruby version that is incompatible with this project It is recommended to install a Ruby version manager such as [rbenv](https://github.com/rbenv/rbenv?tab=readme-ov-file#installation) -```bash -brew install rbenv -``` - Install ruby version defined in the file `.ruby-version` -```bash -rbenv install -rbenv local - -# If the above fails, try this: -rbenv install $(cat .ruby-version) -rbenv shell $(cat .ruby-version) -``` - ### Gems Install [`bundler`](https://bundler.io/) gem to manage and install gems such as Cocoapods. The `bundle install` command, which is run during `yarn setup` handles installing gem versions as specified in the project's `GemFile` From 385a936b4b39ed14043aa727d92c3e2ab25523d8 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Fri, 18 Oct 2024 10:25:51 -0400 Subject: [PATCH 4/4] Update ruby install instructions with example commands for rbenv --- docs/readme/environment.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/readme/environment.md b/docs/readme/environment.md index 33c61ad3f2f..000279cc520 100644 --- a/docs/readme/environment.md +++ b/docs/readme/environment.md @@ -19,11 +19,18 @@ brew install watchman ### Ruby -MacOS ships with an old ruby version that is incompatible with this project +MacOS ships with an old ruby version that is incompatible with this project. -It is recommended to install a Ruby version manager such as [rbenv](https://github.com/rbenv/rbenv?tab=readme-ov-file#installation) +It is recommended to install a ruby version manager, and use it to install the ruby version defined in the file `.ruby-version`. -Install ruby version defined in the file `.ruby-version` +For example, the following commands will [install `rbenv`](https://github.com/rbenv/rbenv?tab=readme-ov-file#installation) and use it to [install the configured ruby version](https://github.com/rbenv/rbenv#installing-ruby-versions): + +```bash +brew install rbenv +rbenv init +rbenv install +rbenv local # if installation is successful, this will print the installed ruby version. +``` ### Gems