!4 master分支rubygem-mime-types升级到社区稳定3.4.1版本

From: @cherry530 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-06-29 03:58:58 +00:00 committed by Gitee
commit acf3d88214
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 10 additions and 20 deletions

View File

@ -1,12 +0,0 @@
diff -Nur a/usr/share/gems/gems/mime-types-3.1/lib/mime/types/logger.rb b/usr/share/gems/gems/mime-types-3.1//lib/mime/types/logger.rb
--- a/usr/share/gems/gems/mime-types-3.1/lib/mime/types/logger.rb 2022-01-22 13:03:02.461246411 +0800
+++ b/usr/share/gems/gems/mime-types-3.1/lib/mime/types/logger.rb 2022-01-22 13:02:41.332893171 +0800
@@ -25,7 +25,7 @@
end
end
- def initialize(_1, _2 = nil, _3 = nil)
+ def initialize(one, two = nil, three = nil)
super nil
@logdev = WarnLogDevice.new
@formatter = ->(_s, _d, _p, m) { m }

Binary file not shown.

BIN
mime-types-3.4.1.gem Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
%global gem_name mime-types
Summary: The mime-types library provides a library
Name: rubygem-%{gem_name}
Version: 3.1
Release: 2
Version: 3.4.1
Release: 1
License: MIT
URL: https://github.com/mime-types/ruby-mime-types/
Source0: https://rubygems.org/gems/mime-types-%{version}.gem
Patch0: fix-build-error.patch
BuildRequires: rubygems-devel ruby(release) ruby >= 2.0 rubygem(mime-types-data)
BuildRequires: rubygem(minitest)
BuildArch: noarch
@ -34,7 +34,6 @@ This package contains documentation for %{name}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%patch0 -p1
%build
@ -59,7 +58,7 @@ ruby -Ilib:test -rminitest/autorun -e 'Dir.glob "./test/**/test_*.rb", &method(:
popd
%files
%license %{gem_instdir}/Licence.rdoc
%license %{gem_instdir}/Licence.md
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%{gem_libdir}
@ -67,9 +66,9 @@ popd
%{gem_spec}
%files doc
%doc %{gem_instdir}/Code-of-Conduct.rdoc
%doc %{gem_instdir}/Contributing.rdoc
%doc %{gem_instdir}/History.rdoc
%doc %{gem_instdir}/Code-of-Conduct.md
%doc %{gem_instdir}/Contributing.md
%doc %{gem_instdir}/History.md
%doc %{gem_instdir}/README.rdoc
%{gem_instdir}/Rakefile
%{gem_instdir}/Manifest.txt
@ -77,6 +76,9 @@ popd
%doc %{gem_docdir}
%changelog
* Wed Jun 29 2022 xu_ping <xuping33@h-partners.com> - 3.4.1-1
- Upgrade 3.4.1
* Sat Jan 22 2022 liyanan <liyanan32@huawei.com> - 3.1-2
- fix build error