summaryrefslogtreecommitdiff
path: root/dev-ruby
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/binding_of_caller/binding_of_caller-1.0.1.ebuild5
-rw-r--r--dev-ruby/dbf/Manifest1
-rw-r--r--dev-ruby/dbf/dbf-5.1.1.ebuild22
-rw-r--r--dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild8
-rw-r--r--dev-ruby/debug_inspector/files/debug_inspector-1.2.0-ruby34.patch36
-rw-r--r--dev-ruby/dry-core/dry-core-1.1.0.ebuild3
-rw-r--r--dev-ruby/dry-logic/dry-logic-1.6.0.ebuild3
-rw-r--r--dev-ruby/dry-monads/dry-monads-1.9.0.ebuild2
-rw-r--r--dev-ruby/dry-struct/dry-struct-1.8.0.ebuild2
-rw-r--r--dev-ruby/dry-types/dry-types-1.8.3.ebuild2
-rw-r--r--dev-ruby/resolv/Manifest1
-rw-r--r--dev-ruby/resolv/resolv-0.6.2.ebuild43
12 files changed, 118 insertions, 10 deletions
diff --git a/dev-ruby/binding_of_caller/binding_of_caller-1.0.1.ebuild b/dev-ruby/binding_of_caller/binding_of_caller-1.0.1.ebuild
index 90fe35a91cb9..af4a1c399335 100644
--- a/dev-ruby/binding_of_caller/binding_of_caller-1.0.1.ebuild
+++ b/dev-ruby/binding_of_caller/binding_of_caller-1.0.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby31 ruby32 ruby33"
+
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/dbf/Manifest b/dev-ruby/dbf/Manifest
index 95b06321843e..9f4c7c58fbc3 100644
--- a/dev-ruby/dbf/Manifest
+++ b/dev-ruby/dbf/Manifest
@@ -1 +1,2 @@
DIST dbf-5.0.1.gem 128512 BLAKE2B 5cac7a24c6c9c6c7ca0f96a84329d878f6f9fd30c958abeb22e3aef61f7f0ba192bc9f0f4af39076187ae201de94a5c7c6f5a24bbc2c0cbc64a13e5030f400eb SHA512 8bcdcd703ba442a6cc18419e4271ea0a3285a73fca55fc0148864458dca91e6d236e52078fb2a32af1d4593d8616dd1be8e8937aa3bae30a0cfe5bad63c45275
+DIST dbf-5.1.1.gem 128512 BLAKE2B 3ece87ada6ee00bf8c1dc759676f9e9d66c5353abcbe57d79eb9db394e22a0be46c8faecb0bf46672c0d4344d1d6adf317b3ae3ea6606cfc8cf892341851cf24 SHA512 a80ef9535b53edc58f4cf2d4d6287c6cb7d4dcc476a5e63c0515d83f1d23b7b0c52a92c1fcf1f40d460188558da00257b6a127e8aa0570b708a0396fa07053a5
diff --git a/dev-ruby/dbf/dbf-5.1.1.ebuild b/dev-ruby/dbf/dbf-5.1.1.ebuild
new file mode 100644
index 000000000000..72e481b46ef6
--- /dev/null
+++ b/dev-ruby/dbf/dbf-5.1.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_DOCDIR="docs"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Small fast library for reading dBase, xBase, Clipper, FoxPro databases"
+HOMEPAGE="https://github.com/infused/dbf"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+ruby_add_depend "dev-ruby/csv"
diff --git a/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild b/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild
index e14bbad65d44..2b12e0fb44a9 100644
--- a/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild
+++ b/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby31 ruby32 ruby33"
+
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="README.md"
@@ -21,7 +22,8 @@ SRC_URI="https://github.com/banister/debug_inspector/archive/v${PV}.tar.gz -> ${
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-ruby34.patch" )
all_ruby_prepare() {
sed -i -e '/extensiontask/,$ s:^:#:' Rakefile || die
diff --git a/dev-ruby/debug_inspector/files/debug_inspector-1.2.0-ruby34.patch b/dev-ruby/debug_inspector/files/debug_inspector-1.2.0-ruby34.patch
new file mode 100644
index 000000000000..ff01796897cf
--- /dev/null
+++ b/dev-ruby/debug_inspector/files/debug_inspector-1.2.0-ruby34.patch
@@ -0,0 +1,36 @@
+From 3984ff1756b4dd41d3f6bb8949830772a9c5d9c1 Mon Sep 17 00:00:00 2001
+From: Claudia Pellegrino <claui@users.noreply.github.com>
+Date: Tue, 8 Jul 2025 23:14:24 +0200
+Subject: [PATCH] Make unit tests work with Ruby 3.4
+
+In Ruby versions up to 3.3, a label included just the method name.
+Since Ruby version 3.4, if a method has an owner, e.g. a class, the
+label is of the form `Owner#method`.
+
+To add Ruby 3.4 compatibility, soften up the predicate so it accepts
+either form.
+
+Fixes #41.
+
+Link: https://bugs.ruby-lang.org/issues/19117
+---
+ test/basic_test.rb | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/test/basic_test.rb b/test/basic_test.rb
+index 73e6eba..52214ad 100644
+--- a/test/basic_test.rb
++++ b/test/basic_test.rb
+@@ -3,7 +3,11 @@
+ class BasicTest < Minitest::Test
+ def setup
+ @offset = DebugInspector.open do |dc|
+- dc.backtrace_locations.index { |loc| loc.path == __FILE__ and loc.label == "setup" }
++ dc.backtrace_locations.index do |loc|
++ # Since Ruby 3.4, a label includes the method owner if there is one.
++ # See also: https://bugs.ruby-lang.org/issues/19117
++ loc.path == __FILE__ and %w[setup BasicTest#setup].include?(loc.label)
++ end
+ end
+ end
+
diff --git a/dev-ruby/dry-core/dry-core-1.1.0.ebuild b/dev-ruby/dry-core/dry-core-1.1.0.ebuild
index 2352c7017c06..f15aa6a4a533 100644
--- a/dev-ruby/dry-core/dry-core-1.1.0.ebuild
+++ b/dev-ruby/dry-core/dry-core-1.1.0.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby31 ruby32 ruby33"
+
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/dry-logic/dry-logic-1.6.0.ebuild b/dev-ruby/dry-logic/dry-logic-1.6.0.ebuild
index 1d01323eaf7e..a5dbdcab388c 100644
--- a/dev-ruby/dry-logic/dry-logic-1.6.0.ebuild
+++ b/dev-ruby/dry-logic/dry-logic-1.6.0.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby31 ruby32 ruby33"
+
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/dry-monads/dry-monads-1.9.0.ebuild b/dev-ruby/dry-monads/dry-monads-1.9.0.ebuild
index 68a492c077e3..2f2521c5167c 100644
--- a/dev-ruby/dry-monads/dry-monads-1.9.0.ebuild
+++ b/dev-ruby/dry-monads/dry-monads-1.9.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-USE_RUBY="ruby32 ruby33"
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild b/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild
index c8539405ec93..08b5d6b03831 100644
--- a/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild
+++ b/dev-ruby/dry-struct/dry-struct-1.8.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-USE_RUBY="ruby32 ruby33"
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/dry-types/dry-types-1.8.3.ebuild b/dev-ruby/dry-types/dry-types-1.8.3.ebuild
index 90b56a71c9b8..4b3950a3d704 100644
--- a/dev-ruby/dry-types/dry-types-1.8.3.ebuild
+++ b/dev-ruby/dry-types/dry-types-1.8.3.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-USE_RUBY="ruby32 ruby33"
+USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/resolv/Manifest b/dev-ruby/resolv/Manifest
index 5225eb50e280..02ab7ecc0a86 100644
--- a/dev-ruby/resolv/Manifest
+++ b/dev-ruby/resolv/Manifest
@@ -1,2 +1,3 @@
DIST resolv-0.6.0.tar.gz 34562 BLAKE2B ecf189e3e0f75ef2329f0b904c1edc224e617698b313bd503329fc44444b0eb766c681dfec632a23d0ac266ccf90558afc13561bb82932c5513006d7110a2851 SHA512 46e4b42277f85fceed0308714b3253b2245f647bf100e129c2245dfc9cdc8c1c1b431ef138c3391381096173e0c0c7b67dc2003c5a16ac969603bcf01467bb4e
DIST resolv-0.6.1.tar.gz 35296 BLAKE2B af6b445d5c7a18530c11482bff71eab3c96fd2ef67364545c1776402132b22412e754f690f6f42e1048cc85e7d4f87a173991bb735d2d6dcb2fd666567787292 SHA512 d0aa365726f6d2032c2d9725d1b106c607be5c95f57e424498259ad5561ceb97d218c5685da48339f3b9ca742d9f1cfe337118a2f2f7739a3ffb9ec43d59bc81
+DIST resolv-0.6.2.tar.gz 35420 BLAKE2B b12cfcb45ce06c557ccee1926ec0dd141fd4ea11569d9ce53a6783ce751432b30c0444ff027a275291dc7e3d34b1ae53909129c2ad8da892b892b409424ce861 SHA512 9aac52aee6aa0b89b2f280fa48422bb79cee4db7408ab6508f032e5b32cadb0b3e299da8407831a81f14a0c685c1c373b76ac743ec406ee65030a7262dbe1ad3
diff --git a/dev-ruby/resolv/resolv-0.6.2.ebuild b/dev-ruby/resolv/resolv-0.6.2.ebuild
new file mode 100644
index 000000000000..0f062d15ace2
--- /dev/null
+++ b/dev-ruby/resolv/resolv-0.6.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="resolv.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Thread-aware DNS resolver library in Ruby"
+HOMEPAGE="https://github.com/ruby/resolv"
+SRC_URI="https://github.com/ruby/resolv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+
+IUSE="test"
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
+
+all_ruby_prepare() {
+ sed -e 's/__dir__/"."/' \
+ -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
+ -e 's/git ls-files -z/find * -print0/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # The extension is only compiled on win32
+ sed -e '/if RUBY_ENGINE/ s/$/ and false/' \
+ -i Rakefile || die
+}
+
+each_ruby_install() {
+ each_fakegem_install
+
+ # The extension is only compiled on Win32, but we still need to mark
+ # that task as done.
+ ruby_fakegem_extensions_installed
+}