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

Add bigdecimal to runtime dependencies #1367

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

nekketsuuu
Copy link
Contributor

@nekketsuuu nekketsuuu commented May 23, 2024

Ruby 3.4 will promote bigdecimal gem to a bundled gem in order to improve maintenancebility. To migrate to Ruby 3.4 easily, Ruby 3.3 warns a use of bigdecimal if it's not added to dependencies.

/build/lib/mysql2.rb:2: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.

https://github.com/brianmario/mysql2/actions/runs/8972155446/job/24639503831#step:4:238

So this patch adds bigdecimal to runtime dependencies.

I know bigdecimal is not always necessary, but I'd like to prevent a lot of users from adding the gem to their Gemfile manually.

Ref. https://bugs.ruby-lang.org/issues/20187
Slides from RubyKaigi 2024: https://speakerdeck.com/andpad/long-journey-of-ruby-standard-library-rubykaigi-2024

Ruby 3.4 will promote bigdecimal gem to a bundled gem in order to improve maintenancebility.
To migrate to Ruby 3.4 easily, Ruby 3.3 warns a use of bigdecimal without adding it to dependencies.

> /build/lib/mysql2.rb:2: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.

So this patch adds bigdecimal to runtime dependencies.

I know bigdecimal is not always necessary, but I'd like to prevent a lot of users from adding the gem to their Gemfile manually.

Ref. https://bugs.ruby-lang.org/issues/20187
@sodabrew sodabrew merged commit 1977889 into brianmario:master Jun 18, 2024
22 of 25 checks passed
@nekketsuuu nekketsuuu deleted the nekketsuuu-bigdecimal branch June 19, 2024 02:00
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.

2 participants