Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning about default gems on Ruby 3.3.0 #2225

Merged
merged 2 commits into from
Jan 13, 2024

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Jan 11, 2024

Description

Since Ruby 3.3.0, RubyGems and Bundler warn if users do require the gems that will become the bundled gems in the future version of Ruby.

Please see the "Standard library updates" section for the details.
https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/

sentry-ruby uses one of those gems, bigdecimal. So now get the warning like the following.
https://github.com/getsentry/sentry-ruby/actions/runs/7463068254/job/20306920751#step:6:89

This PR adds bigdecimal to the gemspec to fix the warning.

This PR also removed unused require of base64. base64 is also the gem that will become the bundled gems. But, it seems that sentry-ruby doesn't use it now. So I just removed it.

@y-yagi y-yagi changed the title Fix warning about default gems Fix warning about default gems on Ruby 3.3.0 Jan 11, 2024
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

Merging #2225 (92d14cf) into master (bf13c7e) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2225      +/-   ##
==========================================
- Coverage   97.42%   97.42%   -0.01%     
==========================================
  Files         102      102              
  Lines        3801     3800       -1     
==========================================
- Hits         3703     3702       -1     
  Misses         98       98              
Components Coverage Δ
sentry-ruby 98.13% <ø> (+0.03%) ⬆️
sentry-rails 95.01% <ø> (ø)
sentry-sidekiq 94.70% <ø> (ø)
sentry-resque 92.06% <ø> (-1.59%) ⬇️
sentry-delayed_job 94.44% <ø> (ø)
sentry-opentelemetry 100.00% <ø> (ø)
Files Coverage Δ
sentry-ruby/lib/sentry/transport.rb 99.08% <ø> (-0.01%) ⬇️

... and 2 files with indirect coverage changes

Since Ruby 3.3.0, RubyGems and Bundler warn if users do require the
gems that will become the bundled gems in the future version of Ruby.

Please see the "Standard library updates" section for the details.
https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/

`sentry-ruby` uses one of those gems, `bigdecimal`.
So now get the warning like the following.
https://github.com/getsentry/sentry-ruby/actions/runs/7463068254/job/20306920751#step:6:89

This PR adds `bigdecimal` to the gemspec to fix the warning.
Base64 has unused since 46384cd.
@y-yagi y-yagi force-pushed the fix-warning-about-default-gems branch from f7bb6be to 92d14cf Compare January 11, 2024 08:25
Copy link
Collaborator

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@st0012 st0012 merged commit d408bdd into getsentry:master Jan 13, 2024
118 of 122 checks passed
@y-yagi y-yagi deleted the fix-warning-about-default-gems branch January 13, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants