diff --git a/dev/release/post-12-bump-versions-test.rb b/dev/release/post-12-bump-versions-test.rb index bfcac9d4cd46d..51ec8e78abdbb 100644 --- a/dev/release/post-12-bump-versions-test.rb +++ b/dev/release/post-12-bump-versions-test.rb @@ -42,7 +42,7 @@ def bump_type (data || {})[:bump_type] end - def current_version + def released_version return @release_version if bump_type.nil? previous_version_components = @previous_version.split(".") @@ -55,8 +55,8 @@ def current_version previous_version_components.join(".") end - def current_compatible_version - compute_compatible_version(current_version) + def released_compatible_version + compute_compatible_version(released_version) end def bump_versions(*targets) @@ -74,12 +74,12 @@ def bump_versions(*targets) when :minor, :patch sh(env, "dev/release/post-12-bump-versions.sh", - current_version, + released_version, @release_version) else sh(env, "dev/release/post-12-bump-versions.sh", - current_version, + released_version, @next_version) end end @@ -99,7 +99,7 @@ def test_version_post_tag path: "ci/scripts/PKGBUILD", hunks: [ ["-pkgver=#{@previous_version}.9000", - "+pkgver=#{current_version}.9000"], + "+pkgver=#{released_version}.9000"], ], }, ] @@ -126,16 +126,16 @@ def test_version_post_tag path: "r/DESCRIPTION", hunks: [ ["-Version: #{@previous_version}.9000", - "+Version: #{current_version}.9000"], + "+Version: #{released_version}.9000"], ], }, { path: "r/NEWS.md", hunks: [ ["-# arrow #{@previous_version}.9000", - "+# arrow #{current_version}.9000", + "+# arrow #{released_version}.9000", "+", - "+# arrow #{current_version}",], + "+# arrow #{released_version}",], ], }, { @@ -144,8 +144,8 @@ def test_version_post_tag [ "-
#{@previous_version}.9000 (dev)
", "-#{@previous_r_version} (release)
", - "+", - "+", + "+", + "+", ], ], }, @@ -154,9 +154,9 @@ def test_version_post_tag hunks: [ [ "- \"name\": \"#{@previous_version}.9000 (dev)\",", - "+ \"name\": \"#{current_version}.9000 (dev)\",", + "+ \"name\": \"#{released_version}.9000 (dev)\",", "- \"name\": \"#{@previous_r_version} (release)\",", - "+ \"name\": \"#{current_version} (release)\",", + "+ \"name\": \"#{released_version} (release)\",", ], ], },