Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
Mamoru TASAKA
8e9a277f80 upload source 2026-01-02 17:00:22 +09:00
Mamoru TASAKA
e432af38cc indentation 2026-01-02 16:59:56 +09:00
Mamoru TASAKA
6fccf6dacc rewrite .gitignore 2026-01-02 16:55:23 +09:00
Mamoru TASAKA
c15f00e0d6 0.6.0 2026-01-02 16:54:30 +09:00
Mamoru TASAKA
8a0c025e13 Fix compatibility with minitest 6 2025-12-27 14:02:26 +09:00
Mamoru TASAKA
879ebe1242 Use recent gem2rpm style 2025-12-27 12:58:57 +09:00
Fedora Release Engineering
36b8112d3b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 12:34:57 +00:00
Fedora Release Engineering
494ebc9ccb Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 23:35:46 +00:00
Fedora Release Engineering
14ee65443a Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 19:35:04 +00:00
Fedora Release Engineering
7f6e1224a5 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 17:07:21 +00:00
Ilia Gradina
1637b47339 update to new version 2023-10-16 08:08:22 +03:00
Fedora Release Engineering
67bb3a3ebe Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 17:57:30 +00:00
Fedora Release Engineering
dd81230fb7 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 20:44:17 +00:00
5 changed files with 193 additions and 44 deletions

4
.gitignore vendored
View file

@ -1,2 +1,2 @@
/minitest-around-0.4.0.gem
/minitest-around-0.4.1.gem
/minitest-around-*.gem
/minitest-around-*-test-missing-files.tar.gz

View file

@ -0,0 +1,83 @@
diff -urp '--exclude=*~' minitest-around-0.5.0.orig/test/around_spec.rb minitest-around-0.5.0/test/around_spec.rb
--- minitest-around-0.5.0.orig/test/around_spec.rb 2025-12-27 12:59:36.309463102 +0900
+++ minitest-around-0.5.0/test/around_spec.rb 2025-12-27 13:08:40.396453842 +0900
@@ -16,7 +16,7 @@ describe "Minitest Around" do
end
it "runs around" do
- $before.must_equal true
+ _($before).must_equal true
end
end
@@ -30,7 +30,7 @@ describe "Minitest Around" do
end
it "stays in context" do
- @x.must_equal 2
+ _(@x).must_equal 2
end
end
@@ -40,9 +40,9 @@ describe "Minitest Around" do
before { list << 2 }
after do
if @xxx == 1
- list.must_equal [1, 2, 3, 4, 5, 9, 8, 7, 6]
+ _(list).must_equal [1, 2, 3, 4, 5, 9, 8, 7, 6]
elsif @xxx == 2
- list.must_equal [1, 2, 3, 4, 5, 51, 9, 8, 7, 6]
+ _(list).must_equal [1, 2, 3, 4, 5, 51, 9, 8, 7, 6]
else
raise
end
@@ -55,7 +55,7 @@ describe "Minitest Around" do
it "orders" do
@xxx = 1
- list.must_equal [1, 2, 3, 4, 5]
+ _(list).must_equal [1, 2, 3, 4, 5]
end
describe "more nesting fun" do
@@ -63,7 +63,7 @@ describe "Minitest Around" do
it "orders" do
@xxx = 2
- list.must_equal [1, 2, 3, 4, 5, 51]
+ _(list).must_equal [1, 2, 3, 4, 5, 51]
end
end
end
@@ -78,8 +78,8 @@ describe "Minitest Around" do
end
RUBY
- output.must_include "ArgumentError: ArgumentError"
- output.wont_include "FiberError"
+ _(output).must_include "ArgumentError: ArgumentError"
+ _(output).wont_include "FiberError"
end
end
@@ -98,7 +98,7 @@ describe "Minitest Around" do
it("x") {}
end
RUBY
- output.must_include("ENSURE")
+ _(output).must_include("ENSURE")
end
end
end
diff -urp '--exclude=*~' minitest-around-0.5.0.orig/test/nested_spec.rb minitest-around-0.5.0/test/nested_spec.rb
--- minitest-around-0.5.0.orig/test/nested_spec.rb 2025-12-27 12:59:36.309837879 +0900
+++ minitest-around-0.5.0/test/nested_spec.rb 2025-12-27 13:09:14.321620383 +0900
@@ -9,7 +9,7 @@ describe 'Outer' do
end
after do
var << :after
- var.must_equal [:before, :begin, :ibefore, :ibegin, :during, :iend, :iafter, :end, :after]
+ _(var).must_equal [:before, :begin, :ibefore, :ibegin, :during, :iend, :iafter, :end, :after]
end
around do |test|
var << :begin

View file

@ -0,0 +1,36 @@
#!/bin/bash
usage() {
echo "$0 <VERSION>"
}
set -e
set -x
if [ $# -lt 1 ] ; then
usage
exit 1
fi
VERSION=$1
REPONAME=minitest-around
TMPDIR=$(mktemp -d /var/tmp/minitest-around-XXXXXX)
CURDIR=$(pwd)
pushd $TMPDIR
git clone https://github.com/splattael/${REPONAME}.git
cd ${REPONAME}/
git reset --hard v$VERSION
cd ..
ln -sf ${REPONAME} ${REPONAME}-${VERSION}
tar czf $CURDIR/${REPONAME}-${VERSION}-test-missing-files.tar.gz \
${REPONAME}-${VERSION}/config/ \
${REPONAME}-${VERSION}/features/ \
${REPONAME}-${VERSION}/test/ \
popd
rm -rf $TMPDIR

View file

@ -1,42 +1,42 @@
%global gem_name minitest-around
%global gem_name minitest-around
Name: rubygem-%{gem_name}
Version: 0.4.1
Release: 11%{?dist}
Summary: Around block for minitest
License: MIT
URL: https://github.com/splattael/minitest-around
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(cucumber)
BuildArch: noarch
Name: rubygem-%{gem_name}
Version: 0.6.0
Release: 1%{?dist}
Summary: Around block for minitest
License: MIT
URL: https://github.com/splattael/minitest-around
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: %{gem_name}-%{version}-test-missing-files.tar.gz
# Source1 is created from $ bash %%SOURCE2 %%version
Source2: %{gem_name}-create-missing-test-files.sh
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(cucumber)
BuildArch: noarch
%description
Alternative for setup/teardown dance.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
# cucumber 7 syntax change
sed -i config/cucumber.yml -e "s|~@ignore|'not @ignore'|"
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%setup -q -n %{gem_name}-%{version} -b 1
%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec
gem build ../%{gem_name}-%{version}.gemspec
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
@ -45,17 +45,25 @@ gem build %{gem_name}.gemspec
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%{buildroot}%{gem_dir}/
rm -f %{buildroot}%{gem_cache}
# Run the test suite
%check
cp -a \
test/ \
features/ \
.%{gem_instdir}
export CUCUMBER_PUBLISH_QUIET=true
pushd .%{gem_instdir}
sed -i "/require 'bundler/ s/^/#/" test/helper.rb
RUBYOPT=-Ilib ruby -e 'Dir.glob "./test/*_{test,spec}.rb", &method(:require)'
RUBYOPT=-Ilib cucumber --tag 'not @todo' --tag 'not @rspec'
sed -i "/require 'bundler/ s/^/#/" test/test_helper.rb
env RUBYOPT=-Ilib \
ruby -e 'Dir.glob "./test/*_{test,spec}.rb", &method(:require)'
env RUBYOPT=-Ilib \
cucumber --tag 'not @todo' --tag 'not @rspec'
popd
%files
@ -64,20 +72,41 @@ popd
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%{gem_spec}
%exclude %{gem_instdir}/.*
%exclude %{gem_cache}
%files doc
%doc %{gem_docdir}
%exclude %{gem_instdir}/config
%exclude %{gem_instdir}/features
%exclude %{gem_instdir}/Gemfile
%exclude %{gem_instdir}/Rakefile
%exclude %{gem_instdir}/examples
%exclude %{gem_instdir}/minitest-around.gemspec
%exclude %{gem_instdir}/test
%changelog
* Fri Jan 02 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.6.0-1
- 0.6.0
* Sat Dec 27 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.5.0-7
- Fix compatibility with minitest 6
* Sat Dec 27 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.5.0-6
- Use recent gem2rpm style
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Oct 16 2023 Ilia Gradina <ilgrad@fedoraproject.org> - 0.5.0-1
- Update to 0.5.0
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View file

@ -1 +1,2 @@
SHA512 (minitest-around-0.4.1.gem) = ae13ebd44f1e9cab49eff42f02f500d72c5d1fa53493259b38918f84fbe231980623fe27e92f2f0bffd95c214d8eb50445ff1a6d48ad3b074519f7ac2134c2e8
SHA512 (minitest-around-0.6.0.gem) = 4db83f3f4313669a983fbcec54af8a213fc557c7cf4d6077661f9eac23546e564c1875256ba70c6d13a472ede26cf3e4ad09af010a241a638c71ee90a18cabec
SHA512 (minitest-around-0.6.0-test-missing-files.tar.gz) = 930991a23561079ed89bd16442590b28fd59bace022e8452ad739de69d134b5b64132264b5d2a54f996d138c5f4962fe5ade963bb70ed8c0f1116a76b5e49464