From da4b2386c62c08273c9d01f0c8934d3b67da3934 Mon Sep 17 00:00:00 2001 From: Ivo Anjo Date: Thu, 9 May 2024 12:47:20 +0100 Subject: [PATCH] [PROF-9742] Package libdatadog v9.0.0 for Ruby **What does this PR do?** This PR includes the changes documented in the "Releasing a new version to rubygems.org" part of the README: https://github.com/datadog/libdatadog/tree/main/ruby#releasing-a-new-version-to-rubygemsorg (It's also very similar to the v7.0.0 release PR). It also includes a tiny paper cut fix: it disables the Rake `build` task which is the default way to package a Ruby gem, since we have our own custom packaging steps in the `Rakefile`. **Motivation:** Enable Ruby to use libdatadog v9.0.0. **Additional Notes:** We ended up not packaging the previous release (v8) for Ruby, so we're directly jumping from v7 to v9. **How to test the change?** I've tested this release locally using the changes in https://github.com/DataDog/dd-trace-rb/pull/3627 . As a reminder, new libdatadog releases don't get automatically picked up by dd-trace-rb, so the PR that bumps the Ruby profiler will also test this release against all supported Ruby versions. --- ruby/Rakefile | 13 ++++++++----- ruby/lib/libdatadog/version.rb | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ruby/Rakefile b/ruby/Rakefile index f5bcc53cb..495fe2948 100644 --- a/ruby/Rakefile +++ b/ruby/Rakefile @@ -11,7 +11,7 @@ require "rubygems/package" RSpec::Core::RakeTask.new(:spec) -LIB_VERSION_TO_PACKAGE = "7.0.0" +LIB_VERSION_TO_PACKAGE = "9.0.0" unless LIB_VERSION_TO_PACKAGE.start_with?(Libdatadog::LIB_VERSION) raise "`LIB_VERSION_TO_PACKAGE` setting in (#{LIB_VERSION_TO_PACKAGE}) does not match " \ "`LIB_VERSION` setting in (#{Libdatadog::LIB_VERSION})" @@ -20,22 +20,22 @@ end LIB_GITHUB_RELEASES = [ { file: "libdatadog-aarch64-alpine-linux-musl.tar.gz", - sha256: "9e3e5adb45c3a36f22005c2ace34d5c0f23bbd7fe9c9de6025e2645955ee3ed9", + sha256: "c2c6c32f612e8c1682131e72bd50492d809bac973f516e56e163e797435eef75", ruby_platform: "aarch64-linux-musl" }, { file: "libdatadog-aarch64-unknown-linux-gnu.tar.gz", - sha256: "13e2f4ccfebcfef501c84cdbd12782c1b0e9065fa8a2f47b513fc246644851cf", + sha256: "97c4fc46f92580b8929e8fcc3f51b47226836e29bce0b57ac8d3387a27a81ce1", ruby_platform: "aarch64-linux" }, { file: "libdatadog-x86_64-alpine-linux-musl.tar.gz", - sha256: "c0d6457efec7e2f73b81ba837a06e07e675d099c3be727e58e2ae1f5416c13ab", + sha256: "68e67c5e87616f830289bc85626d2062277bef54694cc6dbb445105c66fe8885", ruby_platform: "x86_64-linux-musl" }, { file: "libdatadog-x86_64-unknown-linux-gnu.tar.gz", - sha256: "f94a36d8a0061486814a23a2bc710dc7c5312be6259d6dfb02b6489ba346f2e0", + sha256: "cd89cbe480db0b828a43afd161ddd83e57319dbe3d412fa4a2d096daae244595", ruby_platform: "x86_64-linux" } ] @@ -193,3 +193,6 @@ module Helpers files end end + +Rake::Task["build"].clear +task(:build) { raise "Build task is disabled, use package instead" } diff --git a/ruby/lib/libdatadog/version.rb b/ruby/lib/libdatadog/version.rb index 2efb07c3f..5180ff1de 100644 --- a/ruby/lib/libdatadog/version.rb +++ b/ruby/lib/libdatadog/version.rb @@ -2,7 +2,7 @@ module Libdatadog # Current libdatadog version - LIB_VERSION = "7.0.0" + LIB_VERSION = "9.0.0" GEM_MAJOR_VERSION = "1" GEM_MINOR_VERSION = "0"