Skip to content

Commit 13036c7

Browse files
authored
Merge pull request #193 from codecrafters-io/andy/upgrade-ruby
CC-2062: Update Ruby to 3.4
2 parents 257e49e + 506f336 commit 13036c7

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
@@ -27,7 +27,7 @@ Time to move on to the next stage!
2727

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

30-
1. Ensure you have `ruby (3.3)` installed locally
30+
1. Ensure you have `ruby (3.4)` installed locally
3131
1. Run `./your_program.sh` to run your program, which is implemented in
3232
`app/main.rb`.
3333
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-oo8/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Time to move on to the next stage!
2727

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

30-
1. Ensure you have `ruby (3.3)` installed locally
30+
1. Ensure you have `ruby (3.4)` installed locally
3131
1. Run `./your_program.sh` to run your program, which is implemented in
3232
`app/main.rb`.
3333
1. Commit your changes and run `git push origin master` to submit your solution

solutions/ruby/01-oo8/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-cz2/code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Time to move on to the next stage!
2727

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

30-
1. Ensure you have `ruby (3.3)` installed locally
30+
1. Ensure you have `ruby (3.4)` installed locally
3131
1. Run `./your_program.sh` to run your program, which is implemented in
3232
`app/main.rb`.
3333
1. Commit your changes and run `git push origin master` to submit your solution

solutions/ruby/02-cz2/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 (3.3)
2+
required_executable: ruby (3.4)
33
user_editable_file: app/main.rb

0 commit comments

Comments
 (0)