-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade: rubygem-flexmock version to 3.0.1
- Loading branch information
1 parent
d05c3e7
commit c8fd837
Showing
4 changed files
with
95 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
SPECS-EXTENDED/rubygem-flexmock/rubygem-flexmock.signatures.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"Signatures": { | ||
"rubygem-flexmock-2.3.6.tar.gz": "f52c6858a761ed035080a767c5ac91b65852092eacd1455425ad4c35897178fc" | ||
"flexmock-3.0.1-test-missing-files.tar.gz": "04903e871570e5543b8e3b1007c5527ade93f513c64771ad9046be293c84c930", | ||
"flexmock-3.0.1.gem": "f58a82058eb7ca0c802a7f82c5f867adcd93c5f2bd9da8d57ef5d3b36513586f", | ||
"flexmock-create-missing-test-files.sh": "d31d3126887e9c13e3cc0824e45483a1626ed2b74b4e7ee3eb3dfcb519f012f7" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
%global gem_name flexmock | ||
|
||
Summary: Mock object library for ruby | ||
Name: rubygem-%{gem_name} | ||
Version: 2.3.6 | ||
Release: 8%{?dist} | ||
Version: 3.0.1 | ||
Release: 2%{?dist} | ||
License: MIT | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
URL: https://github.com/doudou/flexmock | ||
Source0: https://github.com/doudou/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/rubygem-%{gem_name}-%{version}.tar.gz | ||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | ||
Source1: %{gem_name}-%{version}-test-missing-files.tar.gz | ||
# Source1 is created fron Source2 | ||
Source2: flexmock-create-missing-test-files.sh | ||
|
||
Requires: ruby(release) | ||
BuildRequires: ruby(release) | ||
BuildRequires: git | ||
BuildRequires: rubygems-devel | ||
BuildRequires: rubygem(minitest) >= 5 | ||
BuildRequires: rubygem(rspec) >= 3 | ||
|
@@ -32,10 +34,14 @@ Requires: %{name} = %{version}-%{release} | |
This package contains documentation for %{name}. | ||
|
||
%prep | ||
%autosetup -S git -n %{gem_name}-%{version} | ||
%setup -q -n %{gem_name}-%{version} -a 1 | ||
mv ../%{gem_name}-%{version}.gemspec . | ||
|
||
find . -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d' | ||
find . -name \*.gem -or -name \*.rb -or -name \*.rdoc | xargs chmod 0644 | ||
|
||
%build | ||
gem build %{gem_name} | ||
gem build %{gem_name}-%{version}.gemspec | ||
%gem_install | ||
|
||
%install | ||
|
@@ -45,20 +51,41 @@ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ | |
pushd %{buildroot}%{gem_instdir} | ||
rm -rf \ | ||
.autotest .gitignore .togglerc .travis.yml .yardopts \ | ||
.github \ | ||
Gemfile \ | ||
Rakefile \ | ||
flexmock.blurb \ | ||
flexmock.gemspec \ | ||
install.rb | ||
install.rb \ | ||
test/ \ | ||
%{nil} | ||
popd | ||
|
||
rm -f %{buildroot}%{gem_cache} | ||
|
||
%check | ||
cp -a flexmock/test .%{gem_instdir} | ||
pushd .%{gem_instdir} | ||
|
||
export RUBYOPT=-W:deprecated | ||
export RUBYLIB=$(pwd)/lib:$(pwd):$(pwd)/test | ||
ruby \ | ||
-e 'Dir.glob("test/*_test.rb").each {|f| require f}' | ||
|
||
# Note: exclude failing tests for now | ||
rspec test/rspec_integration/ \ | ||
--exclude-pattern 'test/rspec_integration/spy_example_spec.rb' \ | ||
%{nil} | ||
popd | ||
|
||
|
||
%files | ||
%dir %{gem_instdir} | ||
%doc %{gem_instdir}/[A-Z]* | ||
%license %{gem_instdir}/LICENSE.txt | ||
%doc %{gem_instdir}/[A-CR-Z]* | ||
|
||
%{gem_libdir} | ||
%{gem_instdir}/rakelib/ | ||
%exclude %{gem_cache} | ||
%{gem_spec} | ||
|
||
%files doc | ||
|
@@ -67,12 +94,57 @@ popd | |
%{gem_docdir}/ | ||
|
||
%changelog | ||
* Mon Nov 28 2022 Muhammad Falak <[email protected]> - 2.3.6-8 | ||
- Switch to building tar.gz instead of .gem | ||
- License verified | ||
* Thu Dec 19 2024 Akhila Guruju <[email protected]> - 3.0.1-2 | ||
- Initial Azure Linux import from Fedora 41 (license: MIT). | ||
- License verified. | ||
|
||
* Wed Sep 11 2024 Mamoru TASAKA <[email protected]> - 3.0.1-1 | ||
- 3.0.1 | ||
|
||
* Tue Sep 03 2024 Mamoru TASAKA <[email protected]> - 3.0.0-1 | ||
- 3.0.0 | ||
|
||
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 2.3.8-4 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild | ||
|
||
* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 2.3.8-3 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
||
* Mon Jan 22 2024 Fedora Release Engineering <[email protected]> - 2.3.8-2 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||
|
||
* Mon Aug 14 2023 Mamoru TASAKA <[email protected]> - 2.3.8-1 | ||
- 2.3.8 | ||
|
||
* Tue Aug 08 2023 Mamoru TASAKA <[email protected]> - 2.3.6-15 | ||
- Handle MiniTest 5.19+ | ||
|
||
* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 2.3.6-14 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild | ||
|
||
* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 2.3.6-13 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild | ||
|
||
* Sat Jul 23 2022 Fedora Release Engineering <[email protected]> - 2.3.6-12 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild | ||
|
||
* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 2.3.6-11 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild | ||
|
||
* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 2.3.6-10 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild | ||
|
||
* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 2.3.6-9 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild | ||
|
||
* Sun Jan 24 2021 Mamoru TASAKA <[email protected]> - 2.3.6-8 | ||
- Patch to support ruby 3.0 | ||
- Use binding.source_location for test | ||
- Properly accept argument and keywords | ||
- Relax error message on test a bit | ||
|
||
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 2.3.6-7 | ||
- Initial CBL-Mariner import from Fedora 32 (license: MIT). | ||
* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 2.3.6-7 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild | ||
|
||
* Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 2.3.6-6 | ||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters