Hello community, here is the log from the commit of package rubygem-activesupport-5.2 for openSUSE:Factory checked in at 2019-11-30 10:38:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-5.2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-activesupport-5.2" Sat Nov 30 10:38:39 2019 rev:7 rq:751746 version:5.2.4 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-activesupport-5.2/rubygem-activesupport-5.2.changes 2019-04-01 12:37:10.149879949 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.26869/rubygem-activesupport-5.2.changes 2019-11-30 10:40:35.556149046 +0100 @@ -1,0 +2,37 @@ +Thu Nov 28 13:07:37 UTC 2019 - Manuel Schnitzer <mschnitzer@suse.com> + +- updated to version 5.2.4 + + * Make ActiveSupport::Logger Fiber-safe. Fixes #36752. + + Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order + to make log level local to Ruby Fibers in addition to Threads. + + Example: + + logger = ActiveSupport::Logger.new(STDOUT) + logger.level = 1 + p "Main is debug? #{logger.debug?}" + + Fiber.new { + logger.local_level = 0 + p "Thread is debug? #{logger.debug?}" + }.resume + + p "Main is debug? #{logger.debug?}" + + Before: + + Main is debug? false + Thread is debug? true + Main is debug? true + + After: + + Main is debug? false + Thread is debug? true + Main is debug? false + + *Alexander Varnin* + +------------------------------------------------------------------- Old: ---- activesupport-5.2.3.gem New: ---- activesupport-5.2.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-activesupport-5.2.spec ++++++ --- /var/tmp/diff_new_pack.6rp80Z/_old 2019-11-30 10:40:35.996148993 +0100 +++ /var/tmp/diff_new_pack.6rp80Z/_new 2019-11-30 10:40:36.000148993 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-activesupport-5.2 -Version: 5.2.3 +Version: 5.2.4 Release: 0 %define mod_name activesupport %define mod_full_name %{mod_name}-%{version} ++++++ activesupport-5.2.3.gem -> activesupport-5.2.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2019-03-28 03:59:21.000000000 +0100 +++ new/CHANGELOG.md 2019-11-27 16:39:51.000000000 +0100 @@ -1,3 +1,38 @@ +## Rails 5.2.4 (November 27, 2019) ## + +* Make ActiveSupport::Logger Fiber-safe. Fixes #36752. + + Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order + to make log level local to Ruby Fibers in addition to Threads. + + Example: + + logger = ActiveSupport::Logger.new(STDOUT) + logger.level = 1 + p "Main is debug? #{logger.debug?}" + + Fiber.new { + logger.local_level = 0 + p "Thread is debug? #{logger.debug?}" + }.resume + + p "Main is debug? #{logger.debug?}" + + Before: + + Main is debug? false + Thread is debug? true + Main is debug? true + + After: + + Main is debug? false + Thread is debug? true + Main is debug? false + + *Alexander Varnin* + + ## Rails 5.2.3 (March 27, 2019) ## * Add `ActiveSupport::HashWithIndifferentAccess#assoc`. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/core_ext/digest.rb new/lib/active_support/core_ext/digest.rb --- old/lib/active_support/core_ext/digest.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/active_support/core_ext/digest.rb 2019-11-27 16:39:51.000000000 +0100 @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +require "active_support/core_ext/digest/uuid" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/gem_version.rb new/lib/active_support/gem_version.rb --- old/lib/active_support/gem_version.rb 2019-03-28 03:59:22.000000000 +0100 +++ new/lib/active_support/gem_version.rb 2019-11-27 16:39:51.000000000 +0100 @@ -9,7 +9,7 @@ module VERSION MAJOR = 5 MINOR = 2 - TINY = 3 + TINY = 4 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/logger_thread_safe_level.rb new/lib/active_support/logger_thread_safe_level.rb --- old/lib/active_support/logger_thread_safe_level.rb 2019-03-28 03:59:22.000000000 +0100 +++ new/lib/active_support/logger_thread_safe_level.rb 2019-11-27 16:39:51.000000000 +0100 @@ -1,6 +1,7 @@ # frozen_string_literal: true require "active_support/concern" +require "fiber" module ActiveSupport module LoggerThreadSafeLevel # :nodoc: @@ -11,7 +12,7 @@ end def local_log_id - Thread.current.__id__ + Fiber.current.__id__ end def local_level diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/notifications/fanout.rb new/lib/active_support/notifications/fanout.rb --- old/lib/active_support/notifications/fanout.rb 2019-03-28 03:59:22.000000000 +0100 +++ new/lib/active_support/notifications/fanout.rb 2019-11-27 16:39:51.000000000 +0100 @@ -18,8 +18,8 @@ super end - def subscribe(pattern = nil, block = Proc.new) - subscriber = Subscribers.new pattern, block + def subscribe(pattern = nil, callable = nil, &block) + subscriber = Subscribers.new(pattern, callable || block) synchronize do @subscribers << subscriber @listeners_for.clear diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/ordered_options.rb new/lib/active_support/ordered_options.rb --- old/lib/active_support/ordered_options.rb 2019-03-28 03:59:22.000000000 +0100 +++ new/lib/active_support/ordered_options.rb 2019-11-27 16:39:51.000000000 +0100 @@ -39,7 +39,7 @@ end def method_missing(name, *args) - name_string = name.to_s + name_string = name.to_s.dup if name_string.chomp!("=") self[name_string] = args.first else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2019-03-28 03:59:21.000000000 +0100 +++ new/metadata 2019-11-27 16:39:51.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: activesupport version: !ruby/object:Gem::Version - version: 5.2.3 + version: 5.2.4 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2019-03-28 00:00:00.000000000 Z +date: 2019-11-27 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: i18n @@ -139,6 +139,7 @@ - lib/active_support/core_ext/date_time/calculations.rb - lib/active_support/core_ext/date_time/compatibility.rb - lib/active_support/core_ext/date_time/conversions.rb +- lib/active_support/core_ext/digest.rb - lib/active_support/core_ext/digest/uuid.rb - lib/active_support/core_ext/enumerable.rb - lib/active_support/core_ext/file.rb @@ -332,8 +333,8 @@ licenses: - MIT metadata: - source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activesupport - changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activesupport/CHANGELOG.md + source_code_uri: https://github.com/rails/rails/tree/v5.2.4/activesupport + changelog_uri: https://github.com/rails/rails/blob/v5.2.4/activesupport/CHANGELOG.md post_install_message: rdoc_options: - "--encoding" @@ -351,7 +352,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.0.1 +rubygems_version: 3.0.3 signing_key: specification_version: 4 summary: A toolkit of support libraries and Ruby core extensions extracted from the