From 75d2c2a03791ac4af6dcc366a46bae90dfed5289 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 10 Jun 2020 22:07:47 +0200 Subject: [PATCH] Update to minitest-stub-const 0.6 also enhance .spec and .gitignore files. Resolves: rhbz#1400187 --- .gitignore | 3 +-- rubygem-minitest-stub-const.spec | 23 +++++++++-------------- sources | 2 +- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 9d9c248..e3a9909 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/minitest-stub-const-0.1.gem -/minitest-stub-const-0.5.gem +/minitest-stub-const-*.gem diff --git a/rubygem-minitest-stub-const.spec b/rubygem-minitest-stub-const.spec index 1eba972..d6a2b05 100644 --- a/rubygem-minitest-stub-const.spec +++ b/rubygem-minitest-stub-const.spec @@ -2,8 +2,8 @@ %global gem_name minitest-stub-const Name: rubygem-%{gem_name} -Version: 0.5 -Release: 10%{?dist} +Version: 0.6 +Release: 2%{?dist} Summary: Stub constants for the duration of a block in MiniTest License: MIT URL: https://github.com/adammck/minitest-stub-const @@ -16,7 +16,6 @@ BuildArch: noarch %description Stub constants for the duration of a block in MiniTest. -Like RSpec's stub_const, but boring and non-magical. %package doc @@ -28,18 +27,10 @@ BuildArch: noarch Documentation for %{name}. %prep -gem unpack %{SOURCE0} - -%setup -q -D -T -n %{gem_name}-%{version} - -gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%setup -q -n %{gem_name}-%{version} %build -# Create the gem as gem install only works on a gem file -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 build ../%{gem_name}-%{version}.gemspec %gem_install %install @@ -49,7 +40,7 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} -ruby test/test_stub_const.rb +ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd %files @@ -65,6 +56,10 @@ popd %{gem_instdir}/test %changelog +* Fri Jul 31 10:45:24 GMT 2020 Pavel Valena - 0.6-2 +- Update to minitest-stub-const 0.6. + Resolves: rhbz#1400187 + * Wed Jul 29 2020 Fedora Release Engineering - 0.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 2fc007f..080c32d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b3e6ecbbb9f73b1053668502fda2fa22 minitest-stub-const-0.5.gem +SHA512 (minitest-stub-const-0.6.gem) = e98e351e560f089244432245c0607524a41c2456bfeb5fe3ed277c3318c03c176e1ecd79c13562461ad234f1e1707c97671f1826e6a97733736f031e71f42c1f