Skip to content

Commit

Permalink
Merge pull request #3723 from DataDog/tonycthsu/post-install-message
Browse files Browse the repository at this point in the history
Add post_install_message in gemspec
  • Loading branch information
TonyCTHsu authored Jun 28, 2024
2 parents 7b6ee24 + a2c9679 commit c891ba8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions ddtrace.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,14 @@ 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. We have released our next major version!
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 replace gem `ddtrace` with gem `datadog`.
For detailed instructions on migration, see: https://dtdg.co/ruby-v2-upgrade
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 c891ba8

Please sign in to comment.