Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiled_starters/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby (3.3)` installed locally
1. Ensure you have `ruby (3.4)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`app/main.rb`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
4 changes: 2 additions & 2 deletions compiled_starters/ruby/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Ruby version used to run your code
# on Codecrafters.
#
# Available versions: ruby-3.3
buildpack: ruby-3.3
# Available versions: ruby-3.4
buildpack: ruby-3.4
19 changes: 19 additions & 0 deletions dockerfiles/ruby-3.4.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1.7-labs
FROM ruby:3.4-alpine3.23

# Required for installing the json/async gems
RUN apk add --no-cache \
build-base~=0.5 \
libssl3~=3.5 \
readline-dev~=8.3 \
zlib-dev~=1.3

# Re-build if Gemfile or Gemfile.lock changes
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Gemfile,Gemfile.lock"

WORKDIR /app

# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app

RUN bundle install --verbose
2 changes: 1 addition & 1 deletion solutions/ruby/01-oo8/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby (3.3)` installed locally
1. Ensure you have `ruby (3.4)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`app/main.rb`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
4 changes: 2 additions & 2 deletions solutions/ruby/01-oo8/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Ruby version used to run your code
# on Codecrafters.
#
# Available versions: ruby-3.3
buildpack: ruby-3.3
# Available versions: ruby-3.4
buildpack: ruby-3.4
2 changes: 1 addition & 1 deletion solutions/ruby/02-cz2/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby (3.3)` installed locally
1. Ensure you have `ruby (3.4)` installed locally
1. Run `./your_program.sh` to run your program, which is implemented in
`app/main.rb`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
4 changes: 2 additions & 2 deletions solutions/ruby/02-cz2/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the Ruby version used to run your code
# on Codecrafters.
#
# Available versions: ruby-3.3
buildpack: ruby-3.3
# Available versions: ruby-3.4
buildpack: ruby-3.4
2 changes: 1 addition & 1 deletion starter_templates/ruby/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
attributes:
required_executable: ruby (3.3)
required_executable: ruby (3.4)
user_editable_file: app/main.rb
Loading