From 8df4b1ee3f6f4985299ffa72d57db3acd9a6f50d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 23 Apr 2024 21:43:14 +0000 Subject: [PATCH] Update default Ruby version to 3.3.1 --- Dockerfile | 2 +- Dockerfile.unix | 2 +- src/rails_new.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb09298..184ed37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG RUBY_VERSION=3.2.3 +ARG RUBY_VERSION=3.3.1 FROM ruby:${RUBY_VERSION} ARG RAILS_VERSION # Install Rails based on the version specified but if not specified, install the latest version. diff --git a/Dockerfile.unix b/Dockerfile.unix index 773cd8c..3e29b2f 100644 --- a/Dockerfile.unix +++ b/Dockerfile.unix @@ -1,4 +1,4 @@ -ARG RUBY_VERSION=3.2.3 +ARG RUBY_VERSION=3.3.1 FROM ruby:${RUBY_VERSION} ARG USER_ID=1000 ARG GROUP_ID=1000 diff --git a/src/rails_new.rs b/src/rails_new.rs index 3faac87..02db921 100644 --- a/src/rails_new.rs +++ b/src/rails_new.rs @@ -6,7 +6,7 @@ pub struct Cli { #[clap(trailing_var_arg = true, required = true)] /// arguments passed to `rails new` pub args: Vec, - #[clap(long, short = 'u', default_value = "3.2.3")] + #[clap(long, short = 'u', default_value = "3.3.1")] pub ruby_version: String, #[clap(long, short = 'r', default_value = "7.1.3")] pub rails_version: String, @@ -54,7 +54,7 @@ mod tests { let ruby_version = m.get_one::("ruby_version").unwrap(); let rails_version = m.get_one::("rails_version").unwrap(); - assert_eq!(ruby_version, "3.2.3"); + assert_eq!(ruby_version, "3.3.1"); assert_eq!(rails_version, "7.1.3"); Ok(())