Skip to content

Commit

Permalink
Replace default Ruby version with "latest"
Browse files Browse the repository at this point in the history
This will prevent having to update and release a new version of
`rails-new` when new versions of Ruby are released.
  • Loading branch information
skipkayhil committed Jan 16, 2025
1 parent 89e44af commit 1f07fca
Showing 1 changed file with 2 additions and 2 deletions.
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.4.1")]
#[clap(long, short = 'u', default_value = "latest")]
pub ruby_version: String,
#[clap(long, short = 'r')]
pub rails_version: Option<String>,
Expand Down Expand Up @@ -55,7 +55,7 @@ mod tests {

let ruby_version = m.get_one::<String>("ruby_version").unwrap();

assert_eq!(ruby_version, "3.4.1");
assert_eq!(ruby_version, "latest");

Ok(())
}
Expand Down

0 comments on commit 1f07fca

Please sign in to comment.