Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-activemodel-7.0 for 
openSUSE:Factory checked in at 2022-10-12 18:24:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-7.0 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-activemodel-7.0.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-activemodel-7.0"

Wed Oct 12 18:24:59 2022 rev:6 rq:1010044 version:7.0.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-activemodel-7.0/rubygem-activemodel-7.0.changes
  2022-08-06 22:07:50.982602762 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-activemodel-7.0.new.2275/rubygem-activemodel-7.0.changes
        2022-10-12 18:26:42.553956352 +0200
@@ -1,0 +2,28 @@
+Mon Oct 10 12:53:50 UTC 2022 - Stephan Kulow <co...@suse.com>
+
+updated to version 7.0.4
+ see installed CHANGELOG.md
+
+  ## Rails 7.0.4 (September 09, 2022) ##
+  
+  *   Handle name clashes in attribute methods code generation cache.
+  
+      When two distinct attribute methods would generate similar names,
+      the first implementation would be incorrectly re-used.
+  
+      ```ruby
+      class A
+        attribute_method_suffix "_changed?"
+        define_attribute_methods :x
+      end
+  
+      class B
+        attribute_method_suffix "?"
+        define_attribute_methods :x_changed
+      end
+      ```
+  
+      *Jean Boussier*
+  
+
+-------------------------------------------------------------------

Old:
----
  activemodel-7.0.3.1.gem

New:
----
  activemodel-7.0.4.gem

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

Other differences:
------------------
++++++ rubygem-activemodel-7.0.spec ++++++
--- /var/tmp/diff_new_pack.5SGHZU/_old  2022-10-12 18:26:42.937957198 +0200
+++ /var/tmp/diff_new_pack.5SGHZU/_new  2022-10-12 18:26:42.941957206 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-activemodel-7.0
-Version:        7.0.3.1
+Version:        7.0.4
 Release:        0
 %define mod_name activemodel
 %define mod_full_name %{mod_name}-%{version}

++++++ activemodel-7.0.3.1.gem -> activemodel-7.0.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2022-07-12 19:30:21.000000000 +0200
+++ new/CHANGELOG.md    2022-09-09 20:42:16.000000000 +0200
@@ -1,3 +1,24 @@
+## Rails 7.0.4 (September 09, 2022) ##
+
+*   Handle name clashes in attribute methods code generation cache.
+
+    When two distinct attribute methods would generate similar names,
+    the first implementation would be incorrectly re-used.
+
+    ```ruby
+    class A
+      attribute_method_suffix "_changed?"
+      define_attribute_methods :x
+    end
+
+    class B
+      attribute_method_suffix "?"
+      define_attribute_methods :x_changed
+    end
+    ```
+
+    *Jean Boussier*
+
 ## Rails 7.0.3.1 (July 12, 2022) ##
 
 *   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/attribute_methods.rb 
new/lib/active_model/attribute_methods.rb
--- old/lib/active_model/attribute_methods.rb   2022-07-12 19:30:21.000000000 
+0200
+++ new/lib/active_model/attribute_methods.rb   2022-09-09 20:42:16.000000000 
+0200
@@ -394,7 +394,7 @@
             mangled_name = "__temp__#{name.unpack1("h*")}"
           end
 
-          code_generator.define_cached_method(name, as: mangled_name, 
namespace: namespace) do |batch|
+          code_generator.define_cached_method(name, as: mangled_name, 
namespace: :"#{namespace}_#{target}") do |batch|
             call_args.map!(&:inspect)
             call_args << parameters if parameters
 
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 2022-07-12 19:30:21.000000000 +0200
+++ new/lib/active_model/gem_version.rb 2022-09-09 20:42:16.000000000 +0200
@@ -9,8 +9,8 @@
   module VERSION
     MAJOR = 7
     MINOR = 0
-    TINY  = 3
-    PRE   = "1"
+    TINY  = 4
+    PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_model/secure_password.rb 
new/lib/active_model/secure_password.rb
--- old/lib/active_model/secure_password.rb     2022-07-12 19:30:21.000000000 
+0200
+++ new/lib/active_model/secure_password.rb     2022-09-09 20:42:16.000000000 
+0200
@@ -36,7 +36,9 @@
       #
       #   gem 'bcrypt', '~> 3.1.7'
       #
-      # Example using Active Record (which automatically includes 
ActiveModel::SecurePassword):
+      # ==== Examples
+      #
+      # ===== Using Active Record (which automatically includes 
ActiveModel::SecurePassword)
       #
       #   # Schema: User(name:string, password_digest:string, 
recovery_password_digest:string)
       #   class User < ActiveRecord::Base
@@ -58,6 +60,27 @@
       #   user.authenticate_recovery_password('42password')          # => user
       #   User.find_by(name: 'david')&.authenticate('notright')      # => false
       #   User.find_by(name: 'david')&.authenticate('mUc3m00RsqyRe') # => user
+      #
+      # ===== Conditionally requiring a password
+      #
+      #   class Account
+      #     include ActiveModel::SecurePassword
+      #
+      #     attr_accessor :is_guest, :password_digest
+      #
+      #     has_secure_password
+      #
+      #     def errors
+      #       super.tap { |errors| errors.delete(:password, :blank) if 
is_guest }
+      #     end
+      #   end
+      #
+      #   account = Account.new
+      #   account.valid? # => false, password required
+      #
+      #   account.is_guest = true
+      #   account.valid? # => true
+      #
       def has_secure_password(attribute = :password, validations: true)
         # Load bcrypt gem only when has_secure_password is used.
         # This is to avoid ActiveModel (and by extension the entire framework)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-07-12 19:30:21.000000000 +0200
+++ new/metadata        2022-09-09 20:42:16.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: activemodel
 version: !ruby/object:Gem::Version
-  version: 7.0.3.1
+  version: 7.0.4
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2022-07-12 00:00:00.000000000 Z
+date: 2022-09-09 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport
@@ -16,14 +16,14 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 7.0.3.1
+        version: 7.0.4
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 7.0.3.1
+        version: 7.0.4
 description: A toolkit for building modeling frameworks like Active Record. 
Rich support
   for attributes, callbacks, validations, serialization, internationalization, 
and
   testing.
@@ -107,10 +107,10 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/rails/rails/issues
-  changelog_uri: 
https://github.com/rails/rails/blob/v7.0.3.1/activemodel/CHANGELOG.md
-  documentation_uri: https://api.rubyonrails.org/v7.0.3.1/
+  changelog_uri: 
https://github.com/rails/rails/blob/v7.0.4/activemodel/CHANGELOG.md
+  documentation_uri: https://api.rubyonrails.org/v7.0.4/
   mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
-  source_code_uri: https://github.com/rails/rails/tree/v7.0.3.1/activemodel
+  source_code_uri: https://github.com/rails/rails/tree/v7.0.4/activemodel
   rubygems_mfa_required: 'true'
 post_install_message:
 rdoc_options: []

Reply via email to