mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
data_objects: actually patch for ruby 3.2
This commit is contained in:
parent
b05840e036
commit
a5d152f6fc
2 changed files with 16 additions and 2 deletions
|
|
@ -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"
|
||||
12
dev-ruby/data_objects/files/fixnum.patch
Normal file
12
dev-ruby/data_objects/files/fixnum.patch
Normal 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
|
||||
Loading…
Reference in a new issue