Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-dry-core for 
openSUSE:Factory checked in at 2022-10-30 18:28:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-dry-core (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-dry-core.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-dry-core"

Sun Oct 30 18:28:46 2022 rev:6 rq:1032137 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-dry-core/rubygem-dry-core.changes        
2022-08-09 15:26:36.973327547 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-dry-core.new.2275/rubygem-dry-core.changes  
    2022-10-30 18:28:55.054410839 +0100
@@ -1,0 +2,7 @@
+Fri Oct 28 04:55:19 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 0.9.1
+ see installed CHANGELOG.md
+
+
+-------------------------------------------------------------------

Old:
----
  dry-core-0.8.1.gem

New:
----
  dry-core-0.9.1.gem

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

Other differences:
------------------
++++++ rubygem-dry-core.spec ++++++
--- /var/tmp/diff_new_pack.dwvbCn/_old  2022-10-30 18:28:55.946415658 +0100
+++ /var/tmp/diff_new_pack.dwvbCn/_new  2022-10-30 18:28:55.954415702 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-dry-core
-Version:        0.8.1
+Version:        0.9.1
 Release:        0
 %define mod_name dry-core
 %define mod_full_name %{mod_name}-%{version}

++++++ dry-core-0.8.1.gem -> dry-core-0.9.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2022-07-27 08:54:33.000000000 +0200
+++ new/CHANGELOG.md    2022-10-18 06:20:32.000000000 +0200
@@ -1,6 +1,37 @@
 <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
 
-## 0.8.0
+## 0.9.1 2022-10-18
+
+
+### Changed
+
+- Correct missing constant for IDENTITY (issue #75 fixed via #76) (@poloka)
+
+[Compare 
v0.9.0...v0.9.1](https://github.com/dry-rb/dry-core/compare/v0.9.0...v0.9.1)
+
+## 0.9.0 2022-10-15
+
+
+### Changed
+
+- dry-core now uses zeitwerk for autoloading (@solnic)
+
+[Compare 
v0.8.1...v0.9.0](https://github.com/dry-rb/dry-core/compare/v0.8.1...v0.9.0)
+
+## 0.8.1 2022-07-27
+
+
+### Fixed
+
+- [memoizable] plays better with inheritance.
+There were cases when cached values from base claesses were used, see #70 
(@flash-gordon)
+
+
+
+[Compare 
v0.8.0...v0.8.1](https://github.com/dry-rb/dry-core/compare/v0.8.0...v0.8.1)
+
+## 0.8.0 2022-07-15
+
 
 ### Added
 
@@ -12,7 +43,7 @@
 This changes the order of returned subclasses (immediate subclasses now go 
first) (@flash-gordon)
 
 
-[Compare 
v0.7.1...v0.8.0](https://github.com/dry-rb/dry-core/compare/v0.7.1...master)
+[Compare 
v0.7.1...v0.8.0](https://github.com/dry-rb/dry-core/compare/v0.7.1...v0.8.0)
 
 ## 0.7.1 2021-07-10
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/LICENSE new/LICENSE
--- old/LICENSE 2022-07-27 08:54:33.000000000 +0200
+++ new/LICENSE 2022-10-18 06:20:32.000000000 +0200
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2015-2021 dry-rb team
+Copyright (c) 2015-2022 dry-rb team
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dry-core.gemspec new/dry-core.gemspec
--- old/dry-core.gemspec        2022-07-27 08:54:33.000000000 +0200
+++ new/dry-core.gemspec        2022-10-18 06:20:32.000000000 +0200
@@ -30,6 +30,7 @@
 
   # to update dependencies edit project.yml
   spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
+  spec.add_runtime_dependency "zeitwerk", "~> 2.6"
 
   spec.add_development_dependency "bundler"
   spec.add_development_dependency "rake"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/dry/core/class_attributes.rb 
new/lib/dry/core/class_attributes.rb
--- old/lib/dry/core/class_attributes.rb        2022-07-27 08:54:33.000000000 
+0200
+++ new/lib/dry/core/class_attributes.rb        2022-10-18 06:20:32.000000000 
+0200
@@ -1,7 +1,6 @@
 # frozen_string_literal: true
 
 require "dry/core/constants"
-require "dry/core/errors"
 
 module Dry
   module Core
@@ -10,7 +9,6 @@
     # @api public
     module ClassAttributes
       include Constants
-
       # Specify what attributes a class will use
       #
       # @example
@@ -86,7 +84,7 @@
               elsif type === value # rubocop:disable Style/CaseEquality
                 instance_variable_set(ivar, coerce.call(value))
               else
-                raise InvalidClassAttributeValue.new(name, value)
+                raise InvalidClassAttributeValueError.new(name, value)
               end
             end
           end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/dry/core/equalizer.rb 
new/lib/dry/core/equalizer.rb
--- old/lib/dry/core/equalizer.rb       2022-07-27 08:54:33.000000000 +0200
+++ new/lib/dry/core/equalizer.rb       2022-10-18 06:20:32.000000000 +0200
@@ -1,17 +1,6 @@
 # frozen_string_literal: true
 
 module Dry
-  # Build an equalizer module for the inclusion in other class
-  #
-  # ## Credits
-  #
-  # Equalizer has been originally imported from the equalizer gem created by 
Dan Kubb
-  #
-  # @api public
-  def self.Equalizer(*keys, **options)
-    Dry::Core::Equalizer.new(*keys, **options)
-  end
-
   module Core
     # Define equality, equivalence and inspection methods
     class Equalizer < ::Module
@@ -149,4 +138,19 @@
       end
     end
   end
+
+  # Old modules that depend on dry/core/equalizer may miss
+  # this method if dry/core is not required explicitly
+  unless singleton_class.method_defined?(:Equalizer)
+    # Build an equalizer module for the inclusion in other class
+    #
+    # ## Credits
+    #
+    # Equalizer has been originally imported from the equalizer gem created by 
Dan Kubb
+    #
+    # @api public
+    def self.Equalizer(*keys, **options)
+      Dry::Core::Equalizer.new(*keys, **options)
+    end
+  end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/dry/core/errors.rb new/lib/dry/core/errors.rb
--- old/lib/dry/core/errors.rb  2022-07-27 08:54:33.000000000 +0200
+++ new/lib/dry/core/errors.rb  2022-10-18 06:20:32.000000000 +0200
@@ -2,7 +2,7 @@
 
 module Dry
   module Core
-    class InvalidClassAttributeValue < StandardError
+    class InvalidClassAttributeValueError < StandardError
       def initialize(name, value)
         super(
           "Value #{value.inspect} is invalid for class attribute 
#{name.inspect}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/dry/core/memoizable.rb 
new/lib/dry/core/memoizable.rb
--- old/lib/dry/core/memoizable.rb      2022-07-27 08:54:33.000000000 +0200
+++ new/lib/dry/core/memoizable.rb      2022-10-18 06:20:32.000000000 +0200
@@ -1,7 +1,5 @@
 # frozen_string_literal: true
 
-require "dry/core/deprecations"
-
 module Dry
   module Core
     module Memoizable
@@ -91,7 +89,7 @@
             define_method(method.name) do
               value = super()
 
-              if kernel[:frozen].bind(self).call
+              if kernel[:frozen].bind_call(self)
                 # It's not possible to modify singleton classes
                 # of frozen objects
                 mod.remove_method(method.name)
@@ -113,8 +111,8 @@
                 # expect :)
                 attr_name = :"__memozed_#{key}__"
                 ivar_name = :"@#{attr_name}"
-                kernel[:ivar_set].bind(self).(ivar_name, value)
-                eigenclass = kernel[:singleton].bind(self).call
+                kernel[:ivar_set].bind_call(self, ivar_name, value)
+                eigenclass = kernel[:singleton].bind_call(self)
                 eigenclass.attr_reader(attr_name)
                 eigenclass.alias_method(method.name, attr_name)
                 eigenclass.remove_method(attr_name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/dry/core/version.rb new/lib/dry/core/version.rb
--- old/lib/dry/core/version.rb 2022-07-27 08:54:33.000000000 +0200
+++ new/lib/dry/core/version.rb 2022-10-18 06:20:32.000000000 +0200
@@ -2,6 +2,6 @@
 
 module Dry
   module Core
-    VERSION = "0.8.1"
+    VERSION = "0.9.1"
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/dry/core.rb new/lib/dry/core.rb
--- old/lib/dry/core.rb 2022-07-27 08:54:33.000000000 +0200
+++ new/lib/dry/core.rb 2022-10-18 06:20:32.000000000 +0200
@@ -1,10 +1,44 @@
 # frozen_string_literal: true
 
+require "zeitwerk"
+
+require "dry/core/constants"
+require "dry/core/errors"
 require "dry/core/version"
 
 # :nodoc:
 module Dry
   # :nodoc:
   module Core
+    include Constants
+
+    def self.loader
+      @loader ||= Zeitwerk::Loader.new.tap do |loader|
+        root = File.expand_path("..", __dir__)
+        loader.tag = "dry-core"
+        loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-core.rb")
+        loader.push_dir(root)
+        loader.ignore(
+          "#{root}/dry-core.rb",
+          "#{root}/dry/core/{constants,errors,version}.rb"
+        )
+      end
+    end
+
+    loader.setup
+  end
+
+  # See dry/core/equalizer.rb
+  unless singleton_class.method_defined?(:Equalizer)
+    # Build an equalizer module for the inclusion in other class
+    #
+    # ## Credits
+    #
+    # Equalizer has been originally imported from the equalizer gem created by 
Dan Kubb
+    #
+    # @api public
+    def self.Equalizer(*keys, **options)
+      Dry::Core::Equalizer.new(*keys, **options)
+    end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-07-27 08:54:33.000000000 +0200
+++ new/metadata        2022-10-18 06:20:32.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: dry-core
 version: !ruby/object:Gem::Version
-  version: 0.8.1
+  version: 0.9.1
 platform: ruby
 authors:
 - Nikita Shilnikov
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2022-07-27 00:00:00.000000000 Z
+date: 2022-10-18 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: concurrent-ruby
@@ -25,6 +25,20 @@
       - !ruby/object:Gem::Version
         version: '1.0'
 - !ruby/object:Gem::Dependency
+  name: zeitwerk
+  requirement: !ruby/object:Gem::Requirement
+    requirements:
+    - - "~>"
+      - !ruby/object:Gem::Version
+        version: '2.6'
+  type: :runtime
+  prerelease: false
+  version_requirements: !ruby/object:Gem::Requirement
+    requirements:
+    - - "~>"
+      - !ruby/object:Gem::Version
+        version: '2.6'
+- !ruby/object:Gem::Dependency
   name: bundler
   requirement: !ruby/object:Gem::Requirement
     requirements:

Reply via email to