public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-git] rawhide: Update to v5.0.1
@ 2026-07-31 10:18 Steve Traylen
  0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-07-31 10:18 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rubygem-git
            Branch : rawhide
            Commit : b3df3e8fa952e0a0ded781f7312545c82b25482c
            Author : Steve Traylen <steve.traylen@cern.ch>
            Date   : 2026-07-31T11:37:39+02:00
            Stats  : +41/-32 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/rubygem-git/c/b3df3e8fa952e0a0ded781f7312545c82b25482c?branch=rawhide

            Log:
            Update to v5.0.1

- Switch from unit-test to rspec testing
- Resolves: rhbz#2499445

---
diff --git a/.gitignore b/.gitignore
index c0e1e54..695277c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,5 @@ git-1.2.5.gem
 /git-4.3.0.gem
 /git-4.3.2.gem
 /ruby-git-4.3.2.tar.gz
+/git-5.0.1.gem
+/ruby-git-5.0.1.tar.gz

diff --git a/rubygem-git-coverage-flag.patch b/rubygem-git-coverage-flag.patch
new file mode 100644
index 0000000..7c37fbb
--- /dev/null
+++ b/rubygem-git-coverage-flag.patch
@@ -0,0 +1,12 @@
+diff '--color=auto' -uNr git-5.0.1.ORIG/spec/spec_helper.rb git-5.0.1/spec/spec_helper.rb
+--- git-5.0.1.ORIG/spec/spec_helper.rb	2026-07-31 11:08:24.298980936 +0200
++++ git-5.0.1/spec/spec_helper.rb	2026-07-31 11:08:39.136181368 +0200
+@@ -70,7 +70,7 @@
+ # SimpleCov's branch coverage crashes on TruffleRuby and coverage metrics
+ # are not meaningful on alternative runtimes. Skip coverage entirely.
+ #
+-SIMPLECOV_ENABLED = RUBY_ENGINE == 'ruby'
++SIMPLECOV_ENABLED = RUBY_ENGINE == 'ruby' && ENV.fetch('COVERAGE', 'true') != 'false'
+ 
+ if SIMPLECOV_ENABLED
+   require 'simplecov'

diff --git a/rubygem-git.spec b/rubygem-git.spec
index 80147b1..d179ee7 100644
--- a/rubygem-git.spec
+++ b/rubygem-git.spec
@@ -2,9 +2,9 @@
 %global gem_name git
 
 Name: rubygem-%{gem_name}
-Version: 4.3.2
+Version: 5.0.1
 Release: %autorelease
-Summary: Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary
+Summary: Ruby/Git is a Ruby library that can be used to manipulate Git repositories
 License: MIT
 URL: http://github.com/schacon/ruby-git
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
@@ -13,18 +13,20 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 # in particular this includes the tests and bin directory which was not
 # included in the gemfile.
 Source1: https://github.com/ruby-git/ruby-git/archive/v%{version}/ruby-git-%{version}.tar.gz
+# https://github.com/ruby-git/ruby-git/pull/1648
+Patch0: rubygem-git-coverage-flag.patch
 
 
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby >= 1.9
-BuildRequires: rubygem(test-unit)
 BuildRequires: git-core
-BuildRequires: rubygem(mocha)
 BuildRequires: rubygem(activesupport)
 BuildRequires: rubygem(rchardet)
 BuildRequires: rubygem(process_executer) >= 4.0.0
 BuildRequires: rubygem(addressable)
+BuildRequires: rubygem(rspec-expectations)
+BuildRequires: rubygem(rspec)
 BuildArch: noarch
 Requires:  git-core
 %description
@@ -46,15 +48,12 @@ Documentation for %{name}.
 %setup -q -n %{gem_name}-%{version}
 
 # unpack only the test files from SOURCE1.
-tar zxf %{SOURCE1} ruby-git-%{version}/tests --strip-components 1
-tar zxf %{SOURCE1} ruby-git-%{version}/bin --strip-components 1
+tar zxf %{SOURCE1} ruby-git-%{version}/spec --strip-components 1
 
-# Some tests require rubygem-minitar - skip them.
-# https://bugzilla.redhat.com/show_bug.cgi?id=2181580
-rm -f tests/units/test_archive.rb
-sed -i 's/^.*minitar.*//' tests/test_helper.rb
-# Requires writing to home directory with a generated gpg key ignore
-rm -f tests/units/test_signed_commits.rb
+%patch 0 -p1
+
+# Disable fancy formatter which requires unavailble fuubar gem.
+sed -i '/--format Fuubar/d' .rspec
 
 
 %build
@@ -71,14 +70,12 @@ mkdir -p %{buildroot}%{gem_dir}
 cp -a .%{gem_dir}/* \
         %{buildroot}%{gem_dir}/
 
+
 %check
 # The following polutes home directoy so need to find a better way
 # git fails fatally if it cannot guess an email adress
 # as is the case inside mock.
-git config --global init.defaultBranch main
-git config --global user.email "you@example.com"
-git config --global user.name "Your Name"
-ruby  -Ilib -I. -Itests -e 'Dir.glob "tests/**/*.rb", &method(:require)'
+env COVERAGE=false rspec -Ilib spec
 
 
 %files
@@ -86,11 +83,19 @@ ruby  -Ilib -I. -Itests -e 'Dir.glob "tests/**/*.rb", &method(:require)'
 %{gem_instdir}/MAINTAINERS.md
 %{gem_libdir}
 %{gem_spec}
+%doc %{gem_instdir}/README.md
+%license LICENSE
 %exclude %{gem_instdir}/LICENSE
 %exclude %{gem_cache}
+%exclude %{gem_instdir}/.dockerignore
 %exclude %{gem_instdir}/.github
 %exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.husky
 %exclude %{gem_instdir}/.yardopts
+%exclude %{gem_instdir}/.release-please-config.json
+%exclude %{gem_instdir}/.rspec
+%exclude %{gem_instdir}/.yard-lint.yml
+%exclude %{gem_instdir}/
 %exclude %{gem_instdir}/Gemfile
 %exclude %{gem_instdir}/Rakefile
 %exclude %{gem_instdir}/git.gemspec
@@ -98,27 +103,17 @@ ruby  -Ilib -I. -Itests -e 'Dir.glob "tests/**/*.rb", &method(:require)'
 %exclude %{gem_instdir}/.husky/commit-msg
 %exclude %{gem_instdir}/.release-please-manifest.json
 %exclude %{gem_instdir}/package.json
-%exclude %{gem_instdir}/release-please-config.json
 %exclude %{gem_instdir}/.rubocop.yml
 %exclude %{gem_instdir}/.rubocop_todo.yml
-%exclude %{gem_instdir}/redesign/1_architecture_existing.md
-%exclude %{gem_instdir}/redesign/2_architecture_redesign.md
-%exclude %{gem_instdir}/redesign/3_architecture_implementation.md
-%exclude %{gem_instdir}/tasks/gem_tasks.rake
-%exclude %{gem_instdir}/tasks/rubocop.rake
-%exclude %{gem_instdir}/tasks/test.rake
-%exclude %{gem_instdir}/tasks/test_gem.rake
-%exclude %{gem_instdir}/tasks/yard.rake
-%exclude %{gem_instdir}/redesign/index.md
+%exclude %{gem_instdir}/redesign
+%exclude %{gem_instdir}/tasks
+%exclude %{gem_instdir}/docker
 
 
 
-%license LICENSE
-
-
 %files doc
 %doc %{gem_docdir}
-%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/UPGRADING.md
 %doc %{gem_instdir}/CHANGELOG.md
 %doc %{gem_instdir}/CONTRIBUTING.md
 %doc %{gem_instdir}/AI_POLICY.md

diff --git a/sources b/sources
index 85282c2..c9b0c95 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (git-4.3.2.gem) = dfc938b3a65e57fa3ba19fe4bbd2ee3819113f9f3987b1a3419933b0be7b6f70d46bb2d2ab5500a5e8462bedfffa138b016cac3617593f361c4515cb14b28917
-SHA512 (ruby-git-4.3.2.tar.gz) = bcfb14c18c6829bf9b83f857182da896482eb68cc79a30f39c426979e407b4f21cbe198b87ab89c53fe6b91dd831de30bb2cf189a12672e9cd74c55e3152c359
+SHA512 (git-5.0.1.gem) = 931188724844bba8911af3583844dc41206757cd2633a2809bc48ff5db0c4676afce286265c3f78b51e94bbc3ee1be297ad6172a94d58c756d40f278798af5ca
+SHA512 (ruby-git-5.0.1.tar.gz) = 37fa12f7942fbe601342c1ac9bea605b042710540e319436c464a8871e487a870ff8842be58a34f3ff00c71a0f9798b6cdbfe79bbdda9e08b9ecc644b87ec42d

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-31 10:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31 10:18 [rpms/rubygem-git] rawhide: Update to v5.0.1 Steve Traylen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox