Skip to content

Commit

Permalink
Merge pull request #74 from codecrafters-io/CC-1127
Browse files Browse the repository at this point in the history
feat: update ruby version to 3.3
  • Loading branch information
ryan-gang authored Apr 15, 2024
2 parents 42eb597 + 311721e commit e54173a
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 9 deletions.
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 @@ -28,7 +28,7 @@ That's all!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby` installed locally
1. Ensure you have `ruby (3.3)` installed locally
1. Run `./your_git.sh` to run your Git implementation, 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
11 changes: 11 additions & 0 deletions dockerfiles/ruby-3.3.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ruby:3.3-alpine

ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Gemfile,Gemfile.lock"

WORKDIR /app

COPY Gemfile Gemfile.lock ./

RUN bundle install --verbose

RUN apk add --no-cache 'git>=2.40'
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 @@ -28,7 +28,7 @@ That's all!

Note: This section is for stages 2 and beyond.

1. Ensure you have `ruby` installed locally
1. Ensure you have `ruby (3.3)` installed locally
1. Run `./your_git.sh` to run your Git implementation, 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 @@ -68,8 +68,12 @@
target: your_git.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"
required_executable: "ruby (3.3)"
user_editable_file: "app/main.rb"

- language: rust
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

0 comments on commit e54173a

Please sign in to comment.