Skip to content

Commit

Permalink
update to ruby 3.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
thejonroberts committed Dec 5, 2024
1 parent d85f847 commit 744c66a
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.4, this command
# If the project's required ruby version changes from 3.3.6, this command
# will download and compile the correct version, but it will take a long time.
if [ "$RUBY_VERSION" != "3.2.4" ]; then
if [ "$RUBY_VERSION" != "3.3.6" ]; then
rvm install $RUBY_VERSION
rvm use $RUBY_VERSION
echo "Ruby $RUBY_VERSION installed"
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.4
3.3.6
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ruby 3.2.4
ruby 3.3.6
yarn 1.22.22
nodejs 22.11.0
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.2.4-alpine AS builder
FROM ruby:3.3.6-alpine AS builder

RUN apk update && apk upgrade && apk add --update --no-cache \
build-base \
Expand All @@ -14,7 +14,7 @@ RUN bundle install

### BUILD STEP DONE ###

FROM ruby:3.2.4-alpine
FROM ruby:3.3.6-alpine

ARG RAILS_ROOT=/usr/src/app/

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

ruby "3.2.4"
ruby "3.3.6"
gem "rails", "~> 7.2"

gem "after_party" # post-deployment tasks
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ DEPENDENCIES
wicked

RUBY VERSION
ruby 3.2.4p170
ruby 3.3.6p108

BUNDLED WITH
2.5.23
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.4
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.6
1. `gem install bundler`

**node.js**
Expand Down
8 changes: 4 additions & 4 deletions doc/LINUX_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ rbenv init
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install 3.2.4
rbenv install 3.3.6
```

If you would like RVM instead of rbenv
Expand All @@ -98,9 +98,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.2.4
rvm alias create ruby 3.2.4
rvm alias create default ruby-3.2.4
rvm install 3.3.6
rvm alias create ruby 3.3.6
rvm alias create default ruby-3.3.6
```

```# Download the Chrome browser (for RSpec testing):
Expand Down
8 changes: 4 additions & 4 deletions doc/MAC_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,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.2.4
rbenv install 3.3.6
```

(Do not forget to switch 3.2.4 to the appropriate version)
(Do not forget to switch 3.3.6 to the appropriate version)

Finally, run:

```bash
rbenv local 3.2.4
rbenv local 3.3.6
```
(Do not forget to swtich 3.2.4 to the appropriate version)
(Do not forget to swtich 3.3.6 to the appropriate version)

## Nodejs

Expand Down
8 changes: 4 additions & 4 deletions doc/WSL_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.4.**
**Be sure to install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.6.**

Instructions for rbenv:

Expand All @@ -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.2.4.**
**Be sure to install the ruby version in `.ruby-version`. Right now that's Ruby 3.3.6.**

`rbenv install 3.2.4`
`rbenv install 3.3.6`

6. **Set a Ruby version to finish installation and start**

`rbenv global 3.2.4` OR `rbenv local 3.2.4`
`rbenv global 3.3.6` OR `rbenv local 3.3.6`

#### 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:
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

gemConfig = { };
# See available versions here: https://github.com/bobvanderlinden/nixpkgs-ruby/blob/master/ruby/versions.json
ruby = pkgs."ruby-3.2.4";
ruby = pkgs."ruby-3.3.6";

bundixcli = bundix.packages.${system}.default;
in rec {
Expand Down
2 changes: 1 addition & 1 deletion gemset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
sha256 = "045wzckxpwcqzrjr353cxnyaxgf0qg22jh00dcx7z38cys5g1jlr";
type = "gem";
};
version = "3.2.4";
version = "3.3.6";
};
bullet = {
dependencies = ["activesupport" "uniform_notifier"];
Expand Down

0 comments on commit 744c66a

Please sign in to comment.