public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-childprocess] f45: Update to childprocess 5.1.0.
@ 2026-09-21 16:19
0 siblings, 0 replies; only message in thread
From: @ 2026-09-21 16:19 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rubygem-childprocess
Branch : f45
Commit : da9c7fc5444a753642988b0eb86b8f3581e4307a
Author : Vít Ondruch <vondruch@redhat.com>
Date : 2026-09-21T18:05:14+02:00
Stats : +13/-83 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rubygem-childprocess/c/da9c7fc5444a753642988b0eb86b8f3581e4307a?branch=f45
Log:
Update to childprocess 5.1.0.
Resolves: rhbz#2257146
Resolves: rhbz#2536998
---
diff --git a/rubygem-childprocess-4.1.0-Make-validates-cleanly-spec-compatible-with-RubyGems-3-5-.patch b/rubygem-childprocess-4.1.0-Make-validates-cleanly-spec-compatible-with-RubyGems-3-5-.patch
deleted file mode 100644
index 0c0521c..0000000
--- a/rubygem-childprocess-4.1.0-Make-validates-cleanly-spec-compatible-with-RubyGems-3-5-.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 9742a0cfa4e7c6c236299d21625dfdad7b7b6b60 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
-Date: Wed, 20 Dec 2023 12:50:13 +0100
-Subject: [PATCH] Make `validates cleanly` spec compatible with RubyGems 3.5+
-
-`rubygems/mock_gem_ui` was removed in RubyGems 3.5+:
-
-https://github.com/rubygems/rubygems/pull/6623
-
-Luckily, other PR allowed to use standard RSpec methods for `$stdout`
-testing:
-
-https://github.com/rubygems/rubygems/pull/7203
-
-Fixes #190
----
- spec/childprocess_spec.rb | 14 +++++++++-----
- 1 file changed, 9 insertions(+), 5 deletions(-)
-
-diff --git a/spec/childprocess_spec.rb b/spec/childprocess_spec.rb
-index ffd7240..48200e0 100644
---- a/spec/childprocess_spec.rb
-+++ b/spec/childprocess_spec.rb
-@@ -1,7 +1,6 @@
- # encoding: utf-8
-
- require File.expand_path('../spec_helper', __FILE__)
--require 'rubygems/mock_gem_ui'
-
-
- describe ChildProcess do
-@@ -11,12 +10,17 @@
- let(:gemspec) { eval(File.read "#{here}/../childprocess.gemspec") }
-
- it 'validates cleanly' do
-- mock_ui = Gem::MockGemUi.new
-- Gem::DefaultUserInteraction.use_ui(mock_ui) { gemspec.validate }
-+ if Gem::VERSION >= "3.5.0"
-+ expect { gemspec.validate }.not_to output(/warn/i).to_stderr
-+ else
-+ require 'rubygems/mock_gem_ui'
-
-- expect(mock_ui.error).to_not match(/warn/i)
-- end
-+ mock_ui = Gem::MockGemUi.new
-+ Gem::DefaultUserInteraction.use_ui(mock_ui) { gemspec.validate }
-
-+ expect(mock_ui.error).to_not match(/warn/i)
-+ end
-+ end
-
- it "returns self when started" do
- process = sleeping_ruby
diff --git a/rubygem-childprocess.spec b/rubygem-childprocess.spec
index c63e5e2..7d7602f 100644
--- a/rubygem-childprocess.spec
+++ b/rubygem-childprocess.spec
@@ -1,23 +1,17 @@
%global gem_name childprocess
Name: rubygem-%{gem_name}
-Version: 4.1.0
-Release: 14%{?dist}
+Version: 5.1.0
+Release: 1%{?dist}
Summary: A gem for controlling external programs running in the background
License: MIT
-URL: http://github.com/enkessler/childprocess
+URL: https://github.com/enkessler/childprocess
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# Fix `validates cleanly` spec compatibility with RubyGems 3.5+
-# https://github.com/enkessler/childprocess/pull/193
-Patch0: rubygem-childprocess-4.1.0-Make-validates-cleanly-spec-compatible-with-RubyGems-3-5-.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
-BuildRequires: rubygem(ffi)
BuildRequires: rubygem(logger)
BuildRequires: rubygem(rspec) >= 3
BuildArch: noarch
-# posix_spaw is not implemented everywhere, use just Intel for build.
-ExclusiveArch: %{ix86} x86_64 noarch
%description
This gem aims at being a simple and reliable solution for controlling external
@@ -34,10 +28,6 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
-%patch 0 -p1
-
-# ref: https://github.com/enkessler/childprocess/pull/199/
-%gemspec_add_dep -g logger
%build
gem build ../%{gem_name}-%{version}.gemspec
@@ -49,7 +39,7 @@ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
-pushd .%{gem_instdir}
+( cd .%{gem_instdir}
# We don't care about code coverage.
sed -i '/[cC]overalls/ s/^/#/' spec/spec_helper.rb
@@ -57,39 +47,32 @@ sed -i '/[cC]overalls/ s/^/#/' spec/spec_helper.rb
# important.
sed -i "/gemspec.validate/ s/^/#/" spec/childprocess_spec.rb
-# We need Unicode support to pass "ChildProcess allows unicode characters
-# in the environment" test case.
-LC_ALL=C.UTF-8 RUBYOPT=-Ilib rspec spec
-
-# Disable test failing for posix-spawn
-# https://github.com/enkessler/childprocess/issues/173
-sed -i '/^\s*it "can write to stdin interactively if duplex = true" do$/ a \
- skip' spec/io_spec.rb
-
-# Test also posix_spawn, which requires FFI.
-CHILDPROCESS_POSIX_SPAWN=true LC_ALL=C.UTF-8 RUBYOPT=-Ilib rspec spec
-popd
+rspec spec
+)
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE
%{gem_libdir}
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
-
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
-%{gem_instdir}/appveyor.yml
%{gem_instdir}/childprocess.gemspec
%{gem_instdir}/spec
%changelog
+* Mon Sep 21 2026 Vít Ondruch <vondruch@redhat.com> - 5.1.0-1
+- Update to childprocess 5.1.0.
+ Resolves: rhbz#2257146
+ Resolves: rhbz#2536998
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index 6815383..4c5b071 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (childprocess-4.1.0.gem) = e635c3acfa5ad85891c3879f240c7e96d47d7d5ec3f472f4ce6661552b0fb7bd72c5e3b9fb73f4f9312b749fbe554b4be388e56a31a3c63c39743d055d774def
+SHA512 (childprocess-5.1.0.gem) = 487ee82e6e7cc1e81ed6740e3eb54e12e9d1065de92eda71f48039e377db8a827c647ce6c9314157ece577be52519bbe014aadcda4a7a748589fad7dbf19ae3a
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-21 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 16:19 [rpms/rubygem-childprocess] f45: Update to childprocess 5.1.0
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox