From c7dd48c35fc0b106b08f28b2ce62240f4dcd4b3a Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Thu, 27 Feb 2025 09:45:58 -0500 Subject: [PATCH 1/2] update version for release --- lib/solarwinds_apm/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solarwinds_apm/version.rb b/lib/solarwinds_apm/version.rb index 260d2128..105f3a21 100644 --- a/lib/solarwinds_apm/version.rb +++ b/lib/solarwinds_apm/version.rb @@ -13,7 +13,7 @@ module SolarWindsAPM module Version MAJOR = 6 # breaking, MINOR = 1 # feature, - PATCH = 1 # fix => BFF + PATCH = 2 # fix => BFF PRE = nil STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.') From f3d0405f6f2f4da5e9e1f18cb566240131937181 Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Thu, 27 Feb 2025 10:03:52 -0500 Subject: [PATCH 2/2] update workflow for github package --- Rakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 0bb265a1..c484350a 100755 --- a/Rakefile +++ b/Rakefile @@ -297,12 +297,13 @@ task :build_gem do gemname = Dir['solarwinds_apm*.gem'].first FileUtils.mv(gemname, 'builds/') + built_gem = Dir['builds/solarwinds_apm*.gem'] + puts "\n=== last 5 built gems ===\n" - puts Dir['builds/solarwinds_apm*.gem'] + puts built_gem puts "\n=== SHA256 ===\n" - result = `ls -dt1 builds/solarwinds_apm-[^pre]*.gem | head -1` - system("shasum -a256 #{result.strip}") + system("shasum -a256 #{built_gem.first}") puts "\n=== Finished ===\n" end @@ -314,7 +315,7 @@ def find_or_build_gem(version) gem_to_push = nil if gems.empty? Rake::Task['build_gem'].execute - gem_to_push = `ls -dt1 builds/solarwinds_apm-[^pre]*.gem | head -1` + gem_to_push = Dir['builds/solarwinds_apm*.gem'].first else gem_to_push = gems.first end