From 07fd511a962d53ada45c5bc27a6dc87861481a6a Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Tue, 18 Jun 2024 18:10:57 +0200 Subject: [PATCH 1/3] Add post_install_message in gemspec --- ddtrace.gemspec | 11 +++++++++++ spec/ddtrace/release_gem_spec.rb | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/ddtrace.gemspec b/ddtrace.gemspec index 61581894f08..7d0b782dbcf 100644 --- a/ddtrace.gemspec +++ b/ddtrace.gemspec @@ -75,4 +75,15 @@ Gem::Specification.new do |spec| spec.add_dependency 'datadog-ci', '~> 0.8.1' spec.extensions = ['ext/datadog_profiling_native_extension/extconf.rb', 'ext/datadog_profiling_loader/extconf.rb'] + + spec.post_install_message = <<-MSG + Thank you for installing ddtrace. + + As of version 2, the `ddtrace` gem has been renamed to `datadog` to better represent the full suite of Datadog products. + The 1.x series will now only receive maintenance updates for security and critical bug fixes. + + To upgrade, please update your Gemfile to replace `ddtrace` with `datadog`. + + For detailed instructions on migration, see: https://github.com/DataDog/dd-trace-rb/blob/master/docs/UpgradeGuide2.md + MSG end diff --git a/spec/ddtrace/release_gem_spec.rb b/spec/ddtrace/release_gem_spec.rb index 90a89a8df51..450a247289d 100644 --- a/spec/ddtrace/release_gem_spec.rb +++ b/spec/ddtrace/release_gem_spec.rb @@ -131,5 +131,11 @@ end end end + + describe '#post_install_message' do + it do + expect(gemspec.post_install_message).to_not be_nil + end + end end end From 0a86bc449547ae9e2438d512a7a4c8d85cb99521 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Tue, 18 Jun 2024 18:11:45 +0200 Subject: [PATCH 2/3] Update unreleasec comparison in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 278f3717e4b..76192e0c435 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2826,7 +2826,7 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1 Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1 -[Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.23.2...master +[Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.23.2...1.x-stable [1.23.2]: https://github.com/DataDog/dd-trace-rb/compare/v1.23.1...v1.23.2 [1.23.1]: https://github.com/DataDog/dd-trace-rb/compare/v1.23.0...v1.23.1 [1.23.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.22.0...v1.23.0 From a2c9679c8a27db52f25e052369aef74e55d91591 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Fri, 28 Jun 2024 17:20:55 +0200 Subject: [PATCH 3/3] Update message with shorten url --- ddtrace.gemspec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ddtrace.gemspec b/ddtrace.gemspec index 7d0b782dbcf..a549a0186b8 100644 --- a/ddtrace.gemspec +++ b/ddtrace.gemspec @@ -77,13 +77,12 @@ Gem::Specification.new do |spec| spec.extensions = ['ext/datadog_profiling_native_extension/extconf.rb', 'ext/datadog_profiling_loader/extconf.rb'] spec.post_install_message = <<-MSG - Thank you for installing ddtrace. + Thank you for installing ddtrace. We have released our next major version! - As of version 2, the `ddtrace` gem has been renamed to `datadog` to better represent the full suite of Datadog products. + As of version 2, `ddtrace` gem has been renamed to `datadog`. The 1.x series will now only receive maintenance updates for security and critical bug fixes. - To upgrade, please update your Gemfile to replace `ddtrace` with `datadog`. - - For detailed instructions on migration, see: https://github.com/DataDog/dd-trace-rb/blob/master/docs/UpgradeGuide2.md + To upgrade, please replace gem `ddtrace` with gem `datadog`. + For detailed instructions on migration, see: https://dtdg.co/ruby-v2-upgrade MSG end