Update to i18n 1.1.1.

f38
Vít Ondruch 6 years ago
parent af0ff410e1
commit a1f5e33fc0

@ -1,34 +0,0 @@
From bbbdedc0c78ec941a84d161d5c610a358310cf99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Tue, 20 Jan 2015 14:34:44 +0100
Subject: [PATCH] Ignore metadata for frozen classes.
---
lib/i18n/backend/metadata.rb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/i18n/backend/metadata.rb b/lib/i18n/backend/metadata.rb
index 52c0a29..a8d922a 100644
--- a/lib/i18n/backend/metadata.rb
+++ b/lib/i18n/backend/metadata.rb
@@ -21,11 +21,15 @@ module I18n
def included(base)
Object.class_eval do
def translation_metadata
- @translation_metadata ||= {}
+ unless self.frozen?
+ @translation_metadata ||= {}
+ else
+ {}
+ end
end
def translation_metadata=(translation_metadata)
- @translation_metadata = translation_metadata
+ @translation_metadata = translation_metadata unless self.frozen?
end
end unless Object.method_defined?(:translation_metadata)
end
--
2.1.0

@ -1,9 +1,9 @@
%global gem_name i18n %global gem_name i18n
Summary: New wave Internationalization support for Ruby
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 1.0.0 Version: 1.1.1
Release: 2%{?dist} Release: 1%{?dist}
Summary: New wave Internationalization support for Ruby
# `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb # `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb
License: MIT and (BSD or Ruby) License: MIT and (BSD or Ruby)
URL: http://github.com/svenfuchs/i18n URL: http://github.com/svenfuchs/i18n
@ -23,16 +23,22 @@ Ruby Internationalization and localization solution.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Requires:%{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc %description doc
Documentation for %{name}. Documentation for %{name}.
%prep %prep
%setup -q -c -T %setup -q -n %{gem_name}-%{version}
%gem_install -n %{SOURCE0}
%build %build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
@ -47,24 +53,26 @@ sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
# 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 -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' LANG=C.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd popd
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
%{gem_libdir}
%license %{gem_instdir}/MIT-LICENSE %license %{gem_instdir}/MIT-LICENSE
%{gem_libdir}
%exclude %{gem_cache} %exclude %{gem_cache}
%{gem_spec} %{gem_spec}
%files doc %files doc
%{gem_instdir}/test
%{gem_instdir}/gemfiles
%doc %{gem_instdir}/README.md
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/gemfiles
%{gem_instdir}/test
%changelog %changelog
* Tue Nov 13 2018 Vít Ondruch <vondruch@redhat.com> - 1.1.1-1
- Update to i18n 1.1.1.
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -1 +1 @@
SHA512 (i18n-1.0.0.gem) = 627720c14413886e0932e962147cac453339a4532301d51931d75413909640487872c478fca3920e71e041c9b375facb4a85dd41dc75111e77c3505275757bcf SHA512 (i18n-1.1.1.gem) = 8007386062323af8a9e8e87d5be15cce5a661f8f499cd47132625af35f914bac4c8b69e60ce6722e5fe57d4552a372615aaf9d0df20595e5c1e9a96100ab85a4

Loading…
Cancel
Save