Skip to content

Commit

Permalink
[PROF-9742] Package libdatadog v9.0.0 for Ruby
Browse files Browse the repository at this point in the history
**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
DataDog/dd-trace-rb#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.
  • Loading branch information
ivoanjo committed May 9, 2024
1 parent d3f8544 commit da4b238
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions ruby/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Rakefile> (#{LIB_VERSION_TO_PACKAGE}) does not match " \
"`LIB_VERSION` setting in <lib/libdatadog/version.rb> (#{Libdatadog::LIB_VERSION})"
Expand All @@ -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"
}
]
Expand Down Expand Up @@ -193,3 +193,6 @@ module Helpers
files
end
end

Rake::Task["build"].clear
task(:build) { raise "Build task is disabled, use package instead" }
2 changes: 1 addition & 1 deletion ruby/lib/libdatadog/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit da4b238

Please sign in to comment.