Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-i18n for openSUSE:Factory checked in at 2022-08-07 18:33:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-i18n (Old) and /work/SRC/openSUSE:Factory/.rubygem-i18n.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-i18n" Sun Aug 7 18:33:52 2022 rev:35 rq:993488 version:1.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-i18n/rubygem-i18n.changes 2022-03-05 14:43:07.439696481 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-i18n.new.1521/rubygem-i18n.changes 2022-08-07 18:33:57.857158870 +0200 @@ -1,0 +2,6 @@ +Thu Aug 4 13:15:01 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 1.12.0 + no changelog found + +------------------------------------------------------------------- Old: ---- i18n-1.10.0.gem New: ---- i18n-1.12.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-i18n.spec ++++++ --- /var/tmp/diff_new_pack.Qhhs68/_old 2022-08-07 18:33:58.281160102 +0200 +++ /var/tmp/diff_new_pack.Qhhs68/_new 2022-08-07 18:33:58.289160125 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-i18n -Version: 1.10.0 +Version: 1.12.0 Release: 0 %define mod_name i18n %define mod_full_name %{mod_name}-%{version} ++++++ i18n-1.10.0.gem -> i18n-1.12.0.gem ++++++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/backend/fallbacks.rb new/lib/i18n/backend/fallbacks.rb --- old/lib/i18n/backend/fallbacks.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n/backend/fallbacks.rb 2022-07-13 22:48:41.000000000 +0200 @@ -107,7 +107,7 @@ private # Overwrite on_fallback to add specified logic when the fallback succeeds. - def on_fallback(_original_locale, _fallback_locale, _key, _optoins) + def on_fallback(_original_locale, _fallback_locale, _key, _options) nil end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/config.rb new/lib/i18n/config.rb --- old/lib/i18n/config.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n/config.rb 2022-07-13 22:48:41.000000000 +0200 @@ -38,7 +38,7 @@ end # Returns an array of locales for which translations are available. - # Unless you explicitely set these through I18n.available_locales= + # Unless you explicitly set these through I18n.available_locales= # the call will be delegated to the backend. def available_locales @@available_locales ||= nil @@ -106,7 +106,7 @@ # if you don't care about arity. # # == Example: - # You can supress raising an exception and return string instead: + # You can suppress raising an exception and return string instead: # # I18n.config.missing_interpolation_argument_handler = Proc.new do |key| # "#{key} is missing" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/exceptions.rb new/lib/i18n/exceptions.rb --- old/lib/i18n/exceptions.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n/exceptions.rb 2022-07-13 22:48:41.000000000 +0200 @@ -24,7 +24,7 @@ been set is likely to display text from the wrong locale to some users. If you have a legitimate reason to access i18n data outside of the user flow, you can do so by passing - the desired locale explictly with the `locale` argument, e.g. `I18n.#{method}(..., locale: :en)` + the desired locale explicitly with the `locale` argument, e.g. `I18n.#{method}(..., locale: :en)` MESSAGE end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/locale/tag/simple.rb new/lib/i18n/locale/tag/simple.rb --- old/lib/i18n/locale/tag/simple.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n/locale/tag/simple.rb 2022-07-13 22:48:41.000000000 +0200 @@ -1,5 +1,5 @@ # Simple Locale tag implementation that computes subtags by simply splitting -# the locale tag at '-' occurences. +# the locale tag at '-' occurrences. module I18n module Locale module Tag diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/tests/basics.rb new/lib/i18n/tests/basics.rb --- old/lib/i18n/tests/basics.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n/tests/basics.rb 2022-07-13 22:48:41.000000000 +0200 @@ -26,7 +26,7 @@ assert_equal I18n.available_locales, I18n.backend.available_locales end - test "available_locales memoizes when set explicitely" do + test "available_locales memoizes when set explicitly" do I18n.backend.expects(:available_locales).never I18n.available_locales = [:foo] I18n.backend.store_translations('de', :bar => 'baz') @@ -34,7 +34,7 @@ assert_equal [:foo], I18n.available_locales end - test "available_locales delegates to the backend when not set explicitely" do + test "available_locales delegates to the backend when not set explicitly" do original_available_locales_value = I18n.backend.available_locales I18n.backend.expects(:available_locales).returns(original_available_locales_value).twice assert_equal I18n.backend.available_locales, I18n.available_locales diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/version.rb new/lib/i18n/version.rb --- old/lib/i18n/version.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n/version.rb 2022-07-13 22:48:41.000000000 +0200 @@ -1,5 +1,5 @@ # frozen_string_literal: true module I18n - VERSION = "1.10.0" + VERSION = "1.12.0" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n.rb new/lib/i18n.rb --- old/lib/i18n.rb 2022-02-15 00:04:45.000000000 +0100 +++ new/lib/i18n.rb 2022-07-13 22:48:41.000000000 +0200 @@ -214,18 +214,12 @@ backend = config.backend - result = catch(:exception) do - if key.is_a?(Array) - key.map { |k| backend.translate(locale, k, options) } - else - backend.translate(locale, key, options) + if key.is_a?(Array) + key.map do |k| + translate_key(k, throw, raise, locale, backend, options) end - end - - if result.is_a?(MissingTranslation) - handle_exception((throw && :throw || raise && :raise), result, locale, key, options) else - result + translate_key(key, throw, raise, locale, backend, options) end end alias :t :translate @@ -364,6 +358,18 @@ private + def translate_key(key, throw, raise, locale, backend, options) + result = catch(:exception) do + backend.translate(locale, key, options) + end + + if result.is_a?(MissingTranslation) + handle_exception((throw && :throw || raise && :raise), result, locale, key, options) + else + result + end + end + # Any exceptions thrown in translate will be sent to the @@exception_handler # which can be a Symbol, a Proc or any other Object unless they're forced to # be raised or thrown (MissingTranslation). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-02-15 00:04:45.000000000 +0100 +++ new/metadata 2022-07-13 22:48:41.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: i18n version: !ruby/object:Gem::Version - version: 1.10.0 + version: 1.12.0 platform: ruby authors: - Sven Fuchs @@ -13,7 +13,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2022-02-14 00:00:00.000000000 Z +date: 2022-07-13 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: concurrent-ruby @@ -106,7 +106,7 @@ - !ruby/object:Gem::Version version: 1.3.5 requirements: [] -rubygems_version: 3.1.6 +rubygems_version: 3.3.16 signing_key: specification_version: 4 summary: New wave Internationalization support for Ruby
