diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-ruby/shoulda-context | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-ruby/shoulda-context')
| -rw-r--r-- | dev-ruby/shoulda-context/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch | 26 | ||||
| -rw-r--r-- | dev-ruby/shoulda-context/metadata.xml | 12 | ||||
| -rw-r--r-- | dev-ruby/shoulda-context/shoulda-context-2.0.0-r1.ebuild | 43 |
4 files changed, 82 insertions, 0 deletions
diff --git a/dev-ruby/shoulda-context/Manifest b/dev-ruby/shoulda-context/Manifest new file mode 100644 index 000000000000..b9c8ea5cff11 --- /dev/null +++ b/dev-ruby/shoulda-context/Manifest @@ -0,0 +1 @@ +DIST shoulda-context-2.0.0.gem 34304 BLAKE2B b31f7e052b54fb60fb7fff84fc48beed406864b871f3c125db4f28d1ce0f400bb0ad3479d438d20a28f585b6e5da101b71228f598e6bdc177512f048273a8524 SHA512 c8d856a95b3dfe85fd92c79f18e03a2765ad219b83ab132017fefcffd0262b04bcebf267e6bbaec0ed3dff1d4d345bd74c1f9db1d2a22938ee8d85ee1078ac6e diff --git a/dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch b/dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch new file mode 100644 index 000000000000..78f7dfc3f0b5 --- /dev/null +++ b/dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch @@ -0,0 +1,26 @@ +From ee3aeb239ea69c9a855d64e8c1cfda87958c833d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com> +Date: Thu, 22 Dec 2022 15:03:17 +0100 +Subject: [PATCH] Use File.exist? + +`File.exists?` was deprecated while ago and removed in Ruby 3.2. + +https://bugs.ruby-lang.org/issues/17391 +https://github.com/ruby/ruby/pull/5352 +--- + exe/convert_to_should_syntax | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/exe/convert_to_should_syntax b/exe/convert_to_should_syntax +index d1264d07..ebdda984 100755 +--- a/exe/convert_to_should_syntax ++++ b/exe/convert_to_should_syntax +@@ -31,7 +31,7 @@ usage("Temp directory '#{TMP}' is not valid. Set TMPDIR environment variable to + + file = ARGV.shift + tmpfile = File.join(TMP, File.basename(file)) +-usage("File '#{file}' doesn't exist") unless File.exists?(file) ++usage("File '#{file}' doesn't exist") unless File.exist?(file) + + FileUtils.cp(file, tmpfile) + contents = File.read(tmpfile) diff --git a/dev-ruby/shoulda-context/metadata.xml b/dev-ruby/shoulda-context/metadata.xml new file mode 100644 index 000000000000..5bd462be9980 --- /dev/null +++ b/dev-ruby/shoulda-context/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">thoughtbot/shoulda-context</remote-id> + <remote-id type="rubygems">shoulda-context</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/shoulda-context/shoulda-context-2.0.0-r1.ebuild b/dev-ruby/shoulda-context/shoulda-context-2.0.0-r1.ebuild new file mode 100644 index 000000000000..fb40520c37f7 --- /dev/null +++ b/dev-ruby/shoulda-context/shoulda-context-2.0.0-r1.ebuild @@ -0,0 +1,43 @@ +# 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="CONTRIBUTING.md README.md" + +RUBY_FAKEGEM_EXTRAINSTALL="tasks" + +# Don't install the conversion script to avoid collisions with older +# shoulda. +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Context framework extracted from Shoulda" +HOMEPAGE="https://github.com/thoughtbot/shoulda-context" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86" +IUSE="doc test" + +PATCHES=( "${FILESDIR}/${P}-file-exists.patch" ) + +ruby_add_bdepend "test? ( dev-ruby/minitest:5 + >=dev-ruby/mocha-1.0 )" + +all_ruby_prepare() { + sed -e '/\(current_bundle\|CurrentBundle\)/ s:^:#:' \ + -e '/pry-byebug/ s:^:#:' \ + -e '/warnings_logger/ s:^:#: ; /WarningsLogger/,/^)/ s:^:#:' \ + -e '/rails_application_with_shoulda_context/ s:^:#:' \ + -e '2igem "minitest", "~> 5.0"' \ + -i test/test_helper.rb || die + rm -f test/shoulda/{railtie,rerun_snippet,test_framework_detection}_test.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/shoulda/*_test.rb"].each { require _1 }' || die +} |
