| |
@@ -3,8 +3,8 @@
|
| |
%bcond_without tests
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 1.8.7
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 1.8.11
|
| |
+ Release: 1%{?dist}
|
| |
Summary: New wave Internationalization support for Ruby
|
| |
# `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb
|
| |
License: MIT and (BSD or Ruby)
|
| |
@@ -12,7 +12,7 @@
|
| |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
| |
# Since 1.8.2 tests are not shipped with the gem, but can be checked like
|
| |
# git clone --no-checkout https://github.com/ruby-i18n/i18n
|
| |
- # cd i18n && git archive -v -o i18n-1.8.7-tests.txz v1.8.7 test
|
| |
+ # cd i18n && git archive -v -o i18n-1.8.11-tests.txz v1.8.11 test
|
| |
Source1: %{gem_name}-%{version}-tests.txz
|
| |
BuildRequires: ruby
|
| |
BuildRequires: ruby(release)
|
| |
@@ -58,9 +58,15 @@
|
| |
# Bundler just complicates everything in our case, remove it.
|
| |
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
|
| |
|
| |
+ # Mocha needs to be required differently
|
| |
+ # TODO: PR @ https://github.com/ruby-i18n/i18n/edit/master/test/test_helper.rb#L16
|
| |
+ sed -i 's/\(require .mocha\/\)setup/\1minitest/' test/test_helper.rb
|
| |
+
|
| |
# Tests are failing without LANG environment is set.
|
| |
# https://github.com/svenfuchs/i18n/issues/115
|
| |
- LANG=C.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
| |
+ LANG=C.utf8 \
|
| |
+ find ./test/ -type f -name '*_test.rb' -exec \
|
| |
+ ruby -Ilib:test '{}' \;
|
| |
popd
|
| |
%endif
|
| |
|
| |
@@ -76,6 +82,10 @@
|
| |
%doc %{gem_instdir}/README.md
|
| |
|
| |
%changelog
|
| |
+ * Tue Jan 25 2022 Pavel Valena <pvalena@redhat.com> - 1.8.11-1
|
| |
+ - Update to i18n 1.8.11.
|
| |
+ Resolves: rhbz#1923812
|
| |
+
|
| |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-4
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
| |
|
| |
Resolves: rhbz#1923812
To have latest i18n gem in Fedora.
Koji scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=81869732
Copr build:
https://copr.fedorainfracloud.org/coprs/build/3253292
Checks:
Update log: https://gist.github.com/6523fa0f4e34cd21c243c411e6f00baa
Test log: https://gist.github.com/3aff428a6c3668a75fd184d489735381
gem2rpm diff: https://gist.github.com/1f547051a0c5e790961d8d935cfdd9c3
Update log: https://git.io/JcYvQ