diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-ruby/debug_inspector | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby/debug_inspector')
| -rw-r--r-- | dev-ruby/debug_inspector/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild | 32 | ||||
| -rw-r--r-- | dev-ruby/debug_inspector/files/debug_inspector-1.2.0-ruby34.patch | 36 | ||||
| -rw-r--r-- | dev-ruby/debug_inspector/metadata.xml | 9 |
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-ruby/debug_inspector/Manifest b/dev-ruby/debug_inspector/Manifest new file mode 100644 index 000000000000..83ba854b7e4f --- /dev/null +++ b/dev-ruby/debug_inspector/Manifest @@ -0,0 +1 @@ +DIST debug_inspector-1.2.0.tar.gz 6091 BLAKE2B 9f0f584f854ee08b220fd1753c88684cb3b17c009ded18b1f26f38c8c5d67ced7bbd3dbd1ff16c01d8c527ab270d999d4a434f362ebf2b906a887f5952d370b7 SHA512 e4328b1e36c1b196219d7e278dec2da730293857a6eb147e653f9ab6ca3628f6115f7661a98f0ca828a1a9657394aeb1392f71842a5833d8bb1c438567d4096f diff --git a/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild b/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild new file mode 100644 index 000000000000..2073606bec68 --- /dev/null +++ b/dev-ruby/debug_inspector/debug_inspector-1.2.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34 ruby40" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/debug_inspector/extconf.rb) + +RUBY_FAKEGEM_GEMSPEC="debug_inspector.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="A Ruby wrapper for the MRI 2.0 debug_inspector API" +HOMEPAGE="https://github.com/banister/debug_inspector" +SRC_URI="https://github.com/banister/debug_inspector/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( "${FILESDIR}/${P}-ruby34.patch" ) + +all_ruby_prepare() { + sed -i -e '/extensiontask/,$ s:^:#:' Rakefile || die + + sed -i -e 's/MiniTest/Minitest/' test/basic_test.rb || 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/debug_inspector/metadata.xml b/dev-ruby/debug_inspector/metadata.xml new file mode 100644 index 000000000000..c685ebad7e3a --- /dev/null +++ b/dev-ruby/debug_inspector/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
