Skip to content

Commit eacee9f

Browse files
authored
Merge pull request #477 from codecrafters-io/andy/upgrade-ruby
Update Ruby to 3.4
2 parents ebd6427 + 696e32a commit eacee9f

File tree

8 files changed

+29
-10
lines changed

8 files changed

+29
-10
lines changed

compiled_starters/ruby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `ruby (2.7)` installed locally
29+
1. Ensure you have `ruby (3.4)` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/server.rb`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

compiled_starters/ruby/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Ruby version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: ruby-3.3
11-
buildpack: ruby-3.3
10+
# Available versions: ruby-3.4
11+
buildpack: ruby-3.4

dockerfiles/ruby-3.4.Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM ruby:3.4-alpine3.23
3+
4+
# Required for installing the json/async gems
5+
RUN apk add --no-cache \
6+
build-base~=0.5 \
7+
libssl3~=3.5 \
8+
readline-dev~=8.3 \
9+
zlib-dev~=1.3
10+
11+
# Re-build if Gemfile or Gemfile.lock changes
12+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Gemfile,Gemfile.lock"
13+
14+
WORKDIR /app
15+
16+
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
17+
COPY --exclude=.git --exclude=README.md . /app
18+
19+
RUN bundle install --verbose

solutions/ruby/01-jm1/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `ruby (2.7)` installed locally
29+
1. Ensure you have `ruby (3.4)` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/server.rb`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

solutions/ruby/01-jm1/code/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Ruby version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: ruby-3.3
11-
buildpack: ruby-3.3
10+
# Available versions: ruby-3.4
11+
buildpack: ruby-3.4

solutions/ruby/02-rg2/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `ruby (2.7)` installed locally
29+
1. Ensure you have `ruby (3.4)` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/server.rb`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

solutions/ruby/02-rg2/code/codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Ruby version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: ruby-3.3
11-
buildpack: ruby-3.3
10+
# Available versions: ruby-3.4
11+
buildpack: ruby-3.4

starter_templates/ruby/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
attributes:
2-
required_executable: ruby (2.7)
2+
required_executable: ruby (3.4)
33
user_editable_file: app/server.rb

0 commit comments

Comments
 (0)