diff --git a/sem-version b/sem-version index feb7a707..36a51bd4 100755 --- a/sem-version +++ b/sem-version @@ -47,6 +47,7 @@ version::change_ruby() { [[ "$software_version" == "3.1" ]] && software_version="3.1.6" [[ "$software_version" == "3.2" ]] && software_version="3.2.6" [[ "$software_version" == "3.3" ]] && software_version="3.3.6" + [[ "$software_version" == "3.4" ]] && software_version="3.4.1" if ! [ -d ~/.rbenv/versions/"${software_version}" ]; then sem-install ruby "${software_version}" diff --git a/tests/sem_version_focal/ruby.bats b/tests/sem_version_focal/ruby.bats index 65cdf8cb..5eeb8654 100644 --- a/tests/sem_version_focal/ruby.bats +++ b/tests/sem_version_focal/ruby.bats @@ -78,6 +78,11 @@ setup() { assert_success run ruby --version assert_line --partial "ruby 3.3.6" + + run sem-version ruby 3.4 + assert_success + run ruby --version + assert_line --partial "ruby 3.4.1" } @test "change ruby to 4.0.1" { diff --git a/tests/sem_version_jammy/ruby.bats b/tests/sem_version_jammy/ruby.bats index 65cdf8cb..5eeb8654 100644 --- a/tests/sem_version_jammy/ruby.bats +++ b/tests/sem_version_jammy/ruby.bats @@ -78,6 +78,11 @@ setup() { assert_success run ruby --version assert_line --partial "ruby 3.3.6" + + run sem-version ruby 3.4 + assert_success + run ruby --version + assert_line --partial "ruby 3.4.1" } @test "change ruby to 4.0.1" { diff --git a/tests/sem_version_noble/ruby.bats b/tests/sem_version_noble/ruby.bats index 65cdf8cb..5eeb8654 100644 --- a/tests/sem_version_noble/ruby.bats +++ b/tests/sem_version_noble/ruby.bats @@ -78,6 +78,11 @@ setup() { assert_success run ruby --version assert_line --partial "ruby 3.3.6" + + run sem-version ruby 3.4 + assert_success + run ruby --version + assert_line --partial "ruby 3.4.1" } @test "change ruby to 4.0.1" {