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

chore: Resolve BigDecimal warnings #26012

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

blowmage
Copy link
Contributor

@blowmage blowmage commented May 31, 2024

This PR updates the gemspecs to add an explicit dependency on the bigdecimal gem for all gems that call require "bigdecimal". This resolves the following warning:

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.

closes: #25461

@blowmage blowmage changed the title Resolve BigDecimal warnings chore: Resolve BigDecimal warnings May 31, 2024
@@ -19,8 +19,9 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = ">= 2.7"

gem.add_dependency "bigdecimal", "~> 3.0"
gem.add_dependency "concurrent-ruby", "~> 1.0"
Copy link
Contributor Author

@blowmage blowmage May 31, 2024

Choose a reason for hiding this comment

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

This gem moved lines so all gem dependencies would be sorted by name.

Add bigdecimal dependency to BigQuery gemspec.
Resolves the following warning:

    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.

Reference-to: googleapis#25461
Add bigdecimal dependency to Firestore gemspec.
Resolves the following warning:

    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.

Reference-to: googleapis#25461
Add bigdecimal dependency to PubSub Gemfile.
Resolves the following warning:

    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.

Reference-to: googleapis#25461
Copy link
Member

@dazuma dazuma left a comment

Choose a reason for hiding this comment

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

Thanks @blowmage!

@dazuma dazuma merged commit 2e8393d into googleapis:main Jun 4, 2024
11 checks passed
@yoshi-approver yoshi-approver added the release-please:force-run To run release-please label Jun 4, 2024
@release-please release-please bot removed the release-please:force-run To run release-please label Jun 4, 2024
@blowmage blowmage deleted the fix/bigdecimal-require branch June 4, 2024 14:21
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.

Bigdecimal won't be part of standard library from Ruby 3.4.0 #97
3 participants