Skip to content

Commit

Permalink
Update default Ruby version to 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Apr 23, 2024
1 parent 98763bc commit 8df4b1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.unix
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/rails_new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct Cli {
#[clap(trailing_var_arg = true, required = true)]
/// arguments passed to `rails new`
pub args: Vec<String>,
#[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,
Expand Down Expand Up @@ -54,7 +54,7 @@ mod tests {
let ruby_version = m.get_one::<String>("ruby_version").unwrap();
let rails_version = m.get_one::<String>("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(())
Expand Down

0 comments on commit 8df4b1e

Please sign in to comment.