ruby-changes:71355
From: Hiroshi <ko1@a...>
Date: Thu, 10 Mar 2022 13:35:47 +0900 (JST)
Subject: [ruby-changes:71355] 0024a76ea0 (master): Ignore pre-release for sync target on sync_default_gems
https://git.ruby-lang.org/ruby.git/commit/?id=0024a76ea0 From 0024a76ea0dc4e38935f12fe12804a06957eab1f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 10 Mar 2022 13:35:21 +0900 Subject: Ignore pre-release for sync target on sync_default_gems --- tool/sync_default_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index fe7510c1aa..564877a26b 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -555,7 +555,7 @@ def update_default_gems(gem, release: false) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L555 `git fetch origin --tags` if release - last_release = `git tag`.chomp.split.last + last_release = `git tag`.chomp.split.delete_if{|v| v =~ /pre|beta/ }.last `git checkout #{last_release}` else `git checkout master` -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/