Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update ruby version to 3.3 #64

Merged
merged 1 commit into from
Apr 15, 2024
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
6 changes: 6 additions & 0 deletions compiled_starters/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Add gems here if you need to use them.
# Make sure to run `bundle install` before running tests or submitting your code.
15 changes: 15 additions & 0 deletions compiled_starters/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
GEM
remote: https://rubygems.org/
specs:

PLATFORMS
aarch64-linux-musl
arm64-darwin-21
arm64-darwin-23
x86_64-linux
ruby

DEPENDENCIES

BUNDLED WITH
2.5.6
2 changes: 1 addition & 1 deletion compiled_starters/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby (2.7+)` installed locally
1. Ensure you have `ruby (3.3)` installed locally
1. Run `./your_sqlite3.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.2
language_pack: ruby-3.2
# Available versions: ruby-3.3
language_pack: ruby-3.3
9 changes: 9 additions & 0 deletions dockerfiles/ruby-3.3.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ruby:3.3-alpine

ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Gemfile,Gemfile.lock"

WORKDIR /app

COPY Gemfile Gemfile.lock ./

RUN bundle install --verbose
6 changes: 6 additions & 0 deletions solutions/ruby/01-init/code/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Add gems here if you need to use them.
# Make sure to run `bundle install` before running tests or submitting your code.
15 changes: 15 additions & 0 deletions solutions/ruby/01-init/code/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
GEM
remote: https://rubygems.org/
specs:

PLATFORMS
aarch64-linux-musl
arm64-darwin-21
arm64-darwin-23
x86_64-linux
ruby

DEPENDENCIES

BUNDLED WITH
2.5.6
2 changes: 1 addition & 1 deletion solutions/ruby/01-init/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Time to move on to the next stage!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby (2.7+)` installed locally
1. Ensure you have `ruby (3.3)` installed locally
1. Run `./your_sqlite3.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-init/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.2
language_pack: ruby-3.2
# Available versions: ruby-3.3
language_pack: ruby-3.3
6 changes: 5 additions & 1 deletion starter-repository-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@
target: your_sqlite3.sh
- source: starter_templates/.gitattributes
target: .gitattributes
- source: starter_templates/ruby/Gemfile
target: Gemfile
- source: starter_templates/ruby/Gemfile.lock
target: Gemfile.lock
template_attributes:
required_executable: "ruby (2.7+)"
required_executable: "ruby (3.3)"
user_editable_file: "app/main.rb"

- language: swift
Expand Down
4 changes: 2 additions & 2 deletions starter_templates/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ language_pack: nodejs-18
language_pack: c-9.2
{{/ language_is_c }}
{{# language_is_ruby }}
# Available versions: ruby-3.2
language_pack: ruby-3.2
# Available versions: ruby-3.3
language_pack: ruby-3.3
{{/ language_is_ruby }}
{{# language_is_rust }}
# Available versions: rust-1.77
Expand Down
6 changes: 6 additions & 0 deletions starter_templates/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Add gems here if you need to use them.
# Make sure to run `bundle install` before running tests or submitting your code.
15 changes: 15 additions & 0 deletions starter_templates/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
GEM
remote: https://rubygems.org/
specs:

PLATFORMS
aarch64-linux-musl
arm64-darwin-21
arm64-darwin-23
x86_64-linux
ruby

DEPENDENCIES

BUNDLED WITH
2.5.6
Loading