Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-zeitwerk for 
openSUSE:Factory checked in at 2022-02-24 18:20:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-zeitwerk (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-zeitwerk.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-zeitwerk"

Thu Feb 24 18:20:26 2022 rev:12 rq:956132 version:2.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-zeitwerk/rubygem-zeitwerk.changes        
2022-01-03 10:50:32.139606094 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-zeitwerk.new.1958/rubygem-zeitwerk.changes  
    2022-02-24 18:23:41.630654718 +0100
@@ -1,0 +2,6 @@
+Tue Feb 15 07:46:00 UTC 2022 - Stephan Kulow <co...@suse.com>
+
+updated to version 2.5.4
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  zeitwerk-2.5.3.gem

New:
----
  zeitwerk-2.5.4.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-zeitwerk.spec ++++++
--- /var/tmp/diff_new_pack.It0SUN/_old  2022-02-24 18:23:42.074654602 +0100
+++ /var/tmp/diff_new_pack.It0SUN/_new  2022-02-24 18:23:42.078654601 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-zeitwerk
 #
-# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,15 +24,15 @@
 #
 
 Name:           rubygem-zeitwerk
-Version:        2.5.3
+Version:        2.5.4
 Release:        0
 %define mod_name zeitwerk
 %define mod_full_name %{mod_name}-%{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 5
 BuildRequires:  %{ruby >= 2.5}
 BuildRequires:  %{rubygem gem2rpm}
-Url:            https://github.com/fxn/zeitwerk
+BuildRequires:  ruby-macros >= 5
+URL:            https://github.com/fxn/zeitwerk
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Efficient and thread-safe constant autoloader

++++++ zeitwerk-2.5.3.gem -> zeitwerk-2.5.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2021-12-30 19:06:32.000000000 +0100
+++ new/README.md       2022-01-28 00:17:23.000000000 +0100
@@ -437,7 +437,7 @@
 loader.eager_load(force: true) # database adapters are eager loaded
 ```
 
-Which may be handy if the project eager loads in the test suite to [ensure 
project layour compliance](#testing-compliance).
+Which may be handy if the project eager loads in the test suite to [ensure 
project layout compliance](#testing-compliance).
 
 The `force` flag does not affect ignored files and directories, those are 
still ignored.
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/zeitwerk/kernel.rb new/lib/zeitwerk/kernel.rb
--- old/lib/zeitwerk/kernel.rb  2021-12-30 19:06:32.000000000 +0100
+++ new/lib/zeitwerk/kernel.rb  2022-01-28 00:17:23.000000000 +0100
@@ -3,11 +3,11 @@
 module Kernel
   module_function
 
-  # We are going to decorate Kernel#require with two goals.
+  # Zeitwerk's main idea is to define autoloads for project constants, and then
+  # intercept them when triggered in this thin `Kernel#require` wrapper.
   #
-  # First, by intercepting Kernel#require calls, we are able to autovivify
-  # modules on required directories, and also do internal housekeeping when
-  # managed files are loaded.
+  # That allows us to complete the circle, invoke callbacks, autovivify 
modules,
+  # define autoloads for just autoloaded namespaces, update internal state, 
etc.
   #
   # On the other hand, if you publish a new version of a gem that is now 
managed
   # by Zeitwerk, client code can reference directly your classes and modules 
and
@@ -17,7 +17,7 @@
   #
   # We cannot decorate with prepend + super because Kernel has already been
   # included in Object, and changes in ancestors don't get propagated into
-  # already existing ancestor chains.
+  # already existing ancestor chains on Ruby < 3.0.
   alias_method :zeitwerk_original_require, :require
 
   # @sig (String) -> true | false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/zeitwerk/loader.rb new/lib/zeitwerk/loader.rb
--- old/lib/zeitwerk/loader.rb  2021-12-30 19:06:32.000000000 +0100
+++ new/lib/zeitwerk/loader.rb  2022-01-28 00:17:23.000000000 +0100
@@ -144,7 +144,13 @@
         end
 
         to_unload.each do |cpath, (abspath, (parent, cname))|
-          unless on_unload_callbacks.empty?
+          # We have to check cdef? in this condition. Reason is, constants 
whose
+          # file does not define them have to be kept in to_unload as explained
+          # in the implementation of on_file_autoloaded.
+          #
+          # If the constant is not defined, on_unload should not be triggered
+          # for it.
+          if !on_unload_callbacks.empty? && cdef?(parent, cname)
             value = parent.const_get(cname)
             run_on_unload_callbacks(cpath, value, abspath)
           end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/zeitwerk/version.rb new/lib/zeitwerk/version.rb
--- old/lib/zeitwerk/version.rb 2021-12-30 19:06:32.000000000 +0100
+++ new/lib/zeitwerk/version.rb 2022-01-28 00:17:23.000000000 +0100
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module Zeitwerk
-  VERSION = "2.5.3"
+  VERSION = "2.5.4"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-12-30 19:06:32.000000000 +0100
+++ new/metadata        2022-01-28 00:17:23.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: zeitwerk
 version: !ruby/object:Gem::Version
-  version: 2.5.3
+  version: 2.5.4
 platform: ruby
 authors:
 - Xavier Noria
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2021-12-30 00:00:00.000000000 Z
+date: 2022-01-27 00:00:00.000000000 Z
 dependencies: []
 description: |2
       Zeitwerk implements constant autoloading with Ruby semantics. Each gem
@@ -58,7 +58,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.2.22
+rubygems_version: 3.3.3
 signing_key:
 specification_version: 4
 summary: Efficient and thread-safe constant autoloader

Reply via email to