Update to i18n 0.7.0.

f38
Vít Ondruch 10 years ago
parent 4684e6183d
commit 71552f6520

1
.gitignore vendored

@ -5,3 +5,4 @@
/i18n-0.6.4.gem /i18n-0.6.4.gem
/i18n-0.6.9.gem /i18n-0.6.9.gem
/i18n-0.6.11.gem /i18n-0.6.11.gem
/i18n-0.7.0.gem

@ -2,19 +2,19 @@
Summary: New wave Internationalization support for Ruby Summary: New wave Internationalization support for Ruby
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.6.11 Version: 0.7.0
Release: 1%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT and (BSD or Ruby) License: MIT and (BSD or Ruby)
URL: http://github.com/svenfuchs/i18n URL: http://github.com/svenfuchs/i18n
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby
BuildRequires: ruby(release) BuildRequires: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest) BuildRequires: rubygem(minitest)
BuildRequires: rubygem(mocha) BuildRequires: rubygem(mocha)
BuildRequires: rubygem(test_declarative) BuildRequires: rubygem(test_declarative)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description %description
Ruby Internationalization and localization solution. Ruby Internationalization and localization solution.
@ -26,7 +26,7 @@ Group: Documentation
Requires:%{name} = %{version}-%{release} Requires:%{name} = %{version}-%{release}
%description doc %description doc
Documentation for %{name} Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} gem unpack %{SOURCE0}
@ -41,19 +41,16 @@ gem build %{gem_name}.gemspec
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
chmod -x %{buildroot}%{gem_instdir}/MIT-LICENSE
chmod -x %{buildroot}%{gem_libdir}/i18n.rb
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
# Bundler just complicates everything in our case, remove it. # Bundler just complicates everything in our case, remove it.
sed -i -e "s|require 'bundler/setup'||" test/test_helper.rb sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
# Fix all files to use I18n::TestCase from the patch
find ./test -name '*_test.rb' | xargs sed -i -e 's/Test::Unit::TestCase/I18n::TestCase/'
# Tests are failing without LANG environment is set. # Tests are failing without LANG environment is set.
# https://github.com/svenfuchs/i18n/issues/115 # https://github.com/svenfuchs/i18n/issues/115
LANG=en_US.utf8 ruby -Ilib:test -rset test/all.rb LANG=en_US.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd popd
%files %files
@ -71,6 +68,9 @@ popd
%changelog %changelog
* Tue Jan 20 2015 Vít Ondruch <vondruch@redhat.com> - 0.7.0-1
- Update to i18n 0.7.0.
* Tue Jul 22 2014 Josef Stribny <jstribny@redhat.com> - 0.6.11-1 * Tue Jul 22 2014 Josef Stribny <jstribny@redhat.com> - 0.6.11-1
- Update to i18n 0.6.11 - Update to i18n 0.6.11

@ -1 +1 @@
d414d41965c53b119341ff3b474340ae i18n-0.6.11.gem e9f92faf73a805a95c92d42031f4dca3 i18n-0.7.0.gem

Loading…
Cancel
Save