Update to tzinfo 2.0.1

also fixes issue caused by upgrade to Ruby 2.7, generating warning:
  "`_3' is reserved for numbered parameter; consider another name"
epel9
Pavel Valena 5 years ago
parent b111d7b550
commit 36458ca50b

15
.gitignore vendored

@ -1,13 +1,2 @@
clog
.gitignore
/tzinfo-0.3.26.gem
/rubygem-tzinfo.spec
/tzinfo-0.3.30.gem
/tzinfo-0.3.34.gem
/tzinfo-0.3.35.gem
/rubygem-tzinfo-0.3.37-1.fc20.src.rpm
/tzinfo-0.3.37.gem
/tzinfo-1.1.0.gem
/tzinfo-1.2.2.gem
/tzinfo-1.2.5.gem
/tzinfo-*.gem
/tzinfo-*-tests.txz

@ -2,17 +2,22 @@
%global gem_name tzinfo
Name: rubygem-%{gem_name}
Version: 1.2.5
Release: 5%{?dist}
Version: 2.0.1
Release: 1%{?dist}
Summary: Daylight savings aware timezone library
License: MIT
URL: http://tzinfo.github.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Gem file does not contain a test suite, you can create it like so:
# git clone https://github.com/tzinfo/tzinfo.git --no-checkout
# cd tzinfo && git archive -v -o tzinfo-2.0.1-tests.txz v2.0.1 test/
Source1: %{gem_name}-%{version}-tests.txz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(thread_safe)
BuildRequires: rubygem(concurrent-ruby)
BuildArch: noarch
%description
@ -29,7 +34,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version} -b1
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -40,12 +45,15 @@ mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
ruby -Ilib -e "require './test/ts_all'"
ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'"
ln -s %{_builddir}/test .
# We don't want to use bundler
sed -i "/raise 'Tests must be run with bundler/ s/^/#/" \
test/test_utils.rb
RUBYOPT="-I.:lib:test" ruby -rtest/ts_all
popd
%files
@ -60,11 +68,11 @@ popd
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGES.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/test
%{gem_instdir}/%{gem_name}.gemspec
%changelog
* Mon Feb 03 2020 Pavel Valena <pvalena@redhat.com> - 2.0.1-1
- Update to tzinfo 2.0.1.
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

@ -1 +1,2 @@
SHA512 (tzinfo-1.2.5.gem) = 87f7cd66d6e80d51d216cb993cc76fe7758db03ffd39dde96eb24a9d208699766a8dbff048485fb732ce125ee9f971e38ed9ee1197f3ee3fc3ee8a8da840dd45
SHA512 (tzinfo-2.0.1.gem) = d8abd4e9c19cce1b8562af415f533b7203a06739839b2dfea719a642acaf5bfdd15ae38ea8bb4719a1ca7bcd0b778bc029ae15bf139174d1474b4b84bc2fc5e9
SHA512 (tzinfo-2.0.1-tests.txz) = b3450e0a626688777748f83855efe538c99e1cb588f0eb459aa9fa3b987bf09798af21da1dbd7bcb85819270a8c2acb5d11a9c24c9df53189ad9064286266470

Loading…
Cancel
Save