Add bigdecimal to dependencies in preparation for Ruby 3.4 where it is no longer built in.

support_ruby_3.4.x
Jason Lunn 1 year ago
parent 063c198f59
commit 084063bfac
  1. 2
      ruby/google-protobuf.gemspec
  2. 5
      ruby/lib/google/BUILD.bazel

@ -32,6 +32,8 @@ Gem::Specification.new do |s|
s.add_development_dependency "rake-compiler-dock", "= 1.2.1" s.add_development_dependency "rake-compiler-dock", "= 1.2.1"
end end
s.required_ruby_version = '>= 3.0' s.required_ruby_version = '>= 3.0'
# bigdecimal must be used as a non-built in gem as of ruby-3.4
s.add_dependency "bigdecimal"
# TODO: evaluate removing Rakefile and moving logic to extconf.rb, so that we # TODO: evaluate removing Rakefile and moving logic to extconf.rb, so that we
# can remove this runtime dependency on rake. See the discussion here for # can remove this runtime dependency on rake. See the discussion here for
# more details: # more details:

@ -81,7 +81,10 @@ ruby_library(
"ruby/lib", "ruby/lib",
], ],
visibility = ["//ruby:__pkg__"], visibility = ["//ruby:__pkg__"],
deps = ["//ruby:well_known_ruby_protos"] + select({ deps = [
"//ruby:well_known_ruby_protos",
"@protobuf_bundle//:bigdecimal",
] + select({
"//ruby:ffi_enabled": [ "//ruby:ffi_enabled": [
"@protobuf_bundle//:ffi", "@protobuf_bundle//:ffi",
"@protobuf_bundle//:ffi-compiler", "@protobuf_bundle//:ffi-compiler",

Loading…
Cancel
Save