From 937baa1a653a7db582f2a3f1b82efffd4a5a9388 Mon Sep 17 00:00:00 2001 From: Will Thurston <94195990+wthurston@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:33:26 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Upgrade=20Ruby=203.3.8=20=E2=86=92=203.3.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/Dockerfile | 4 ++-- .devcontainer/post-create.sh | 4 ++-- .ruby-version | 2 +- .tool-versions | 2 +- Dockerfile | 4 ++-- Gemfile | 2 +- Gemfile.lock | 2 +- README.md | 2 +- flake.nix | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6109a07dee..6080811e25 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,2 +1,2 @@ -FROM mcr.microsoft.com/devcontainers/ruby:dev-3.2-buster -RUN apt -y update && apt install -y vim curl gpg postgresql postgresql-contrib tzdata imagemagick +FROM mcr.microsoft.com/devcontainers/ruby:dev-3.3-bookworm +RUN apt-get update && apt-get install -y vim curl gpg postgresql postgresql-contrib tzdata imagemagick diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index d0adce7c34..723347c6cc 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -3,9 +3,9 @@ RUBY_VERSION="$(cat .ruby-version | tr -d '\n')" # copy the file only if it doesn't already exist cp -n .devcontainer/.env.codespaces .env -# If the project's required ruby version changes from 3.3.8, this command +# If the project's required ruby version changes from 3.3.10, this command # will download and compile the correct version, but it will take a long time. -if [ "$RUBY_VERSION" != "3.3.8" ]; then +if [ "$RUBY_VERSION" != "3.3.10" ]; then rvm install $RUBY_VERSION rvm use $RUBY_VERSION echo "Ruby $RUBY_VERSION installed" diff --git a/.ruby-version b/.ruby-version index 37d02a6e38..5f6fc5edc2 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.8 +3.3.10 diff --git a/.tool-versions b/.tool-versions index 5978c12138..0c44ddf2a4 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -ruby 3.3.8 +ruby 3.3.10 nodejs 22.11.0 diff --git a/Dockerfile b/Dockerfile index 3f225f4199..c79a3a6105 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.3.8-alpine AS builder +FROM ruby:3.3.10-alpine AS builder RUN apk update && apk upgrade && apk add --update --no-cache \ build-base \ @@ -17,7 +17,7 @@ RUN bundle install ### BUILD STEP DONE ### -FROM ruby:3.3.8-alpine +FROM ruby:3.3.10-alpine ARG RAILS_ROOT=/usr/src/app/ diff --git a/Gemfile b/Gemfile index bfba58b670..b86b33a90e 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -ruby "3.3.8" +ruby "3.3.10" gem "rails", "~> 7.2" gem "after_party" # post-deployment tasks diff --git a/Gemfile.lock b/Gemfile.lock index c322949710..6c8ee9fd3b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -798,7 +798,7 @@ DEPENDENCIES wicked RUBY VERSION - ruby 3.3.8p144 + ruby 3.3.10p183 BUNDLED WITH 2.6.6 diff --git a/README.md b/README.md index 2aa345d350..c1ef6205dc 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ The complete [role description of a CASA volunteer](https://pgcasa.org/volunteer **Ruby** 1. Install a ruby version manager: [rvm](https://rvm.io/) or [rbenv](https://github.com/rbenv/rbenv) -1. when you cd into the project directory, let your version manager install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.8 +1. when you cd into the project directory, let your version manager install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.10 1. `gem install bundler` **node.js** diff --git a/flake.nix b/flake.nix index 6aecc1da9e..79a34b4c41 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ gemConfig = { }; # See available versions here: https://github.com/bobvanderlinden/nixpkgs-ruby/blob/master/ruby/versions.json - ruby = pkgs."ruby-3.3.8"; + ruby = pkgs."ruby-3.3.10"; bundixcli = bundix.packages.${system}.default; in rec { From 670ccd511b71e5f58770ceb2ddfc1c427233b714 Mon Sep 17 00:00:00 2001 From: Will Thurston <94195990+wthurston@users.noreply.github.com> Date: Mon, 16 Feb 2026 16:43:21 +0000 Subject: [PATCH 2/2] update ruby version references in docs --- doc/LINUX_SETUP.md | 8 ++++---- doc/MAC_SETUP.md | 8 ++++---- doc/WSL_SETUP.md | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/LINUX_SETUP.md b/doc/LINUX_SETUP.md index 8dac179cea..baea9eb7c2 100644 --- a/doc/LINUX_SETUP.md +++ b/doc/LINUX_SETUP.md @@ -84,7 +84,7 @@ git clone https://github.com/rbenv/rbenv.git ~/.rbenv # fetch list of ruby versions git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build -rbenv install 3.3.6 +rbenv install 3.3.10 ``` If you would like RVM instead of rbenv @@ -95,9 +95,9 @@ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703 \curl -sSL https://get.rvm.io | bash . ./.bashrc rvm get head -rvm install 3.3.6 -rvm alias create ruby 3.3.6 -rvm alias create default ruby-3.3.6 +rvm install 3.3.10 +rvm alias create ruby 3.3.10 +rvm alias create default ruby-3.3.10 ``` ```# Download the Chrome browser (for RSpec testing): diff --git a/doc/MAC_SETUP.md b/doc/MAC_SETUP.md index 2f8546e2af..20007e0a19 100644 --- a/doc/MAC_SETUP.md +++ b/doc/MAC_SETUP.md @@ -56,17 +56,17 @@ Next, install the version of Ruby that this project uses. This can be found by c To install the appropriate ruby version, run: ```bash -rbenv install 3.3.6 +rbenv install 3.3.10 ``` -(Do not forget to switch 3.3.6 to the appropriate version) +(Do not forget to switch 3.3.10 to the appropriate version) Finally, run: ```bash -rbenv local 3.3.6 +rbenv local 3.3.10 ``` -(Do not forget to swtich 3.3.6 to the appropriate version) +(Do not forget to swtich 3.3.10 to the appropriate version) ## Nodejs diff --git a/doc/WSL_SETUP.md b/doc/WSL_SETUP.md index 5f0c22c569..e6e0436f09 100644 --- a/doc/WSL_SETUP.md +++ b/doc/WSL_SETUP.md @@ -28,7 +28,7 @@ You will need the following local tools installed: Install a ruby version manager like [rbenv](https://github.com/rbenv/rbenv#installation) - **Be sure to install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.6.** + **Be sure to install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.10.** Instructions for rbenv: @@ -48,13 +48,13 @@ Instructions for rbenv: 5. **[Install Ruby](https://github.com/rbenv/rbenv#installing-ruby-versions)** - **Be sure to install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.6.** + **Be sure to install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.10.** - `rbenv install 3.3.6` + `rbenv install 3.3.10` 6. **Set a Ruby version to finish installation and start** - `rbenv global 3.3.6` OR `rbenv local 3.3.6` + `rbenv global 3.3.10` OR `rbenv local 3.3.10` #### Troubleshooting If you are on Ubuntu in Windows Subsystem for Linux (WSL) and `rbenv install` indicates that the Ruby version is unavailable, you might be using Ubuntu's default install of `ruby-build`, which only comes with old installs of Ruby (ending before 2.6.) You should uninstall rvm and ruby-build's apt packages (`apt remove rvm ruby-build`) and install them with Git like this: