data_objects: actually patch for ruby 3.2

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-12-04 15:07:53 -05:00
parent b05840e036
commit a5d152f6fc
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 16 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
USE_RUBY="ruby31 ruby32"
@ -28,6 +28,8 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
PATCHES=( "${FILESDIR}"/fixnum.patch )
ruby_add_bdepend "test? ( >=dev-ruby/yard-0.5 >=dev-ruby/rspec-2.5 )"
ruby_add_rdepend ">=dev-ruby/addressable-2.1"

View file

@ -0,0 +1,12 @@
diff -Naur data_objects-0.10.17/lib/data_objects/pooling.rb data_objects-0.10.17_ruby3/lib/data_objects/pooling.rb
--- data_objects-0.10.17/lib/data_objects/pooling.rb 2024-12-04 14:56:52.395632266 -0500
+++ data_objects-0.10.17_ruby3/lib/data_objects/pooling.rb 2024-12-04 14:58:36.111921235 -0500
@@ -146,7 +146,7 @@
attr_reader :used
def initialize(max_size, resource, args)
- raise ArgumentError.new("+max_size+ should be a Fixnum but was #{max_size.inspect}") unless Fixnum === max_size
+ raise ArgumentError.new("+max_size+ should be an Integer but was #{max_size.inspect}") unless Integer === max_size
raise ArgumentError.new("+resource+ should be a Class but was #{resource.inspect}") unless Class === resource
@max_size = max_size