Skip to content

Commit

Permalink
Add post_install_message in gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Jun 27, 2024
1 parent 4c8b42c commit 07fd511
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ddtrace.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions spec/ddtrace/release_gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07fd511

Please sign in to comment.