Update to minitest-stub-const 0.6

also enhance .spec and .gitignore files.

Resolves: rhbz#1400187
f38
Pavel Valena 5 years ago
parent a84cf97ae9
commit 75d2c2a037

3
.gitignore vendored

@ -1,2 +1 @@
/minitest-stub-const-0.1.gem /minitest-stub-const-*.gem
/minitest-stub-const-0.5.gem

@ -2,8 +2,8 @@
%global gem_name minitest-stub-const %global gem_name minitest-stub-const
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.5 Version: 0.6
Release: 10%{?dist} Release: 2%{?dist}
Summary: Stub constants for the duration of a block in MiniTest Summary: Stub constants for the duration of a block in MiniTest
License: MIT License: MIT
URL: https://github.com/adammck/minitest-stub-const URL: https://github.com/adammck/minitest-stub-const
@ -16,7 +16,6 @@ BuildArch: noarch
%description %description
Stub constants for the duration of a block in MiniTest. Stub constants for the duration of a block in MiniTest.
Like RSpec's stub_const, but boring and non-magical.
%package doc %package doc
@ -28,18 +27,10 @@ BuildArch: noarch
Documentation for %{name}. Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} %setup -q -n %{gem_name}-%{version}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build %build
# Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec
gem build %{gem_name}.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
%gem_install %gem_install
%install %install
@ -49,7 +40,7 @@ cp -a .%{gem_dir}/* \
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ruby test/test_stub_const.rb ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd popd
%files %files
@ -65,6 +56,10 @@ popd
%{gem_instdir}/test %{gem_instdir}/test
%changelog %changelog
* Fri Jul 31 10:45:24 GMT 2020 Pavel Valena <pvalena@redhat.com> - 0.6-2
- Update to minitest-stub-const 0.6.
Resolves: rhbz#1400187
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-10 * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

@ -1 +1 @@
b3e6ecbbb9f73b1053668502fda2fa22 minitest-stub-const-0.5.gem SHA512 (minitest-stub-const-0.6.gem) = e98e351e560f089244432245c0607524a41c2456bfeb5fe3ed277c3318c03c176e1ecd79c13562461ad234f1e1707c97671f1826e6a97733736f031e71f42c1f

Loading…
Cancel
Save