Skip to content

Commit 0418228

Browse files
authored
Merge pull request #64 from codecrafters-io/CC-1127
feat: update ruby version to 3.3
2 parents 9156833 + bb072e0 commit 0418228

File tree

13 files changed

+85
-9
lines changed

13 files changed

+85
-9
lines changed

compiled_starters/ruby/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Add gems here if you need to use them.
6+
# Make sure to run `bundle install` before running tests or submitting your code.

compiled_starters/ruby/Gemfile.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
5+
PLATFORMS
6+
aarch64-linux-musl
7+
arm64-darwin-21
8+
arm64-darwin-23
9+
x86_64-linux
10+
ruby
11+
12+
DEPENDENCIES
13+
14+
BUNDLED WITH
15+
2.5.6

compiled_starters/ruby/README.md

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

3131
Note: This section is for stages 2 and beyond.
3232

33-
1. Ensure you have `ruby (2.7+)` installed locally
33+
1. Ensure you have `ruby (3.3)` installed locally
3434
1. Run `./your_sqlite3.sh` to run your program, which is implemented in
3535
`app/main.rb`.
3636
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.2
11-
language_pack: ruby-3.2
10+
# Available versions: ruby-3.3
11+
language_pack: ruby-3.3

dockerfiles/ruby-3.3.Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ruby:3.3-alpine
2+
3+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Gemfile,Gemfile.lock"
4+
5+
WORKDIR /app
6+
7+
COPY Gemfile Gemfile.lock ./
8+
9+
RUN bundle install --verbose

solutions/ruby/01-init/code/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Add gems here if you need to use them.
6+
# Make sure to run `bundle install` before running tests or submitting your code.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
5+
PLATFORMS
6+
aarch64-linux-musl
7+
arm64-darwin-21
8+
arm64-darwin-23
9+
x86_64-linux
10+
ruby
11+
12+
DEPENDENCIES
13+
14+
BUNDLED WITH
15+
2.5.6

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

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

3131
Note: This section is for stages 2 and beyond.
3232

33-
1. Ensure you have `ruby (2.7+)` installed locally
33+
1. Ensure you have `ruby (3.3)` installed locally
3434
1. Run `./your_sqlite3.sh` to run your program, which is implemented in
3535
`app/main.rb`.
3636
1. Commit your changes and run `git push origin master` to submit your solution

solutions/ruby/01-init/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.2
11-
language_pack: ruby-3.2
10+
# Available versions: ruby-3.3
11+
language_pack: ruby-3.3

starter-repository-definitions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@
150150
target: your_sqlite3.sh
151151
- source: starter_templates/.gitattributes
152152
target: .gitattributes
153+
- source: starter_templates/ruby/Gemfile
154+
target: Gemfile
155+
- source: starter_templates/ruby/Gemfile.lock
156+
target: Gemfile.lock
153157
template_attributes:
154-
required_executable: "ruby (2.7+)"
158+
required_executable: "ruby (3.3)"
155159
user_editable_file: "app/main.rb"
156160

157161
- language: swift

0 commit comments

Comments
 (0)