Skip to content

Commit 1f07fca

Browse files
committed
Replace default Ruby version with "latest"
This will prevent having to update and release a new version of `rails-new` when new versions of Ruby are released.
1 parent 89e44af commit 1f07fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rails_new.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub struct Cli {
66
#[clap(trailing_var_arg = true, required = true)]
77
/// arguments passed to `rails new`
88
pub args: Vec<String>,
9-
#[clap(long, short = 'u', default_value = "3.4.1")]
9+
#[clap(long, short = 'u', default_value = "latest")]
1010
pub ruby_version: String,
1111
#[clap(long, short = 'r')]
1212
pub rails_version: Option<String>,
@@ -55,7 +55,7 @@ mod tests {
5555

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

58-
assert_eq!(ruby_version, "3.4.1");
58+
assert_eq!(ruby_version, "latest");
5959

6060
Ok(())
6161
}

0 commit comments

Comments
 (0)