Hello community,

here is the log from the commit of package rubygem-activemodel-6.0 for 
openSUSE:Factory checked in at 2019-11-13 13:25:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-6.0 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-activemodel-6.0.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-activemodel-6.0"

Wed Nov 13 13:25:08 2019 rev:2 rq:747685 version:6.0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-activemodel-6.0/rubygem-activemodel-6.0.changes
  2019-08-19 21:40:40.620298843 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-activemodel-6.0.new.2990/rubygem-activemodel-6.0.changes
        2019-11-13 13:25:16.887507328 +0100
@@ -1,0 +2,7 @@
+Tue Nov 12 13:32:04 UTC 2019 - Manuel Schnitzer <[email protected]>
+
+- updated to version 6.0.1
+
+  * no changes
+
+-------------------------------------------------------------------

Old:
----
  activemodel-6.0.0.gem

New:
----
  activemodel-6.0.1.gem

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

Other differences:
------------------
++++++ rubygem-activemodel-6.0.spec ++++++
--- /var/tmp/diff_new_pack.4HeVUd/_old  2019-11-13 13:25:17.683508157 +0100
+++ /var/tmp/diff_new_pack.4HeVUd/_new  2019-11-13 13:25:17.691508165 +0100
@@ -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,7 +24,7 @@
 #
 
 Name:           rubygem-activemodel-6.0
-Version:        6.0.0
+Version:        6.0.1
 Release:        0
 %define mod_name activemodel
 %define mod_full_name %{mod_name}-%{version}
@@ -36,9 +36,9 @@
 %endif
 # /MANUAL
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 5
 BuildRequires:  %{ruby >= 2.5.0}
 BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  ruby-macros >= 5
 Url:            https://rubyonrails.org
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml

++++++ activemodel-6.0.0.gem -> activemodel-6.0.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2019-08-16 19:58:50.000000000 +0200
+++ new/CHANGELOG.md    2019-11-05 15:37:39.000000000 +0100
@@ -1,3 +1,8 @@
+## Rails 6.0.1 (November 5, 2019) ##
+
+*   No changes.
+
+
 ## Rails 6.0.0 (August 16, 2019) ##
 
 *   No changes.
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_model/gem_version.rb 
new/lib/active_model/gem_version.rb
--- old/lib/active_model/gem_version.rb 2019-08-16 19:58:50.000000000 +0200
+++ new/lib/active_model/gem_version.rb 2019-11-05 15:37:39.000000000 +0100
@@ -9,7 +9,7 @@
   module VERSION
     MAJOR = 6
     MINOR = 0
-    TINY  = 0
+    TINY  = 1
     PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_model/validations/acceptance.rb 
new/lib/active_model/validations/acceptance.rb
--- old/lib/active_model/validations/acceptance.rb      2019-08-16 
19:58:50.000000000 +0200
+++ new/lib/active_model/validations/acceptance.rb      2019-11-05 
15:37:39.000000000 +0100
@@ -17,7 +17,8 @@
       private
 
         def setup!(klass)
-          
klass.include(LazilyDefineAttributes.new(AttributeDefinition.new(attributes)))
+          define_attributes = LazilyDefineAttributes.new(attributes)
+          klass.include(define_attributes) unless 
klass.included_modules.include?(define_attributes)
         end
 
         def acceptable_option?(value)
@@ -25,46 +26,57 @@
         end
 
         class LazilyDefineAttributes < Module
-          def initialize(attribute_definition)
+          def initialize(attributes)
+            @attributes = attributes.map(&:to_s)
+          end
+
+          def included(klass)
+            @lock = Mutex.new
+            mod = self
+
             define_method(:respond_to_missing?) do |method_name, 
include_private = false|
-              super(method_name, include_private) || 
attribute_definition.matches?(method_name)
+              mod.define_on(klass)
+              super(method_name, include_private) || mod.matches?(method_name)
             end
 
             define_method(:method_missing) do |method_name, *args, &block|
-              if attribute_definition.matches?(method_name)
-                attribute_definition.define_on(self.class)
+              mod.define_on(klass)
+              if mod.matches?(method_name)
                 send(method_name, *args, &block)
               else
                 super(method_name, *args, &block)
               end
             end
           end
-        end
-
-        class AttributeDefinition
-          def initialize(attributes)
-            @attributes = attributes.map(&:to_s)
-          end
 
           def matches?(method_name)
-            attr_name = convert_to_reader_name(method_name)
-            attributes.include?(attr_name)
+            attr_name = method_name.to_s.chomp("=")
+            attributes.any? { |name| name == attr_name }
           end
 
           def define_on(klass)
-            attr_readers = attributes.reject { |name| 
klass.attribute_method?(name) }
-            attr_writers = attributes.reject { |name| 
klass.attribute_method?("#{name}=") }
-            klass.define_attribute_methods
-            klass.attr_reader(*attr_readers)
-            klass.attr_writer(*attr_writers)
-          end
+            @lock&.synchronize do
+              return unless @lock
 
-          private
-            attr_reader :attributes
+              attr_readers = attributes.reject { |name| 
klass.attribute_method?(name) }
+              attr_writers = attributes.reject { |name| 
klass.attribute_method?("#{name}=") }
+
+              attr_reader(*attr_readers)
+              attr_writer(*attr_writers)
 
-            def convert_to_reader_name(method_name)
-              method_name.to_s.chomp("=")
+              remove_method :respond_to_missing?
+              remove_method :method_missing
+
+              @lock = nil
             end
+          end
+
+          def ==(other)
+            self.class == other.class && attributes == other.attributes
+          end
+
+          protected
+            attr_reader :attributes
         end
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-08-16 19:58:50.000000000 +0200
+++ new/metadata        2019-11-05 15:37:39.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: activemodel
 version: !ruby/object:Gem::Version
-  version: 6.0.0
+  version: 6.0.1
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-08-16 00:00:00.000000000 Z
+date: 2019-11-05 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport
@@ -16,14 +16,14 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 6.0.0
+        version: 6.0.1
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 6.0.0
+        version: 6.0.1
 description: A toolkit for building modeling frameworks like Active Record. 
Rich support
   for attributes, callbacks, validations, serialization, internationalization, 
and
   testing.
@@ -101,8 +101,11 @@
 licenses:
 - MIT
 metadata:
-  source_code_uri: https://github.com/rails/rails/tree/v6.0.0/activemodel
-  changelog_uri: 
https://github.com/rails/rails/blob/v6.0.0/activemodel/CHANGELOG.md
+  bug_tracker_uri: https://github.com/rails/rails/issues
+  changelog_uri: 
https://github.com/rails/rails/blob/v6.0.1/activemodel/CHANGELOG.md
+  documentation_uri: https://api.rubyonrails.org/v6.0.1/
+  mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
+  source_code_uri: https://github.com/rails/rails/tree/v6.0.1/activemodel
 post_install_message: 
 rdoc_options: []
 require_paths:
@@ -118,7 +121,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 for building modeling frameworks (part of Rails).


Reply via email to