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 2021-02-11 12:45:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-i18n (Old) and /work/SRC/openSUSE:Factory/.rubygem-i18n.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-i18n" Thu Feb 11 12:45:08 2021 rev:30 rq:869947 version:1.8.8 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-i18n/rubygem-i18n.changes 2021-01-21 21:55:04.961786753 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-i18n.new.28504/rubygem-i18n.changes 2021-02-11 12:45:40.093338696 +0100 @@ -1,0 +2,11 @@ +Sat Feb 6 11:28:44 UTC 2021 - Manuel Schnitzer <[email protected]> + +- updated to version 1.8.8 + + * Fixed threadsafety issues in Simple backend: #554 + * Re-attempt to fix threadsafety of fallbacks: #548 + * Use OpenSSL::Digest instead of usual Digest libraries: #549 + * Goodbye, post-install message #552 + * Use Rails' main branch, instead of master #553 + +------------------------------------------------------------------- Old: ---- i18n-1.8.7.gem New: ---- i18n-1.8.8.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-i18n.spec ++++++ --- /var/tmp/diff_new_pack.p1GFhz/_old 2021-02-11 12:45:40.809339738 +0100 +++ /var/tmp/diff_new_pack.p1GFhz/_new 2021-02-11 12:45:40.809339738 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-i18n -Version: 1.8.7 +Version: 1.8.8 Release: 0 %define mod_name i18n %define mod_full_name %{mod_name}-%{version} ++++++ i18n-1.8.7.gem -> i18n-1.8.8.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/cache.rb new/lib/i18n/backend/cache.rb --- old/lib/i18n/backend/cache.rb 2021-01-04 11:02:07.000000000 +0100 +++ new/lib/i18n/backend/cache.rb 2021-02-02 01:49:03.000000000 +0100 @@ -17,11 +17,11 @@ # # The cache_key implementation by default assumes you pass values that return # a valid key from #hash (see -# http://www.ruby-doc.org/core/classes/Object.html#M000337). However, you can +# https://www.ruby-doc.org/core/classes/Object.html#M000337). However, you can # configure your own digest method via which responds to #hexdigest (see -# http://ruby-doc.org/stdlib/libdoc/digest/rdoc/index.html): +# https://ruby-doc.org/stdlib/libdoc/openssl/rdoc/OpenSSL/Digest.html): # -# I18n.cache_key_digest = Digest::MD5.new +# I18n.cache_key_digest = OpenSSL::Digest::SHA256.new # # If you use a lambda as a default value in your translation like this: # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/backend/cache_file.rb new/lib/i18n/backend/cache_file.rb --- old/lib/i18n/backend/cache_file.rb 2021-01-04 11:02:07.000000000 +0100 +++ new/lib/i18n/backend/cache_file.rb 2021-02-02 01:49:03.000000000 +0100 @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'digest/sha2' +require 'openssl' module I18n module Backend @@ -19,7 +19,7 @@ key = I18n::Backend::Flatten.escape_default_separator(normalized_path(filename)) old_mtime, old_digest = initialized && lookup(:i18n, key, :load_file) return if (mtime = File.mtime(filename).to_i) == old_mtime || - (digest = Digest::SHA2.file(filename).hexdigest) == old_digest + (digest = OpenSSL::Digest::SHA256.file(filename).hexdigest) == old_digest super store_translations(:i18n, load_file: { key => [mtime, digest] }) end 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 2021-01-04 11:02:07.000000000 +0100 +++ new/lib/i18n/backend/fallbacks.rb 2021-02-02 01:49:03.000000000 +0100 @@ -16,11 +16,13 @@ # Returns the current fallbacks implementation. Defaults to +I18n::Locale::Fallbacks+. def fallbacks @@fallbacks ||= I18n::Locale::Fallbacks.new + Thread.current[:i18n_fallbacks] || @@fallbacks end # Sets the current fallbacks implementation. Use this to set a different fallbacks implementation. def fallbacks=(fallbacks) @@fallbacks = fallbacks.is_a?(Array) ? I18n::Locale::Fallbacks.new(fallbacks) : fallbacks + Thread.current[:i18n_fallbacks] = @@fallbacks end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n/backend/simple.rb new/lib/i18n/backend/simple.rb --- old/lib/i18n/backend/simple.rb 2021-01-04 11:02:07.000000000 +0100 +++ new/lib/i18n/backend/simple.rb 2021-02-02 01:49:03.000000000 +0100 @@ -40,7 +40,7 @@ return data end locale = locale.to_sym - translations[locale] ||= {} + translations[locale] ||= Concurrent::Hash.new data = data.deep_symbolize_keys translations[locale].deep_merge!(data) end @@ -71,7 +71,7 @@ # call `init_translations` init_translations if do_init && !initialized? - @translations ||= {} + @translations ||= Concurrent::Hash.new { |h, k| h[k] = Concurrent::Hash.new } end protected 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 2021-01-04 11:02:07.000000000 +0100 +++ new/lib/i18n/version.rb 2021-02-02 01:49:03.000000000 +0100 @@ -1,5 +1,5 @@ # frozen_string_literal: true module I18n - VERSION = "1.8.7" + VERSION = "1.8.8" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/i18n.rb new/lib/i18n.rb --- old/lib/i18n.rb 2021-01-04 11:02:07.000000000 +0100 +++ new/lib/i18n.rb 2021-02-02 01:49:03.000000000 +0100 @@ -1,6 +1,7 @@ # frozen_string_literal: true require 'concurrent/map' +require 'concurrent/hash' require 'i18n/version' require 'i18n/exceptions' @@ -33,7 +34,7 @@ EMPTY_HASH = {}.freeze def self.new_double_nested_cache # :nodoc: - Concurrent::Map.new { |h,k| h[k] = Concurrent::Map.new } + Concurrent::Map.new { |h, k| h[k] = Concurrent::Map.new } end module Base diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2021-01-04 11:02:07.000000000 +0100 +++ new/metadata 2021-02-02 01:49:03.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: i18n version: !ruby/object:Gem::Version - version: 1.8.7 + version: 1.8.8 platform: ruby authors: - Sven Fuchs @@ -13,7 +13,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2021-01-04 00:00:00.000000000 Z +date: 2021-02-02 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: concurrent-ruby @@ -90,23 +90,7 @@ changelog_uri: https://github.com/ruby-i18n/i18n/releases documentation_uri: https://guides.rubyonrails.org/i18n.html source_code_uri: https://github.com/ruby-i18n/i18n -post_install_message: |2+ - - HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. - But that may break your application. - - If you are upgrading your Rails application from an older version of Rails: - - Please check your Rails app for 'config.i18n.fallbacks = true'. - If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be - 'config.i18n.fallbacks = [I18n.default_locale]'. - If not, fallbacks will be broken in your app by I18n 1.1.x. - - If you are starting a NEW Rails application, you can ignore this notice. - - For more info see: - https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 - +post_install_message: rdoc_options: [] require_paths: - lib @@ -126,4 +110,3 @@ specification_version: 4 summary: New wave Internationalization support for Ruby test_files: [] -...
